United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7152856 TEST_BUG: sun/net/www/protocol/jar/B4957695.java failing on Windows
JDK-7152856 : TEST_BUG: sun/net/www/protocol/jar/B4957695.java failing on Windows

Details
Type:
Bug
Submit Date:
2012-03-11
Status:
Closed
Updated Date:
2014-02-10
Project Name:
JDK
Resolved Date:
2012-07-26
Component:
core-libs
OS:
generic
Sub-Component:
java.net
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
8
Fixed Versions:

Related Reports
Backport:
Backport:
Backport:
Backport:
Backport:
Backport:
Backport:
Backport:
Relates:
Relates:

Sub Tasks

Description
This test is missing the @run tag and so is not run as expected. When the @run tag is added then the test passes on all platforms except Windows. The following is a sample output:

--------------------------------------------------
TEST: sun/net/www/protocol/jar/B4957695.java
JDK under test: (C:\jprt\temp\P1\120353~1.ALB\TESTPR~1\WINDOW~1.2-P)
java version "1.8.0-internal"
Java(TM) SE Runtime Environment (build 1.8.0-internal-201203101203.albatem.tl-b00)
Java HotSpot(TM) 64-Bit Server VM (build 24.0-b02, mixed mode)
Timeout signalled after 480 seconds


ACTION: build -- Passed. Build successful
REASON: User specified action: run build HttpCallback HttpServer ClosedChannelList HttpTransaction AbstractCallback 
TIME:   0.109 seconds
messages:
command: build HttpCallback HttpServer ClosedChannelList HttpTransaction AbstractCallback
reason: User specified action: run build HttpCallback HttpServer ClosedChannelList HttpTransaction AbstractCallback 
elapsed time (seconds): 0.109

ACTION: compile -- Passed. Compilation successful
REASON: .class file out of date or does not exist
TIME:   0.109 seconds
messages:
command: compile C:\jprt\temp\P1\120353.albatem\source\jdk\test\sun\net\www\protocol\jar\..\..\httptest\HttpCallback.java C:\jprt\temp\P1\120353.albatem\source\jdk\test\sun\net\www\protocol\jar\..\..\httptest\HttpServer.java C:\jprt\temp\P1\120353.albatem\source\jdk\test\sun\net\www\protocol\jar\..\..\httptest\ClosedChannelList.java C:\jprt\temp\P1\120353.albatem\source\jdk\test\sun\net\www\protocol\jar\..\..\httptest\HttpTransaction.java C:\jprt\temp\P1\120353.albatem\source\jdk\test\sun\net\www\protocol\jar\..\..\httptest\AbstractCallback.java
reason: .class file out of date or does not exist
elapsed time (seconds): 0.109
direct:
C:\jprt\temp\P1\120353.albatem\source\jdk\test\sun\net\www\protocol\jar\..\..\httptest\HttpCallback.java:26: warning: MessageHeader is internal proprietary API and may be removed in a future release
 * requests and generate responses. This could be a general purpose HTTP server
                          ^
C:\jprt\temp\P1\120353.albatem\source\jdk\test\sun\net\www\protocol\jar\..\..\httptest\HttpTransaction.java:28: warning: MessageHeader is internal proprietary API and may be removed in a future release
import sun.net.www.MessageHeader;
                  ^
C:\jprt\temp\P1\120353.albatem\source\jdk\test\sun\net\www\protocol\jar\..\..\httptest\HttpTransaction.java:41: warning: MessageHeader is internal proprietary API and may be removed in a future release
    MessageHeader reqheaders, reqtrailers;
    ^
C:\jprt\temp\P1\120353.albatem\source\jdk\test\sun\net\www\protocol\jar\..\..\httptest\HttpTransaction.java:41: warning: MessageHeader is internal proprietary API and may be removed in a future release
    MessageHeader reqheaders, reqtrailers;
    ^
C:\jprt\temp\P1\120353.albatem\source\jdk\test\sun\net\www\protocol\jar\..\..\httptest\HttpTransaction.java:44: warning: MessageHeader is internal proprietary API and may be removed in a future release
    MessageHeader rspheaders, rsptrailers;
    ^
C:\jprt\temp\P1\120353.albatem\source\jdk\test\sun\net\www\protocol\jar\..\..\httptest\HttpTransaction.java:44: warning: MessageHeader is internal proprietary API and may be removed in a future release
    MessageHeader rspheaders, rsptrailers;
    ^
C:\jprt\temp\P1\120353.albatem\source\jdk\test\sun\net\www\protocol\jar\..\..\httptest\HttpTransaction.java:50: warning: MessageHeader is internal proprietary API and may be removed in a future release
                        URI requesturi, MessageHeader headers,
                                        ^
C:\jprt\temp\P1\120353.albatem\source\jdk\test\sun\net\www\protocol\jar\..\..\httptest\HttpTransaction.java:51: warning: MessageHeader is internal proprietary API and may be removed in a future release
                        String body, MessageHeader trailers, SelectionKey  key) {
                                     ^
C:\jprt\temp\P1\120353.albatem\source\jdk\test\sun\net\www\protocol\jar\..\..\httptest\HttpTransaction.java:129: warning: MessageHeader is internal proprietary API and may be removed in a future release
            rspheaders = new MessageHeader ();
                             ^
C:\jprt\temp\P1\120353.albatem\source\jdk\test\sun\net\www\protocol\jar\..\..\httptest\HttpTransaction.java:141: warning: MessageHeader is internal proprietary API and may be removed in a future release
            rspheaders = new MessageHeader ();
                             ^
C:\jprt\temp\P1\120353.albatem\source\jdk\test\sun\net\www\protocol\jar\..\..\httptest\HttpTransaction.java:153: warning: MessageHeader is internal proprietary API and may be removed in a future release
            rsptrailers = new MessageHeader ();
                              ^
C:\jprt\temp\P1\120353.albatem\source\jdk\test\sun\net\www\protocol\jar\..\..\httptest\HttpServer.java:255: warning: MessageHeader is internal proprietary API and may be removed in a future release
                MessageHeader mhead = new MessageHeader (is);
                ^
C:\jprt\temp\P1\120353.albatem\source\jdk\test\sun\net\www\protocol\jar\..\..\httptest\HttpServer.java:255: warning: MessageHeader is internal proprietary API and may be removed in a future release
                MessageHeader mhead = new MessageHeader (is);
                                          ^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
13 warnings

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

ACTION: compile -- Passed. Compilation successful
REASON: .class file out of date or does not exist
TIME:   0.032 seconds
messages:
command: compile C:\jprt\temp\P1\120353.albatem\source\jdk\test\sun\net\www\protocol\jar\B4957695.java
reason: .class file out of date or does not exist
elapsed time (seconds): 0.032

ACTION: main -- Error. Program `C:\jprt\temp\P1\120353~1.ALB\TESTPR~1\WINDOW~1.2-P\bin\java' interrupted! (timed out?)
REASON: User specified action: run main/othervm B4957695 
TIME:   480.0 seconds
messages:
command: main B4957695
reason: User specified action: run main/othervm B4957695 
elapsed time (seconds): 480.0
STDOUT:
Server: listening on port: 2859
SERVER: new connection. chan[java.nio.channels.SocketChannel[connected local=/127.0.0.1:2859 remote=/127.0.0.1:2862]]
SERVER: connection readable. chan[java.nio.channels.SocketChannel[connected local=/127.0.0.1:2859 remote=/127.0.0.1:2862]]
Request received
content length 513784
SERVER: abortiveCloseChannel chan[java.nio.channels.SocketChannel[connected local=/127.0.0.1:2859 remote=/127.0.0.1:2862]]
STDERR:

TEST RESULT: Error. Program `C:\jprt\temp\P1\120353~1.ALB\TESTPR~1\WINDOW~1.2-P\bin\java' interrupted! (timed out?)
--------------------------------------------------

                                    

Comments
EVALUATION

Changeset: 31c15e2f51ba
Author:    khazra
Date:      2012-04-17 11:59 -0700
URL:       http://hg.openjdk.java.net/jdk8/tl/jdk/rev/31c15e2f51ba

7152856: TEST_BUG: sun/net/www/protocol/jar/B4957695.java failing on Windows
Summary: Remove usage of HTTP Server at test/sun/net/www/httptest
Reviewed-by: chegar, alanb

! test/sun/net/www/protocol/jar/B4957695.java
                                     
2012-04-17



Hardware and Software, Engineered to Work Together