Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
SLES 9.0/ia32
-
Moderate
Description
The test fails from time to time.
$ while true; do ../drlvm/build/lnx_ia32_gcc_debug/deploy/jre/bin/java -cp modules/luni/bin/test:depends/jars/junit_3.8.2/junit.jar junit.textui.TestRunner org.apache.harmony.tests.internal.net.www.protocol.http.HttpURLConnectionTest; done 2>&1 | tee http.log
Here is output:
------------------------------------------
There was 1 error:
1) testUsingProxy(org.apache.harmony.tests.internal.net.www.protocol.http.HttpURLConnectionTest)java.net.ConnectException: localhost/127.0.0.1:42670 - Connection refused
at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:224)
at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:496)
at java.net.Socket.connect(Socket.java:978)
at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getHTTPConnection(HttpURLConnection.java:630)
at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:581)
at org.apache.harmony.tests.internal.net.www.protocol.http.HttpURLConnectionTest.testUsingProxy(HttpURLConnectionTest.java:203)
at java.lang.reflect.VMReflection.invokeMethod(Native Method)
------------------------------------------
There were 2 errors:
1) testUsingProxy(org.apache.harmony.tests.internal.net.www.protocol.http.HttpURLConnectionTest)java.net.ConnectException: localhost/127.0.0.1:42703 - Connection refused
at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:224)
at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:496)
at java.net.Socket.connect(Socket.java:978)
at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getHTTPConnection(HttpURLConnection.java:630)
at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:581)
at org.apache.harmony.tests.internal.net.www.protocol.http.HttpURLConnectionTest.testUsingProxy(HttpURLConnectionTest.java:203)
at java.lang.reflect.VMReflection.invokeMethod(Native Method)
2) testUsingProxySelector(org.apache.harmony.tests.internal.net.www.protocol.http.HttpURLConnectionTest)java.net.ConnectException: localhost/127.0.0.1:42705 - Connection refused
at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:224)
at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:496)
at java.net.Socket.connect(Socket.java:978)
at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getHTTPConnection(HttpURLConnection.java:626)
at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:608)
at org.apache.harmony.tests.internal.net.www.protocol.http.HttpURLConnectionTest.testUsingProxySelector(HttpURLConnectionTest.java:245)
at java.lang.reflect.VMReflection.invokeMethod(Native Method)
------------------------------------------
There were 2 errors:
1) testGetOutputStream(org.apache.harmony.tests.internal.net.www.protocol.http.HttpURLConnectionTest)java.net.ConnectException: localhost/127.0.0.1:43262 - Connection refused
at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:224)
at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:496)
at java.net.Socket.connect(Socket.java:978)
at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getHTTPConnection(HttpURLConnection.java:626)
at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:608)
at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:926)
at org.apache.harmony.tests.internal.net.www.protocol.http.HttpURLConnectionTest.testGetOutputStream(HttpURLConnectionTest.java:172)
at java.lang.reflect.VMReflection.invokeMethod(Native Method)
2) testUsingProxySelector(org.apache.harmony.tests.internal.net.www.protocol.http.HttpURLConnectionTest)java.net.ConnectException: localhost/127.0.0.1:43267 - Connection refused
at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:224)
at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:496)
at java.net.Socket.connect(Socket.java:978)
at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getHTTPConnection(HttpURLConnection.java:626)
at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:608)
at org.apache.harmony.tests.internal.net.www.protocol.http.HttpURLConnectionTest.testUsingProxySelector(HttpURLConnectionTest.java:245)
at java.lang.reflect.VMReflection.invokeMethod(Native Method)
------------------------------------------
There were 2 errors:
1) testGetOutputStream(org.apache.harmony.tests.internal.net.www.protocol.http.HttpURLConnectionTest)java.net.ConnectException: localhost/127.0.0.1:43423 - Connection refused
at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:224)
at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:496)
at java.net.Socket.connect(Socket.java:978)
at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getHTTPConnection(HttpURLConnection.java:626)
at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:608)
at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:926)
at org.apache.harmony.tests.internal.net.www.protocol.http.HttpURLConnectionTest.testGetOutputStream(HttpURLConnectionTest.java:172)
at java.lang.reflect.VMReflection.invokeMethod(Native Method)
2) testUsingProxy(org.apache.harmony.tests.internal.net.www.protocol.http.HttpURLConnectionTest)java.net.ConnectException: localhost/127.0.0.1:43426 - Connection refused
at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:224)
at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:496)
at java.net.Socket.connect(Socket.java:978)
at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getHTTPConnection(HttpURLConnection.java:630)
at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:581)
at org.apache.harmony.tests.internal.net.www.protocol.http.HttpURLConnectionTest.testUsingProxy(HttpURLConnectionTest.java:203)
at java.lang.reflect.VMReflection.invokeMethod(Native Method)
Attachments
Attachments
Issue Links
- incorporates
-
HARMONY-2353 [classlib][luni] org.apache.harmony.tests.internal.net.www.protocol.http.HttpURLConnectionTest.testGetOutputStream() intermittently fails
- Closed
- is duplicated by
-
HARMONY-2082 [luni] HttpURLConnectionTest fails on proxy cases
- Closed
- is related to
-
HARMONY-2075 [classlib][luni]HttpURLConnection.getInputStream fails with too many redirections
- Resolved