From owner-freebsd-java@FreeBSD.ORG Mon May 3 02:04:54 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 7980016A4CE for ; Mon, 3 May 2004 02:04:54 -0700 (PDT) Received: from vexpert.dbai.tuwien.ac.at (vexpert.dbai.tuwien.ac.at [128.131.111.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6982D43D1D for ; Mon, 3 May 2004 02:04:53 -0700 (PDT) (envelope-from gabor@z10n.net) Received: from dubb.lixto.tuwien.ac.at (dubb.lixto.tuwien.ac.at [128.131.111.201]) by vexpert.dbai.tuwien.ac.at (Postfix) with ESMTP id 1EDC51378E for ; Mon, 3 May 2004 11:04:52 +0200 (CEST) From: gabor To: freebsd-java@FreeBSD.org Content-Type: text/plain Message-Id: <1083575092.13142.25.camel@dubb> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Mon, 03 May 2004 11:04:52 +0200 Content-Transfer-Encoding: 7bit Subject: 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:04:54 -0000 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... ==========================================