Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 May 2004 11:04:52 +0200
From:      gabor <gabor@z10n.net>
To:        freebsd-java@FreeBSD.org
Subject:   SSLSocketFactory.getDefault() halts when remote
Message-ID:  <1083575092.13142.25.camel@dubb>

next in thread | raw e-mail | index | archive | help
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.<init>(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...
==========================================



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1083575092.13142.25.camel>