From owner-freebsd-java@FreeBSD.ORG Mon May 3 02:32:01 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C79616A561 for ; Mon, 3 May 2004 02:32:00 -0700 (PDT) Received: from phantom.cris.net (phantom.cris.net [212.110.130.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82ECC43D5C for ; Mon, 3 May 2004 02:31:53 -0700 (PDT) (envelope-from ml@FreeBSD.org.ua) Received: from phantom.cris.net (ml@localhost [127.0.0.1]) by phantom.cris.net (8.12.10/8.12.10) with ESMTP id i439W4ME078260; Mon, 3 May 2004 12:32:05 +0300 (EEST) (envelope-from ml@FreeBSD.org.ua) Received: (from ml@localhost) by phantom.cris.net (8.12.10/8.12.10/Submit) id i439W0hP078259; Mon, 3 May 2004 12:32:00 +0300 (EEST) (envelope-from ml) Date: Mon, 3 May 2004 12:31:58 +0300 From: Alexey Zelkin To: gabor Message-ID: <20040503093158.GA78240@phantom.cris.net> References: <1083575092.13142.25.camel@dubb> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1083575092.13142.25.camel@dubb> X-Operating-System: FreeBSD 4.9-STABLE i386 User-Agent: Mutt/1.5.5.1i cc: freebsd-java@freebsd.org Subject: Re: SSLSocketFactory.getDefault() halts when remote X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2004 09:32:01 -0000 hi, If it's FreeBSD-4 -- do you have entropy harvseting enabled ? ps: man rndcontrol On Mon, May 03, 2004 at 11:04:52AM +0200, gabor wrote: > hi, > > i have a small class, which calls SSLSocketFactory.getDefault(). > > the problem is: > if i start the class locally (sitting by that computer), then it works. > > but if log in using ssh from a remote location to that computer, and > start the class, it just stops, and stays. (the stackdump is below). > > the java class that triggered this problem is: > > ================================================== > import javax.net.ssl.*; > public class test > { > public static void main(String[] args) > { > SSLSocketFactory.getDefault(); > } > } > ================================================= > > any ideas? > > gabor > > > ============================================== > Full thread dump Java HotSpot(TM) Client VM > (1.4.2-p6-root_28_mar_2004_22_55 mixed mode): > > "Signal Dispatcher" daemon prio=10 tid=0x080fe800 nid=0x81f3c00 waiting > on condition [0..0] > > "Finalizer" daemon prio=8 tid=0x080fe600 nid=0x8169c00 in Object.wait() > [81ea000..81eacdc] > at java.lang.Object.wait(Native Method) > - waiting on <0x2c9c79d8> (a java.lang.ref.ReferenceQueue$Lock) > at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111) > - locked <0x2c9c79d8> (a java.lang.ref.ReferenceQueue$Lock) > at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127) > at > java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159) > > "Reference Handler" daemon prio=10 tid=0x080fe400 nid=0x8169000 in > Object.wait() [81a9000..81a9cdc] > at java.lang.Object.wait(Native Method) > - waiting on <0x2c9c7a40> (a java.lang.ref.Reference$Lock) > at java.lang.Object.wait(Object.java:429) > at > java.lang.ref.Reference$ReferenceHandler.run(Reference.java:115) > - locked <0x2c9c7a40> (a java.lang.ref.Reference$Lock) > > "main" prio=5 tid=0x08077600 nid=0x8051000 runnable [bfbfd000..bfbfea3c] > at java.io.FileInputStream.readBytes(Native Method) > at java.io.FileInputStream.read(FileInputStream.java:194) > at > java.io.BufferedInputStream.read1(BufferedInputStream.java:220) > at > java.io.BufferedInputStream.read(BufferedInputStream.java:277) > - locked <0x2c52f150> (a java.io.BufferedInputStream) > at > java.io.BufferedInputStream.fill(BufferedInputStream.java:183) > at > java.io.BufferedInputStream.read1(BufferedInputStream.java:222) > at > java.io.BufferedInputStream.read(BufferedInputStream.java:277) > - locked <0x2c52eff8> (a java.io.BufferedInputStream) > at > sun.security.provider.SeedGenerator$URLSeedGenerator.getSeedByte(SeedGenerator.java:467) > at > sun.security.provider.SeedGenerator.getSeedBytes(SeedGenerator.java:137) > at > sun.security.provider.SeedGenerator.generateSeed(SeedGenerator.java:132) > at > sun.security.provider.SecureRandom.engineGenerateSeed(SecureRandom.java:112) > at > sun.security.provider.SecureRandom.engineNextBytes(SecureRandom.java:169) > - locked <0x2c52eac8> (a sun.security.provider.SecureRandom) > at java.security.SecureRandom.nextBytes(SecureRandom.java:381) > - locked <0x2c52df08> (a java.security.SecureRandom) > at java.security.SecureRandom.next(SecureRandom.java:403) > at java.util.Random.nextInt(Random.java:191) > at > com.sun.net.ssl.internal.ssl.SSLContextImpl.engineInit(DashoA6275) > at com.sun.net.ssl.internal.ssl.SSLContextImpl.e(DashoA6275) > - locked <0x305bf1f8> (a java.lang.Class) > at > com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.(DashoA6275) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at > java.lang.reflect.Constructor.newInstance(Constructor.java:274) > at java.lang.Class.newInstance0(Class.java:308) > at java.lang.Class.newInstance(Class.java:261) > at javax.net.ssl.SSLSocketFactory.getDefault(DashoA6275) > - locked <0x305b0cc8> (a java.lang.Class) > at test.main(test.java:8) > > "VM Thread" prio=5 tid=0x08079a00 nid=0x807fc00 runnable > > "VM Periodic Task Thread" prio=10 tid=0x081ec800 nid=0x82b6400 waiting > on condition > "Suspend Checker Thread" prio=10 tid=0x081ec600 nid=0x81ebc00 runnable > ike that... > ========================================== > > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org"