harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Regis <xu.re...@gmail.com>
Subject Re: [M9] Last blocker
Date Tue, 31 Mar 2009 06:51:52 GMT
Oliver Deakin wrote:
> On Linux x86 I still see between 1 and 5 (intermittent) failures in 
> HttpsURLConnectionTest, all with similar stack trace:
> 
> java.net.SocketException: Address family not supported by protocol
> java.lang.Exception: java.net.SocketException: Address family not 
> supported by protocol at 
> org.apache.harmony.luni.tests.internal.net.www.protocol.https.HttpsURLConnectionTest.doInteraction(HttpsURLConnectionTest.java:1021)

> at 
> org.apache.harmony.luni.tests.internal.net.www.protocol.https.HttpsURLConnectionTest.doInteraction(HttpsURLConnectionTest.java:944)

> at 
> org.apache.harmony.luni.tests.internal.net.www.protocol.https.HttpsURLConnectionTest.testHttpsConnection(HttpsURLConnectionTest.java:146)

> at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)Caused 
> by: java.net.SocketException: Address family not supported by protocol 
> at 
> org.apache.harmony.luni.platform.OSNetworkSystem.read(OSNetworkSystem.java) 
> at 
> org.apache.harmony.luni.net.PlainSocketImpl.read(PlainSocketImpl.java:559) 
> at 
> org.apache.harmony.luni.net.SocketInputStream.read(SocketInputStream.java:61) 
> at 
> org.apache.harmony.xnet.provider.jsse.SSLStreamedInput.read(SSLStreamedInput.java:50)

> at 
> org.apache.harmony.xnet.provider.jsse.SSLInputStream.readUint8(SSLInputStream.java:68)

> at 
> org.apache.harmony.xnet.provider.jsse.SSLRecordProtocol.unwrap(SSLRecordProtocol.java:336)

> at 
> org.apache.harmony.xnet.provider.jsse.SSLSocketImpl.doHandshake(SSLSocketImpl.java:742)

> at 
> org.apache.harmony.xnet.provider.jsse.SSLSocketImpl.startHandshake(SSLSocketImpl.java:451)

> at 
> org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.getSecureSocket(HttpConnection.java:168)

> at 
> org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnection$HttpsEngine.connect(HttpsURLConnection.java:398)

> at 
> org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnection.connect(HttpsURLConnection.java:146)

> at 
> org.apache.harmony.luni.tests.internal.net.www.protocol.https.HttpsURLConnectionTest$ClientConnectionWork.run(HttpsURLConnectionTest.java:1415)

> 
> 
> I see this failure without the patch for HARMONY-6131, so it has not 
> been caused by that change. Does anybody else see these failures? I 
> havn't been able to get any useful debug from it yet...
> 
> Regards,
> Oliver
> 

The test can pass with IBM vme, but failed with drlvm , the trace is:
java.lang.Exception: java.net.SocketException:
	at 
org.apache.harmony.luni.tests.internal.net.www.protocol.https.HttpsURLConnectionTest.doInteraction(HttpsURLConnectionTest.java:1021)
	at 
org.apache.harmony.luni.tests.internal.net.www.protocol.https.HttpsURLConnectionTest.doInteraction(HttpsURLConnectionTest.java:944)
	at 
org.apache.harmony.luni.tests.internal.net.www.protocol.https.HttpsURLConnectionTest.testHttpsConnection(HttpsURLConnectionTest.java:146)
	at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
	at java.lang.reflect.Method.invoke(Method.java:317)
	at junit.framework.TestCase.runTest(TestCase.java:164)
	at junit.framework.TestCase.runBare(TestCase.java:130)
	at junit.framework.TestResult$1.protect(TestResult.java:110)
	at junit.framework.TestResult.runProtected(TestResult.java:128)
	at junit.framework.TestResult.run(TestResult.java:113)
	at junit.framework.TestCase.run(TestCase.java:120)
	at junit.framework.TestSuite.runTest(TestSuite.java:228)
	at junit.framework.TestSuite.run(TestSuite.java:223)
	at 
org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
	at 
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
	at 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
	at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
	at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
	at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: java.net.SocketException:
	at 
org.apache.harmony.luni.platform.OSNetworkSystem.read(OSNetworkSystem.java)
	at 
org.apache.harmony.luni.net.PlainSocketImpl.read(PlainSocketImpl.java:557)
	at 
org.apache.harmony.luni.net.SocketInputStream.read(SocketInputStream.java:61)
	at 
org.apache.harmony.xnet.provider.jsse.SSLStreamedInput.read(SSLStreamedInput.java:50)
	at 
org.apache.harmony.xnet.provider.jsse.SSLInputStream.readUint8(SSLInputStream.java:68)
	at 
org.apache.harmony.xnet.provider.jsse.SSLRecordProtocol.unwrap(SSLRecordProtocol.java:336)
	at 
org.apache.harmony.xnet.provider.jsse.SSLSocketImpl.doHandshake(SSLSocketImpl.java:742)
	at 
org.apache.harmony.xnet.provider.jsse.SSLSocketImpl.startHandshake(SSLSocketImpl.java:451)
	at 
org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.getSecureSocket(HttpConnection.java:168)
	at 
org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnection$HttpsEngine.connect(HttpsURLConnection.java:398)
	at 
org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnection.connect(HttpsURLConnection.java:146)
	at 
org.apache.harmony.luni.tests.internal.net.www.protocol.https.HttpsURLConnectionTest$ClientConnectionWork.run(HttpsURLConnectionTest.java:1415)

I don't understand why jvm affect the test result.

-- 
Best Regards,
Regis.

Mime
View raw message