From owner-freebsd-java@FreeBSD.ORG Sun Oct 28 20:12:21 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B524816A41A for ; Sun, 28 Oct 2007 20:12:21 +0000 (UTC) (envelope-from freebsd@spatula.net) Received: from turing.morons.org (turing.morons.org [208.96.51.42]) by mx1.freebsd.org (Postfix) with ESMTP id 9D7E813C4A8 for ; Sun, 28 Oct 2007 20:12:19 +0000 (UTC) (envelope-from freebsd@spatula.net) Received: by turing.morons.org (Postfix, from userid 1001) id DD89917037; Sun, 28 Oct 2007 13:12:16 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by turing.morons.org (Postfix) with ESMTP id C8D9417030 for ; Sun, 28 Oct 2007 13:12:16 -0700 (PDT) Date: Sun, 28 Oct 2007 13:12:16 -0700 (PDT) From: Nick Johnson X-X-Sender: spatula@turing To: freebsd-java@freebsd.org In-Reply-To: <20071026162351.B25435@turing> Message-ID: <20071028130627.A25435@turing> References: <20071023195511.GA27666@misty.eyesbeyond.com> <20071023170536.H25435@turing> <20071024210348.GA34044@misty.eyesbeyond.com> <20071026205754.15950c80@tinca> <20071026121159.A25435@turing> <20071026134734.M25435@turing> <20071026162351.B25435@turing> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: JDK 1.5.0 patchset 7 "South China" X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Oct 2007 20:12:21 -0000 Sadly, this does NOT correct the eternal negative caching problem. That problem still remains, even though I've configured the JDK not to cache negative results at all. I can do a tcpdump and see that the JDK makes no attempt whatsoever to query a host again after it has previously timed out. Nothing I've tried to fix the problem has had any effect. Nick On Fri, 26 Oct 2007, Nick Johnson wrote: > It remains to be seen whether this will resolve the problems I've been > having with InetAddress caching, but I am hopeful that it will. -- "Courage isn't just a matter of not being frightened, you know. It's being afraid and doing what you have to do anyway." Doctor Who - Planet of the Daleks This message has been brought to you by Nick Johnson 2.3b1 and the number 6. http://healerNick.com/ http://morons.org/ http://spatula.net/ From owner-freebsd-java@FreeBSD.ORG Sun Oct 28 20:45:43 2007 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4BCB916A41B for ; Sun, 28 Oct 2007 20:45:43 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (gerbercreations.com [71.39.140.16]) by mx1.freebsd.org (Postfix) with ESMTP id F3F8E13C4BD for ; Sun, 28 Oct 2007 20:45:42 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.1/8.13.3) with ESMTP id l9SKjf4F067359 for ; Sun, 28 Oct 2007 13:45:41 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.1/8.13.3/Submit) id l9SKjfHL067358 for freebsd-java@FreeBSD.org; Sun, 28 Oct 2007 13:45:41 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Sun, 28 Oct 2007 13:45:40 -0700 From: Greg Lewis To: freebsd-java@FreeBSD.org Message-ID: <20071028204540.GA67345@misty.eyesbeyond.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Cc: Subject: JDK 1.6.0 patchset 2 "Mestengo" X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Oct 2007 20:45:43 -0000 On behalf of the BSD Java Porting team, I'm pleased to announce the availability of Patchset 2 "Mestengo" for JDK 1.6, based on the JDK 1.6.0 Update 2 JRL source code. This patchset includes bug fixes and updates the code base to use the 1.6.0 Update 2 source code. However, the most exciting part of this patchset is that the browser plugin code now fully supports amd64. This is the first such support of any operating system that I'm aware of and I'd like to specially thank Jung-uk Kim and Kurt Miller for their work on this. The following platforms are supported by this release: FreeBSD 6.2/i386 (or later) FreeBSD 6.2/amd64 (or later) OpenBSD 4.0/i386 (or later) OpenBSD 4.0/amd64 (or later) NetBSD 3.1/i386 (or later) The patchset can be downloaded at: http://www.eyesbeyond.com/freebsddom/java/jdk16.html An update for the java/jdk16 port will follow shortly. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org From owner-freebsd-java@FreeBSD.ORG Sun Oct 28 21:26:39 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC6CB16A417 for ; Sun, 28 Oct 2007 21:26:39 +0000 (UTC) (envelope-from freebsd@spatula.net) Received: from turing.morons.org (turing.morons.org [208.96.51.42]) by mx1.freebsd.org (Postfix) with ESMTP id A7F8E13C48D for ; Sun, 28 Oct 2007 21:26:39 +0000 (UTC) (envelope-from freebsd@spatula.net) Received: by turing.morons.org (Postfix, from userid 1001) id 6414F17037; Sun, 28 Oct 2007 14:26:39 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by turing.morons.org (Postfix) with ESMTP id 60EFD17034 for ; Sun, 28 Oct 2007 14:26:39 -0700 (PDT) Date: Sun, 28 Oct 2007 14:26:39 -0700 (PDT) From: Nick Johnson X-X-Sender: spatula@turing To: freebsd-java@freebsd.org In-Reply-To: <20071028130627.A25435@turing> Message-ID: <20071028141053.G25435@turing> References: <20071023195511.GA27666@misty.eyesbeyond.com> <20071023170536.H25435@turing> <20071024210348.GA34044@misty.eyesbeyond.com> <20071026205754.15950c80@tinca> <20071026121159.A25435@turing> <20071026134734.M25435@turing> <20071026162351.B25435@turing> <20071028130627.A25435@turing> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: negative dns caching problem *resolved* (was Re: JDK 1.5.0 patchset 7 "South China") X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Oct 2007 21:26:39 -0000 After months of fighting with this, today I stumbled upon the answer. It was a java command line test case that led me to it. >From the command line, FreeBSD's JDK does -exactly- what it is supposed to with negative caching. My test case involved restarting BIND, adding a firewall rule for a host's name servers, having Java try to resolve the name (and of course fail), having Java wait while removing the firewall rule and having Java try again to resolve the name. All the while I was watching network traffic with tcpdump. Exactly as it is supposed to, the JDK tried again and succeeded after I removed the firewall rule. So this meant that it had to be something to do with Tomcat or commons-daemon/jsvc. On a whim, I removed the entry for Tomcat's native libraries, and it started to work correctly. Then I did an ldd against libtcnative, and found that I had compiled it with gcc 4.2.1. Knowing that there are problems with gcc 4.2, I recompiled with gcc 3.4.6. It continues to work correctly. So this turned out to be a multi-pronged problem. Earlier I was building a version of the JDK that somehow never read java.security, and that required wiping out the work directory entirely and bootstrapping off the Diablo JDK. Then, something about compiling the Tomcat native libraries with gcc 4.2.1 was apparently creating this bad behaviour situation. So if you're using Tomcat, and you want to use the Tomcat native libraries, do not compile them with gcc 4.2. In fact, you probably will want to make sure you compile them with the same major.minor version of gcc you used to compile libapr just to be safe. The Tomcat native library IS capable of screwing your DNS resolution. Nick On Sun, 28 Oct 2007, Nick Johnson wrote: > Sadly, this does NOT correct the eternal negative caching problem. That > problem still remains, even though I've configured the JDK not to cache > negative results at all. > > I can do a tcpdump and see that the JDK makes no attempt whatsoever to > query a host again after it has previously timed out. Nothing I've tried > to fix the problem has had any effect. > > Nick > > On Fri, 26 Oct 2007, Nick Johnson wrote: > > > It remains to be seen whether this will resolve the problems I've been > > having with InetAddress caching, but I am hopeful that it will. > > -- "Courage isn't just a matter of not being frightened, you know. It's being afraid and doing what you have to do anyway." Doctor Who - Planet of the Daleks This message has been brought to you by Nick Johnson 2.3b1 and the number 6. http://healerNick.com/ http://morons.org/ http://spatula.net/ From owner-freebsd-java@FreeBSD.ORG Mon Oct 29 02:47:17 2007 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B223D16A41B; Mon, 29 Oct 2007 02:47:17 +0000 (UTC) (envelope-from glewis@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8B3ED13C49D; Mon, 29 Oct 2007 02:47:17 +0000 (UTC) (envelope-from glewis@FreeBSD.org) Received: from freefall.freebsd.org (glewis@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9T2lH7R042553; Mon, 29 Oct 2007 02:47:17 GMT (envelope-from glewis@freefall.freebsd.org) Received: (from glewis@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9T2lH3L042549; Mon, 29 Oct 2007 02:47:17 GMT (envelope-from glewis) Date: Mon, 29 Oct 2007 02:47:17 GMT Message-Id: <200710290247.l9T2lH3L042549@freefall.freebsd.org> To: freebsd@spatula.net, glewis@FreeBSD.org, freebsd-java@FreeBSD.org From: glewis@FreeBSD.org Cc: Subject: Re: java/117436: JVM ignores $JAVA_HOME/jre/lib/security/java.security X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2007 02:47:17 -0000 Synopsis: JVM ignores $JAVA_HOME/jre/lib/security/java.security State-Changed-From-To: open->closed State-Changed-By: glewis State-Changed-When: Mon Oct 29 02:46:20 UTC 2007 State-Changed-Why: Closing since the problem appears to have been resolved by cleaning and rebuilding and I can't reproduce it. http://www.freebsd.org/cgi/query-pr.cgi?pr=117436 From owner-freebsd-java@FreeBSD.ORG Mon Oct 29 02:48:48 2007 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9AD9816A468; Mon, 29 Oct 2007 02:48:48 +0000 (UTC) (envelope-from glewis@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6370713C48A; Mon, 29 Oct 2007 02:48:48 +0000 (UTC) (envelope-from glewis@FreeBSD.org) Received: from freefall.freebsd.org (glewis@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9T2mmkF042601; Mon, 29 Oct 2007 02:48:48 GMT (envelope-from glewis@freefall.freebsd.org) Received: (from glewis@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9T2mmgM042597; Mon, 29 Oct 2007 02:48:48 GMT (envelope-from glewis) Date: Mon, 29 Oct 2007 02:48:48 GMT Message-Id: <200710290248.l9T2mmgM042597@freefall.freebsd.org> To: freebsd@spatula.net, glewis@FreeBSD.org, freebsd-java@FreeBSD.org From: glewis@FreeBSD.org Cc: Subject: Re: java/116430: JDK does not respect DNS caching parameters on timeout with CNAME X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2007 02:48:48 -0000 Synopsis: JDK does not respect DNS caching parameters on timeout with CNAME State-Changed-From-To: open->closed State-Changed-By: glewis State-Changed-When: Mon Oct 29 02:48:06 UTC 2007 State-Changed-Why: Closing since the committer has tracked the problem down to compiling Tomcat with gcc 4.2 and recompiling (wuth 3.4.6) solved the issue. http://www.freebsd.org/cgi/query-pr.cgi?pr=116430 From owner-freebsd-java@FreeBSD.ORG Mon Oct 29 11:07:10 2007 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A727216A46E for ; Mon, 29 Oct 2007 11:07:06 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4733913C4A5 for ; Mon, 29 Oct 2007 11:07:06 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9TB76Kb090156 for ; Mon, 29 Oct 2007 11:07:06 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9TB75LE090152 for freebsd-java@FreeBSD.org; Mon, 29 Oct 2007 11:07:05 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 29 Oct 2007 11:07:05 GMT Message-Id: <200710291107.l9TB75LE090152@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-java@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-java@FreeBSD.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2007 11:07:10 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- s ports/60083 java java/jdk14 - Unsafe use of getaddrinfo in jvm 1.4.2-p5 f java/72151 java JVM crash on 5.2.1-R o java/105482 java diablo-jdk1.5.0/jdk-1.5.0 java.nio.Selector bug o java/110912 java Java krb5 client leaks UDP connections o java/112595 java Java appletviewer frequently hangs (kse_release loop) o ports/113467 java Multiple "missing return value" errors building JDK on o java/114644 java tomcat goes out of PermSpace, jvm crashes 7 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- f ports/56928 java jce-aba port should install to $JAVA_HOME/jre/lib/ext f java/62837 java linux-sun-jdk14 executables hang with COMPAT_LINUX in o ports/84742 java make ports/java/jdk14 use dynamic Motif librarires o java/97461 java Diablo JDK does not report Update level in a format su o ports/113751 java java/linux-sun-jdk15: linux-sun-jdk-1.5.0.12,2 - java o ports/115279 java [UPDATE] java/java3d to 1.5.1 o java/115773 java java.nio channel selectors should use kqueue/kevent in o ports/116082 java java/linux-sun-jdk16 jconsole is unable to connect to o java/116667 java linux-sun-javac1.4 hangs on SMP o ports/116841 java cannot build java/jdk16 by using java/linux-sun-jdk16 10 problems total. From owner-freebsd-java@FreeBSD.ORG Mon Oct 29 16:48:57 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED58116A47B for ; Mon, 29 Oct 2007 16:48:57 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mx1.freebsd.org (Postfix) with ESMTP id 58B1B13C4C1 for ; Mon, 29 Oct 2007 16:48:56 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (localhost [127.0.0.1]) by smadev.internal.net (8.13.6/8.13.6) with ESMTP id l9T6fiBv072392 for ; Mon, 29 Oct 2007 08:41:44 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.13.6/8.13.6/Submit) id l9T6ffcr072391 for freebsd-java@freebsd.org; Mon, 29 Oct 2007 08:41:41 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: freebsd-java@freebsd.org Date: Mon, 29 Oct 2007 09:41:41 +0300 User-Agent: KMail/1.9.3 References: <20071028204540.GA67345@misty.eyesbeyond.com> In-Reply-To: <20071028204540.GA67345@misty.eyesbeyond.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200710290841.41747.achill@matrix.gatewaynet.com> Subject: Re: JDK 1.6.0 patchset 2 "Mestengo" X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2007 16:48:58 -0000 =CE=A3=CF=84=CE=B9=CF=82 =CE=9A=CF=85=CF=81=CE=B9=CE=B1=CE=BA=CE=AE 28 =CE= =9F=CE=BA=CF=84=CF=8E=CE=B2=CF=81=CE=B9=CE=BF=CF=82 2007 22:45, =CE=BF/=CE= =B7 Greg Lewis =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > On behalf of the BSD Java Porting team, I'm pleased to announce the > availability of Patchset 2 "Mestengo" for JDK 1.6, based on the > JDK 1.6.0 Update 2 JRL source code. > > This patchset includes bug fixes and updates the code base to use the > 1.6.0 Update 2 source code. However, the most exciting part of this > patchset is that the browser plugin code now fully supports amd64. This > is the first such support of any operating system that I'm aware of and > I'd like to specially thank Jung-uk Kim and Kurt Miller for their work > on this. Great news! > > The following platforms are supported by this release: > > FreeBSD 6.2/i386 (or later) > FreeBSD 6.2/amd64 (or later) > OpenBSD 4.0/i386 (or later) > OpenBSD 4.0/amd64 (or later) > NetBSD 3.1/i386 (or later) > > The patchset can be downloaded at: > > http://www.eyesbeyond.com/freebsddom/java/jdk16.html > > An update for the java/jdk16 port will follow shortly. =2D-=20 Achilleas Mantzios From owner-freebsd-java@FreeBSD.ORG Mon Oct 29 19:49:05 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF53D16A468 for ; Mon, 29 Oct 2007 19:49:05 +0000 (UTC) (envelope-from freebsd@spatula.net) Received: from turing.morons.org (turing.morons.org [208.96.51.42]) by mx1.freebsd.org (Postfix) with ESMTP id AC88D13C4C3 for ; Mon, 29 Oct 2007 19:49:05 +0000 (UTC) (envelope-from freebsd@spatula.net) Received: by turing.morons.org (Postfix, from userid 1001) id 34D9617037; Mon, 29 Oct 2007 12:48:51 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by turing.morons.org (Postfix) with ESMTP id 3223F17036 for ; Mon, 29 Oct 2007 12:48:51 -0700 (PDT) Date: Mon, 29 Oct 2007 12:48:51 -0700 (PDT) From: Nick Johnson X-X-Sender: spatula@turing To: freebsd-java@freebsd.org In-Reply-To: <20071028141053.G25435@turing> Message-ID: <20071029121826.T25435@turing> References: <20071023195511.GA27666@misty.eyesbeyond.com> <20071023170536.H25435@turing> <20071024210348.GA34044@misty.eyesbeyond.com> <20071026205754.15950c80@tinca> <20071026121159.A25435@turing> <20071026134734.M25435@turing> <20071026162351.B25435@turing> <20071028130627.A25435@turing> <20071028141053.G25435@turing> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: negative dns caching problem *resolved* (was Re: JDK 1.5.0 patchset 7 "South China") X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2007 19:49:05 -0000 On Sun, 28 Oct 2007, Nick Johnson wrote: > After months of fighting with this, today I stumbled upon the answer. It > was a java command line test case that led me to it. It seems I spoke to soon. Today the problem started to manifest itself once again. I have no idea why. I'm going to try to run Tomcat without its native libraries at all for a while and see if that makes any difference. Whatever is happening seems to have something to do with a long-running process. It wasn't happening yesterday when I had recently restarted Tomcat. It is happening today with no configuration changes and with Tomcat that's been running for several hours. I'm not entirely convinced the issue is necessarily related to caching. It could also be that InetAddress just starts throwing an UnknownHostException immediately, without making any attempt at name resolution (cached or otherwise) at all. Having become fairly familiar with that code path, though, I can't imagine why it would do that. Nick -- "Courage isn't just a matter of not being frightened, you know. It's being afraid and doing what you have to do anyway." Doctor Who - Planet of the Daleks This message has been brought to you by Nick Johnson 2.3b1 and the number 6. http://healerNick.com/ http://morons.org/ http://spatula.net/ From owner-freebsd-java@FreeBSD.ORG Mon Oct 29 23:05:14 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A578316A417 for ; Mon, 29 Oct 2007 23:05:14 +0000 (UTC) (envelope-from freebsd@spatula.net) Received: from turing.morons.org (turing.morons.org [208.96.51.42]) by mx1.freebsd.org (Postfix) with ESMTP id 95C0213C4A3 for ; Mon, 29 Oct 2007 23:05:14 +0000 (UTC) (envelope-from freebsd@spatula.net) Received: by turing.morons.org (Postfix, from userid 1001) id B3E4117036; Mon, 29 Oct 2007 16:04:39 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by turing.morons.org (Postfix) with ESMTP id 9E88617034 for ; Mon, 29 Oct 2007 16:04:39 -0700 (PDT) Date: Mon, 29 Oct 2007 16:04:39 -0700 (PDT) From: Nick Johnson X-X-Sender: spatula@turing To: freebsd-java@freebsd.org In-Reply-To: <20071028141053.G25435@turing> Message-ID: <20071029152022.H25435@turing> References: <20071023195511.GA27666@misty.eyesbeyond.com> <20071023170536.H25435@turing> <20071024210348.GA34044@misty.eyesbeyond.com> <20071026205754.15950c80@tinca> <20071026121159.A25435@turing> <20071026134734.M25435@turing> <20071026162351.B25435@turing> <20071028130627.A25435@turing> <20071028141053.G25435@turing> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: more on InetAddress resolution problem... X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2007 23:05:14 -0000 Another piece of interesting information, maybe... This only happens after Tomcat has been running for a few hours, and it isn't that it is negative caching bad domains; rather, I have confirmed that InetAddress doesn't even make an initial attempt to resolve a name. It just starts refusing to resolve ANY name at all. It happens regardless of whether Tomcat is running with its native libraries. I ran a ktrace on the java process, and when it comes time to do the name resolution, it's repeatedly making NAMI requests for /etc/nsswitch.conf, /etc/services; reading /etc/services each time (apparently looking up the "domain" service, because it stops reading shortly after that), then it reads /etc/hosts. Then it opens a socket, immediately closes it, twice, and then throws an exception. Here's that part, starting immediately after /etc/hosts is read (from fd 1413): 31013 jsvc CALL read(0x585,0x82da000,0x1000) 31013 jsvc GIO fd 1413 read 0 bytes "" 31013 jsvc RET read 0 31013 jsvc CALL close(0x585) 31013 jsvc RET close 0 31013 jsvc CALL kqueue 31013 jsvc RET kqueue 1413/0x585 31013 jsvc CALL socket(0x2,0x2,0) 31013 jsvc RET socket 1414/0x586 31013 jsvc CALL close(0x586) 31013 jsvc RET close 0 31013 jsvc CALL close(0x585) 31013 jsvc RET close 0 31013 jsvc CALL kqueue 31013 jsvc RET kqueue 1413/0x585 31013 jsvc CALL socket(0x2,0x2,0) 31013 jsvc RET socket 1414/0x586 31013 jsvc CALL close(0x586) 31013 jsvc RET close 0 31013 jsvc CALL close(0x585) 31013 jsvc RET close 0 31013 jsvc CALL socket(0x2,0x1,0) 31013 jsvc RET socket 1413/0x585 31013 jsvc CALL write(0x1,0xb175a80c,0x157e) 31013 jsvc GIO fd 1 wrote 4096 bytes (exception printed here) One thing I notice is that these FD numbers seem -really- high, but there aren't any errors in response to these syscalls either. Nick -- "Courage isn't just a matter of not being frightened, you know. It's being afraid and doing what you have to do anyway." Doctor Who - Planet of the Daleks This message has been brought to you by Nick Johnson 2.3b1 and the number 6. http://healerNick.com/ http://morons.org/ http://spatula.net/ From owner-freebsd-java@FreeBSD.ORG Tue Oct 30 00:45:37 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A9BA16A41A; Tue, 30 Oct 2007 00:45:37 +0000 (UTC) (envelope-from lists@swaggi.com) Received: from rusty.swaggy.net (rusty.swaggy.net [204.14.85.196]) by mx1.freebsd.org (Postfix) with ESMTP id 3B10513C4BC; Tue, 30 Oct 2007 00:45:37 +0000 (UTC) (envelope-from lists@swaggi.com) Received: from localhost ([127.0.0.1] helo=swaggi.com) by rusty.swaggy.net with esmtp (Exim 4.67 (FreeBSD)) (envelope-from ) id 1Imebu-000Gsr-CZ; Mon, 29 Oct 2007 20:05:37 -0400 From: "Yuri Lukin" To: freebsd-current@freebsd.org Date: Mon, 29 Oct 2007 19:05:34 -0500 Message-Id: <20071029235020.M75001@swaggi.com> X-Mailer: swaggi.com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Cc: freebsd-java@freebsd.org Subject: Firefox Java plugin with 7.0? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2007 00:45:37 -0000 I'm like to ask what people are using for Java plugin with Firefox. There were a few recent threads on this subject but no definitive answer: http://lists.freebsd.org/pipermail/freebsd-current/2007-October/078038.html http://lists.freebsd.org/pipermail/freebsd-current/2007-October/078492.html I tried compiling jdk15 port and was able to build it and install it successfully. However, when trying to load a java applet in Firefox, the browser seemingly crashes (exits). I then tried following the method described in the handbook by downloading the diablo-jre-freebsd6.i386.1.5.0.07.01.tbz package from FreeBSD Foundation website and adding it with pkg_add. Trying to load java applets crashes Firefox. In both cases, javavmwrapper was installed and about:plugins in Firefox shows that java plugin is installed. Is there a working combination for 7.0-PRERELEASE/BETA? My system is: # uname -a FreeBSD 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Mon Oct 15 13:02:17 EDT 2007 swaggy@:/usr/obj/usr/src/sys/T61 i386 # pkg_info | grep java javavmwrapper-2.3 Wrapper script for various Java Virtual Machines # pkg_info | grep firefox firefox-2.0.0.8,1 Web browser based on the browser portion of Mozilla # ls -la /usr/local/lib/browser_plugins/ total 96 drwxr-xr-x 2 root wheel 512 Oct 29 19:22 . drwxr-xr-x 54 root wheel 31232 Oct 29 13:26 .. -rw-r--r-- 1 root wheel 0 Oct 20 00:20 .firefox.keep lrwxr-xr-x 1 root wheel 63 Oct 29 19:22 libjavaplugin_oji.so -> /usr/local/diablo-jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so -rwxr-xr-x 1 root wheel 62192 Sep 12 14:21 npwrapper.libflashplayer.so Currently with jre from FreeBSD foundation site: # pkg_info | grep jre diablo-jre-1.5.0.07.01 Java Runtime Environment 1.5.0_07.01 Thanks, Yuri From owner-freebsd-java@FreeBSD.ORG Tue Oct 30 01:31:49 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 969E616A468; Tue, 30 Oct 2007 01:31:49 +0000 (UTC) (envelope-from freebsd@spatula.net) Received: from turing.morons.org (turing.morons.org [208.96.51.42]) by mx1.freebsd.org (Postfix) with ESMTP id E8B9013C48D; Tue, 30 Oct 2007 01:31:48 +0000 (UTC) (envelope-from freebsd@spatula.net) Received: by turing.morons.org (Postfix, from userid 1001) id 14A01170DC; Mon, 29 Oct 2007 18:31:16 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by turing.morons.org (Postfix) with ESMTP id 13EDA17034; Mon, 29 Oct 2007 18:31:16 -0700 (PDT) Date: Mon, 29 Oct 2007 18:31:15 -0700 (PDT) From: Nick Johnson X-X-Sender: spatula@turing To: freebsd-java@freebsd.org In-Reply-To: <20071029152022.H25435@turing> Message-ID: <20071029163446.L25435@turing> References: <20071023195511.GA27666@misty.eyesbeyond.com> <20071023170536.H25435@turing> <20071024210348.GA34044@misty.eyesbeyond.com> <20071026205754.15950c80@tinca> <20071026121159.A25435@turing> <20071026134734.M25435@turing> <20071026162351.B25435@turing> <20071028130627.A25435@turing> <20071028141053.G25435@turing> <20071029152022.H25435@turing> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Simple, reliable test case for name resolution problem X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2007 01:31:49 -0000 The problem is in the number of open file descriptors. Once it crosses 1024, name resolution breaks. This is showing up in Tomcat 6, because Tomcat 6 is leaking descriptors like a sieve. Here's a simple test case that demonstrates the problem. On my FreeBSD 6.2 host it bombs every time. On a Linux host, it throws an IOException opening files (too many open files). On a Windows box it completes normally. My uname and java -version, just for completeness: FreeBSD turing.morons.org 6.2-STABLE FreeBSD 6.2-STABLE #0: Sun Jan 21 16:53:54 PST 2007 java version "1.5.0_13-p7" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-p7-root_26_oct_2007_14_03) The same thing happens with the Diablo JDK. Here's the code. Save it as Test.java; javac Test.java; java Test import java.net.*; import java.util.*; import java.io.*; public class Test { public static void main(String[] args) throws Exception { ArrayList files = new ArrayList(1024); System.out.println("Opening lots of files"); for(int i=0; i < 1024; i++) { files.add(new FileInputStream("/dev/null")); } System.out.println("Trying to resolve freebsd.org"); InetAddress.getByName("freebsd.org"); // throws exception! } } -- "Courage isn't just a matter of not being frightened, you know. It's being afraid and doing what you have to do anyway." Doctor Who - Planet of the Daleks This message has been brought to you by Nick Johnson 2.3b1 and the number 6. http://healerNick.com/ http://morons.org/ http://spatula.net/ From owner-freebsd-java@FreeBSD.ORG Tue Oct 30 03:56:42 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49CDE16A46B for ; Tue, 30 Oct 2007 03:56:42 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 2CDB113C4C8 for ; Tue, 30 Oct 2007 03:56:42 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 7B8B61A4D84; Mon, 29 Oct 2007 18:50:05 -0700 (PDT) Date: Mon, 29 Oct 2007 18:50:05 -0700 From: Alfred Perlstein To: Nick Johnson Message-ID: <20071030015005.GM33488@elvis.mu.org> References: <20071023170536.H25435@turing> <20071024210348.GA34044@misty.eyesbeyond.com> <20071026205754.15950c80@tinca> <20071026121159.A25435@turing> <20071026134734.M25435@turing> <20071026162351.B25435@turing> <20071028130627.A25435@turing> <20071028141053.G25435@turing> <20071029152022.H25435@turing> <20071029163446.L25435@turing> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="4Epv4kl9IRBfg3rk" Content-Disposition: inline In-Reply-To: <20071029163446.L25435@turing> User-Agent: Mutt/1.4.2.3i X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-java@freebsd.org Subject: Re: Simple, reliable test case for name resolution problem X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2007 03:56:42 -0000 --4Epv4kl9IRBfg3rk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline * Nick Johnson [071029 18:31] wrote: > The problem is in the number of open file descriptors. Once it crosses > 1024, name resolution breaks. This is showing up in Tomcat 6, because > Tomcat 6 is leaking descriptors like a sieve. > > Here's a simple test case that demonstrates the problem. On my FreeBSD > 6.2 host it bombs every time. On a Linux host, it throws an IOException > opening files (too many open files). On a Windows box it completes > normally. > > My uname and java -version, just for completeness: > FreeBSD turing.morons.org 6.2-STABLE FreeBSD 6.2-STABLE #0: Sun Jan 21 16:53:54 PST 2007 > java version "1.5.0_13-p7" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-p7-root_26_oct_2007_14_03) > > The same thing happens with the Diablo JDK. > > Here's the code. Save it as Test.java; javac Test.java; java Test > > import java.net.*; > import java.util.*; > import java.io.*; > > public class Test { > public static void main(String[] args) throws Exception { > > ArrayList files = new ArrayList(1024); > > System.out.println("Opening lots of files"); > for(int i=0; i < 1024; i++) { > files.add(new FileInputStream("/dev/null")); > } > > System.out.println("Trying to resolve freebsd.org"); > InetAddress.getByName("freebsd.org"); // throws exception! > > } > } > Please try attached patch from cvs: jhb 2007-03-12 19:51:57 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) lib/libc/resolv res_send.c Log: MFC: Don't reject file descriptors higher than FD_SETSIZE when using kevent(2). Revision Changes Path 1.2.2.5 +5 -7 src/lib/libc/resolv/res_send.c --4Epv4kl9IRBfg3rk-- From owner-freebsd-java@FreeBSD.ORG Tue Oct 30 16:05:47 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7FA3A16A4DE; Tue, 30 Oct 2007 16:05:47 +0000 (UTC) (envelope-from ulrich@pukruppa.net) Received: from pukruppa.net (pukruppa.net [213.146.114.24]) by mx1.freebsd.org (Postfix) with ESMTP id C5A8813C4B5; Tue, 30 Oct 2007 16:05:43 +0000 (UTC) (envelope-from ulrich@pukruppa.net) Received: from pukruppa.net (localhost [127.0.0.1]) by pukruppa.net (8.14.1/8.14.1) with ESMTP id l9UFdeuT052012; Tue, 30 Oct 2007 16:39:40 +0100 (CET) (envelope-from ulrich@pukruppa.net) Received: from localhost (ulrich@localhost) by pukruppa.net (8.14.1/8.14.1/Submit) with ESMTP id l9UFdd1f052009; Tue, 30 Oct 2007 16:39:40 +0100 (CET) (envelope-from ulrich@pukruppa.net) Date: Tue, 30 Oct 2007 16:39:39 +0100 (CET) From: "P.U.Kruppa" X-X-Sender: ulrich@small To: Yuri Lukin In-Reply-To: <20071029235020.M75001@swaggi.com> Message-ID: <20071030163704.R2455@small> References: <20071029235020.M75001@swaggi.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-current@freebsd.org, freebsd-java@freebsd.org Subject: Re: Firefox Java plugin with 7.0? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2007 16:05:47 -0000 On Mon, 29 Oct 2007, Yuri Lukin wrote: > > I'm like to ask what people are using for Java plugin with Firefox. There were > a few recent threads on this subject but no definitive answer: > > http://lists.freebsd.org/pipermail/freebsd-current/2007-October/078038.html > http://lists.freebsd.org/pipermail/freebsd-current/2007-October/078492.html > > I tried compiling jdk15 port and was able to build it and install it > successfully. However, when trying to load a java applet in Firefox, the > browser seemingly crashes (exits). I then tried following the method described > in the handbook by downloading the diablo-jre-freebsd6.i386.1.5.0.07.01.tbz > package from FreeBSD Foundation website and adding it with pkg_add. Trying to > load java applets crashes Firefox. In both cases, javavmwrapper was installed > and about:plugins in Firefox shows that java plugin is installed. Is there a > working combination for 7.0-PRERELEASE/BETA? Since yesterday's portsnap I have got it running with native jdk1.6.0 (on amd64, but probably it will also work on i386). Good Luck, Uli. > > My system is: > > # uname -a > FreeBSD 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Mon Oct 15 13:02:17 EDT > 2007 swaggy@:/usr/obj/usr/src/sys/T61 i386 > # pkg_info | grep java > javavmwrapper-2.3 Wrapper script for various Java Virtual Machines > # pkg_info | grep firefox > firefox-2.0.0.8,1 Web browser based on the browser portion of Mozilla > > # ls -la /usr/local/lib/browser_plugins/ > total 96 > drwxr-xr-x 2 root wheel 512 Oct 29 19:22 . > drwxr-xr-x 54 root wheel 31232 Oct 29 13:26 .. > -rw-r--r-- 1 root wheel 0 Oct 20 00:20 .firefox.keep > lrwxr-xr-x 1 root wheel 63 Oct 29 19:22 libjavaplugin_oji.so -> > /usr/local/diablo-jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so > -rwxr-xr-x 1 root wheel 62192 Sep 12 14:21 npwrapper.libflashplayer.so > > > Currently with jre from FreeBSD foundation site: > # pkg_info | grep jre > diablo-jre-1.5.0.07.01 Java Runtime Environment 1.5.0_07.01 > > > Thanks, > Yuri > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > Peter Ulrich Kruppa Wuppertal Germany From owner-freebsd-java@FreeBSD.ORG Tue Oct 30 20:52:45 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AFCD416A41A for ; Tue, 30 Oct 2007 20:52:45 +0000 (UTC) (envelope-from bj@cold.dk) Received: from frontend1.kadnet.dk (frontend1.kadnet.dk [83.221.137.240]) by mx1.freebsd.org (Postfix) with SMTP id 07D2E13C4B2 for ; Tue, 30 Oct 2007 20:52:44 +0000 (UTC) (envelope-from bj@cold.dk) Received: (qmail 97435 invoked by uid 89); 30 Oct 2007 20:11:23 -0000 Received: from unknown (HELO hamilton.sjovedyr.dk) (83.221.137.165) by frontend1.kadnet.dk with SMTP; 30 Oct 2007 20:11:23 -0000 Message-ID: <4727935B.1000007@cold.dk> Date: Tue, 30 Oct 2007 21:26:03 +0100 From: Brian Josefsen User-Agent: Thunderbird 2.0.0.6 (X11/20070924) MIME-Version: 1.0 To: Yuri Lukin References: <20071029235020.M75001@swaggi.com> In-Reply-To: <20071029235020.M75001@swaggi.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, freebsd-java@freebsd.org Subject: Re: Firefox Java plugin with 7.0? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2007 20:52:45 -0000 Yuri Lukin wrote: > I'm like to ask what people are using for Java plugin with Firefox. There were > a few recent threads on this subject but no definitive answer: > > http://lists.freebsd.org/pipermail/freebsd-current/2007-October/078038.html > http://lists.freebsd.org/pipermail/freebsd-current/2007-October/078492.html > > I tried compiling jdk15 port and was able to build it and install it > successfully. However, when trying to load a java applet in Firefox, the > browser seemingly crashes (exits). I then tried following the method described > in the handbook by downloading the diablo-jre-freebsd6.i386.1.5.0.07.01.tbz > package from FreeBSD Foundation website and adding it with pkg_add. Trying to > load java applets crashes Firefox. In both cases, javavmwrapper was installed > and about:plugins in Firefox shows that java plugin is installed. Is there a > working combination for 7.0-PRERELEASE/BETA? > I made sure i had freebsd 6 compability in the kernel, no problem viewing applets in FreeBSD 7 with firefox 2, but firefox-devel (firefox 3) crashes with every kind of plugin, and even with some extensions. I use the Diable JDK with latest patchset, don't know if that makes a difference. -- Best regards Brian Josefsen Copenhagen, Denmark From owner-freebsd-java@FreeBSD.ORG Tue Oct 30 22:45:16 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EFEB116A418; Tue, 30 Oct 2007 22:45:16 +0000 (UTC) (envelope-from lists@swaggi.com) Received: from rusty.swaggy.net (rusty.swaggy.net [204.14.85.196]) by mx1.freebsd.org (Postfix) with ESMTP id C88ED13C480; Tue, 30 Oct 2007 22:45:16 +0000 (UTC) (envelope-from lists@swaggi.com) Received: from localhost ([127.0.0.1] helo=swaggi.com) by rusty.swaggy.net with esmtp (Exim 4.67 (FreeBSD)) (envelope-from ) id 1ImzDT-000IBc-7q; Tue, 30 Oct 2007 18:05:44 -0400 From: "Yuri Lukin" To: freebsd-current@freebsd.org Date: Tue, 30 Oct 2007 17:05:43 -0500 Message-Id: <20071030220251.M82173@swaggi.com> In-Reply-To: <20071029235020.M75001@swaggi.com> References: <20071029235020.M75001@swaggi.com> X-Mailer: swaggi.com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Cc: freebsd-java@freebsd.org Subject: Re: Firefox Java plugin with 7.0? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2007 22:45:17 -0000 On Mon, 29 Oct 2007 19:05:34 -0500, Yuri Lukin wrote > I'm like to ask what people are using for Java plugin with Firefox. > There were a few recent threads on this subject but no definitive answer: > > http://lists.freebsd.org/pipermail/freebsd-current/2007-October/078038.html > http://lists.freebsd.org/pipermail/freebsd-current/2007-October/078492.html > > I tried compiling jdk15 port and was able to build it and install it > successfully. However, when trying to load a java applet in Firefox, > the browser seemingly crashes (exits). I then tried following the > method described in the handbook by downloading the diablo-jre-freebsd6.i386.1.5.0.07.01.tbz > package from FreeBSD Foundation website and adding it with pkg_add. > Trying to load java applets crashes Firefox. In both cases, > javavmwrapper was installed and about:plugins in Firefox shows that > java plugin is installed. Is there a working combination for 7.0-PRERELEASE/BETA? > > My system is: > > # uname -a > > FreeBSD 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Mon Oct 15 > 13:02:17 EDT 2007 swaggy@:/usr/obj/usr/src/sys/T61 i386 > # pkg_info | grep java > javavmwrapper-2.3 Wrapper script for various Java Virtual Machines > # pkg_info | grep firefox > firefox-2.0.0.8,1 Web browser based on the browser portion of Mozilla > > # ls -la /usr/local/lib/browser_plugins/ > total 96 > drwxr-xr-x 2 root wheel 512 Oct 29 19:22 . > drwxr-xr-x 54 root wheel 31232 Oct 29 13:26 .. > -rw-r--r-- 1 root wheel 0 Oct 20 00:20 .firefox.keep > lrwxr-xr-x 1 root wheel 63 Oct 29 19:22 libjavaplugin_oji.so - > > /usr/local/diablo-jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so - > rwxr-xr-x 1 root wheel 62192 Sep 12 14:21 npwrapper.libflashplayer.so > > Currently with jre from FreeBSD foundation site: > # pkg_info | grep jre > diablo-jre-1.5.0.07.01 Java Runtime Environment 1.5.0_07.01 > I found an answer off-list. In case anyone is wondering, I had to first install java/diablo-jdk15 (with compat6x), then install java/jdk15. After that, I simply removed diablo-jdk15 and added a symlink to /usr/local/lib/browser_plugins in order for Firefox to recognize the browser plugin. Works great now. Many thanks to Vlad Galu for the answer. Yuri From owner-freebsd-java@FreeBSD.ORG Wed Oct 31 20:26:17 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6290416A41A for ; Wed, 31 Oct 2007 20:26:17 +0000 (UTC) (envelope-from freebsd@spatula.net) Received: from turing.morons.org (turing.morons.org [208.96.51.42]) by mx1.freebsd.org (Postfix) with ESMTP id 2F50B13C48D for ; Wed, 31 Oct 2007 20:26:16 +0000 (UTC) (envelope-from freebsd@spatula.net) Received: from turing.morons.org (spatula@localhost [127.0.0.1]) by turing.morons.org (8.14.1/8.14.1) with ESMTP id l9VKPqwF002687 for ; Wed, 31 Oct 2007 13:25:52 -0700 (PDT) (envelope-from freebsd@spatula.net) Received: from localhost (spatula@localhost) by turing.morons.org (8.14.1/8.14.1/Submit) with ESMTP id l9VKPqxR002684 for ; Wed, 31 Oct 2007 13:25:52 -0700 (PDT) (envelope-from freebsd@spatula.net) X-Authentication-Warning: turing.morons.org: spatula owned process doing -bs Date: Wed, 31 Oct 2007 13:25:51 -0700 (PDT) From: Nick Johnson X-X-Sender: spatula@turing To: freebsd-java@freebsd.org In-Reply-To: <20071029163446.L25435@turing> Message-ID: <20071031132106.P1679@turing> References: <20071023195511.GA27666@misty.eyesbeyond.com> <20071023170536.H25435@turing> <20071024210348.GA34044@misty.eyesbeyond.com> <20071026205754.15950c80@tinca> <20071026121159.A25435@turing> <20071026134734.M25435@turing> <20071026162351.B25435@turing> <20071028130627.A25435@turing> <20071028141053.G25435@turing> <20071029152022.H25435@turing> <20071029163446.L25435@turing> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: Simple, reliable test case for name resolution problem X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2007 20:26:17 -0000 I have verified that this testcase works on a recent 6-STABLE, so it was apparently a libc or kernel bug that was getting tickled around doing a socket operation with a large-numbered file descriptor, which has since been fixed. Nick On Mon, 29 Oct 2007, Nick Johnson wrote: > The problem is in the number of open file descriptors. Once it crosses > 1024, name resolution breaks. This is showing up in Tomcat 6, because > Tomcat 6 is leaking descriptors like a sieve. > > Here's a simple test case that demonstrates the problem. On my FreeBSD > 6.2 host it bombs every time. On a Linux host, it throws an IOException > opening files (too many open files). On a Windows box it completes > normally. > > My uname and java -version, just for completeness: > FreeBSD turing.morons.org 6.2-STABLE FreeBSD 6.2-STABLE #0: Sun Jan 21 16:53:54 PST 2007 > java version "1.5.0_13-p7" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-p7-root_26_oct_2007_14_03) > > The same thing happens with the Diablo JDK. > > Here's the code. Save it as Test.java; javac Test.java; java Test > > import java.net.*; > import java.util.*; > import java.io.*; > > public class Test { > public static void main(String[] args) throws Exception { > > ArrayList files = new ArrayList(1024); > > System.out.println("Opening lots of files"); > for(int i=0; i < 1024; i++) { > files.add(new FileInputStream("/dev/null")); > } > > System.out.println("Trying to resolve freebsd.org"); > InetAddress.getByName("freebsd.org"); // throws exception! > > } > } > > > -- "Courage isn't just a matter of not being frightened, you know. It's being afraid and doing what you have to do anyway." Doctor Who - Planet of the Daleks This message has been brought to you by Nick Johnson 2.3b1 and the number 6. http://healerNick.com/ http://morons.org/ http://spatula.net/ From owner-freebsd-java@FreeBSD.ORG Sat Nov 3 13:15:17 2007 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 20E5116A468 for ; Sat, 3 Nov 2007 13:15:17 +0000 (UTC) (envelope-from ben@idataconnect.com) Received: from ns.idataconnect.com (ns.idataconnect.com [64.173.188.135]) by mx1.freebsd.org (Postfix) with ESMTP id 0BBBF13C4A6 for ; Sat, 3 Nov 2007 13:15:16 +0000 (UTC) (envelope-from ben@idataconnect.com) Received: from [10.0.1.201] (CPE-76-178-93-102.natsow.res.rr.com [76.178.93.102]) by ns.idataconnect.com (Postfix) with ESMTP id 9184181565 for ; Sat, 3 Nov 2007 05:12:01 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.2) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-java@FreeBSD.org From: Ben Upsavs Date: Sat, 3 Nov 2007 05:11:56 -0700 X-Mailer: Apple Mail (2.752.2) Cc: Subject: JDK6 bug X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Nov 2007 13:15:17 -0000 I just tried JDK6 patchlevel 2 and the showstopper for me was that if I have a web page using JSTL and I add a tag such as this: the number will not be formatted as currency. Even if I specify above the formatNumber tag, the results are no different. I always see a result of the value I am trying to format, with one decimal place, and no currency symbol. e.g. 123 becomes 123.0 instead of $123.00