-
Bug
-
Resolution: Fixed
-
P3
-
1.4.1
-
mantis
-
x86
-
linux
-
Verified
Name: aaR10208 Date: 08/21/2002
Filed By : J2SE-SQA [###@###.###
JDK/JRE : jdk1.4.1-rc-b19, b18
Testbase : Hopper-regression
Platfor[s] : RH Linux 7.2
Failing Test : sun/net/www/http/KeepAliveStream/KeepAliveStreamCloseWithWrongContentLength.java
Here is a part of the test source code
(file: sun/net/www/http/KeepAliveStream/KeepAliveStreamCloseWithWrongContentLength.java)
=====
HttpURLConnection urlc = (HttpURLConnection)url.openConnection ();
InputStream is = urlc.getInputStream ();
int c = 0;
while (c != -1) {
try {
! c=is.read();
! } catch (IOException ioe) {c = 0;}
}
=====
On the Linux platform "java.net.SocketException: Connection reset" is thrown from inside InputStream.read()
after the server closes connection.
SocketException is subclass of the IOException, so the test falls into infinity loop.
Test source location:
=====================
sun/net/www/http/KeepAliveStream/KeepAliveStreamCloseWithWrongContentLength.java
jtr file location:
==================
/net/jtgb4u4c.eng/export/sail15/results/hopper/b18/regtest/linux/redhat7.2_gnome_linux-12/workDir/test/sun/net/www/http/KeepAliveStream/KeepAliveStreamCloseWithWrongContentLength.jtr
How to reproduce:
=================
Compile and run the test on Linux box.
Please note, that compilation of the test is neccessary step.
If you directly invoke java program on the class files received by the previuos regression test run,
the test could pass because of the wrong XServer.class (see also bugid#4734532 for more details).
Test output:
============
[...]
----------System.err:(0/0)----------
result: Failed. Execution failed: Program `/net/linux-15/export/home/java/jdk1.4.1/linux/bin/java' interrupted! (timed out?)
test result: Failed. Execution failed: Program `/net/linux-15/export/home/java/jdk1.4.1/linux/bin/java' interrupted! (timed out?)
Specific Machine Info:
======================
Hostname: linux-12
Os: RH Linux 7.2
======================================================================
- relates to
-
JDK-4734532 Duplicate class name in 2 regression tests
-
- Closed
-
-
JDK-4743652 duplicate class names in regression tests
-
- Resolved
-