JDK-7162385 : TEST_BUG: sun/net/www/protocol/jar/B4957695.java failing again
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 8
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-04-18
  • Updated: 2014-02-10
  • Resolved: 2012-07-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other Other JDK 6 JDK 7 JDK 8
5.0u65Fixed 5.0u71Fixed 6u75Fixed 7u21Fixed 8 b38Fixed
Related Reports
Relates :  
Relates :  
Description
This test was recently fixed via:

http://hg.openjdk.java.net/jdk8/tl/jdk/rev/31c15e2f51ba

Unfortunately it's now failing on all platforms again, here's a sample:



--------------------------------------------------
Timeout signalled after 60 seconds
Agent[0]: Killing process
TEST: sun/net/www/protocol/jar/B4957695.java
JDK under test: (/tmp/jprt/P1/051553.jcg-int/testproduct/linux_i586_2.6-product)
java version "1.8.0-internal"
Java(TM) SE Runtime Environment (build 1.8.0-internal-201204180515.jcg-int.tl-pit-2d-awt-b00)
Java HotSpot(TM) Server VM (build 24.0-b07, mixed mode)

ACTION: build -- Passed. Build successful
REASON: Named class compiled on demand
TIME:   0.074 seconds
messages:
command: build B4957695
reason: Named class compiled on demand
elapsed time (seconds): 0.074

ACTION: compile -- Passed. Compilation successful
REASON: .class file out of date or does not exist
TIME:   0.074 seconds
messages:
command: compile /tmp/jprt/P1/051553.jcg-int/s/jdk/test/sun/net/www/protocol/jar/B4957695.java
reason: .class file out of date or does not exist
elapsed time (seconds): 0.074

ACTION: main -- Error. Agent error: java.lang.InterruptedException; check console log for any additional details
REASON: Assumed action based on file name: run main B4957695 
TIME:   600.042 seconds
messages:
command: main B4957695
reason: Assumed action based on file name: run main B4957695 
Timeout signalled after 540 seconds
elapsed time (seconds): 600.042

TEST RESULT: Error. Agent error: java.lang.InterruptedException; check console log for any additional details
--------------------------------------------------

Comments
EVALUATION Changeset: bc51d0569ccd Author: khazra Date: 2012-04-19 13:26 -0700 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/bc51d0569ccd 7162385: TEST_BUG: sun/net/www/protocol/jar/B4957695.java failing again Summary: Enable finding "foo1.jar" Reviewed-by: chegar ! test/sun/net/www/protocol/jar/B4957695.java
19-04-2012

EVALUATION The test is failing because it cannot find foo1.jar. It then gets into a bad state and hangs until the test harness interrupts it. java.io.FileNotFoundException: foo1.jar (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:128) at java.io.FileInputStream.<init>(FileInputStream.java:87) at B4957695$Server.run(B4957695.java:66) result: Error. Program `/java/re/jdk/8/latest/binaries/solaris-i586/bin/java' interrupted! (timed out ?) But the test code opening foo1.jar hasn't changed? Guess what, this test previously had a @build tag and no @run tag, so was only every compiling. It looks like it never ran before! The solution is for the test to find foo1.jar in the test.src. FileInputStream fin = new FileInputStream( new File(System.getProperty("test.src", "."), "foo1.jar"));
18-04-2012