Hi Roland

If you suspect this has something to do with SSL/JDK, then the debug options at http://java.sun.com/j2se/1.5.0/docs/guide/security/jsse/JSSERefGuide.html#Debug might be of interest. The -Djavax.net/debug=all would dump a lot of handshake information, which may help you figure out the problem.

cheers
asankha

Roland Weber wrote:
Hi Oleg,

when I use the standard build.xml, it works here too.
I've tracked it down to

  HostnameVerifier$AbstractVerifier.
      verify(String host, SSLSocket ssl)

There, ssl.getSession() is called first thing and it
never returns. The thread dump is below, but don't
trust the line numbers. I've added a few System.out.
The HV$AV.verify(...) hangs at the first ssl.getSession()
call, immediately after the argument null check.
I guess it has something to do with the way Ant sets
up the JVM when using <junit>.

cheers,
  Roland

"main" prio=1 tid=0x0805d358 nid=0x5160 runnable [0xbfede000..0xbfededf8]
  at java.net.SocketInputStream.socketRead0(Native Method)
  at java.net.SocketInputStream.read(SocketInputStream.java:129)
  at com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:293)
  at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:331)
  at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:723)
  - locked <0xaa5f63b0> (a java.lang.Object)
  at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1030)
  - locked <0xaa5f63a0> (a java.lang.Object)
  at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1057)
  at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.getSession(SSLSocketImpl.java:1757)
  at
org.apache.http.conn.ssl.HostnameVerifier$AbstractVerifier.verify(HostnameVerifier.java:187)
  at
org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:290)
  at
org.apache.http.conn.ssl.TestSSLSocketFactory.testCreateSocket(TestSSLSocketFactory.java:162)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:585)
  at junit.framework.TestCase.runTest(TestCase.java:154)
  at junit.framework.TestCase.runBare(TestCase.java:127)
  at junit.framework.TestResult$1.protect(TestResult.java:106)
  at junit.framework.TestResult.runProtected(TestResult.java:124)
  at junit.framework.TestResult.run(TestResult.java:109)
  at junit.framework.TestCase.run(TestCase.java:118)
  at junit.framework.TestSuite.runTest(TestSuite.java:208)
  at junit.framework.TestSuite.run(TestSuite.java:203)
  at junit.framework.TestSuite.runTest(TestSuite.java:208)
  at junit.framework.TestSuite.run(TestSuite.java:203)
  at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)
  at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
  at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:743)



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to