-
Bug
-
Resolution: Fixed
-
P3
-
8
-
b56
-
generic
-
generic
-
Verified
Most Linux distributions configure /etc/hosts so that the host name resolves to the loopback address. This test appears to handle this case by exiting but the System.exit is causing jtreg to fail the test. The following is an example from the JPRT east queue.
--------------------------------------------------
TEST: sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/B6216082.java
JDK under test: (/tmp/jprt/P1/145053.scoffey/testproduct/linux_i586_2.6-product)
java version "1.8.0-internal"
Java(TM) SE Runtime Environment (build 1.8.0-internal-201208311450.scoffey.tl-b00)
Java HotSpot(TM) Client VM (build 24.0-b21, mixed mode, sharing)
ACTION: build -- Passed. Build successful
REASON: User specified action: run build HttpCallback HttpServer ClosedChannelList HttpTransaction TunnelProxy
TIME: 0.097 seconds
messages:
command: build HttpCallback HttpServer ClosedChannelList HttpTransaction TunnelProxy
reason: User specified action: run build HttpCallback HttpServer ClosedChannelList HttpTransaction TunnelProxy
elapsed time (seconds): 0.097
ACTION: compile -- Passed. Compilation successful
REASON: .class file out of date or does not exist
TIME: 0.096 seconds
messages:
command: compile /tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpCallback.java /tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpServer.java /tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/ClosedChannelList.java /tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpTransaction.java /tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/TunnelProxy.java
reason: .class file out of date or does not exist
elapsed time (seconds): 0.096
direct:
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/TunnelProxy.java:32: warning: MessageHeader is internal proprietary API and may be removed in a future release
import sun.net.www.MessageHeader;
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/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
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpTransaction.java:28: warning: MessageHeader is internal proprietary API and may be removed in a future release
import sun.net.www.MessageHeader;
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpTransaction.java:41: warning: MessageHeader is internal proprietary API and may be removed in a future release
MessageHeader reqheaders, reqtrailers;
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpTransaction.java:41: warning: MessageHeader is internal proprietary API and may be removed in a future release
MessageHeader reqheaders, reqtrailers;
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpTransaction.java:44: warning: MessageHeader is internal proprietary API and may be removed in a future release
MessageHeader rspheaders, rsptrailers;
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpTransaction.java:44: warning: MessageHeader is internal proprietary API and may be removed in a future release
MessageHeader rspheaders, rsptrailers;
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpTransaction.java:50: warning: MessageHeader is internal proprietary API and may be removed in a future release
URI requesturi, MessageHeader headers,
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpTransaction.java:51: warning: MessageHeader is internal proprietary API and may be removed in a future release
String body, MessageHeader trailers, SocketChannel ch) {
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpTransaction.java:129: warning: MessageHeader is internal proprietary API and may be removed in a future release
rspheaders = new MessageHeader ();
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpTransaction.java:141: warning: MessageHeader is internal proprietary API and may be removed in a future release
rspheaders = new MessageHeader ();
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpTransaction.java:153: warning: MessageHeader is internal proprietary API and may be removed in a future release
rsptrailers = new MessageHeader ();
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpServer.java:440: warning: MessageHeader is internal proprietary API and may be removed in a future release
MessageHeader mhead = new MessageHeader (is);
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpServer.java:440: warning: MessageHeader is internal proprietary API and may be removed in a future release
MessageHeader mhead = new MessageHeader (is);
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/TunnelProxy.java:236: warning: MessageHeader is internal proprietary API and may be removed in a future release
MessageHeader mhead = new MessageHeader (is);
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/TunnelProxy.java:236: 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.
16 warnings
ACTION: build -- Passed. Build successful
REASON: Named class compiled on demand
TIME: 0.027 seconds
messages:
command: build B6216082
reason: Named class compiled on demand
elapsed time (seconds): 0.027
ACTION: compile -- Passed. Compilation successful
REASON: .class file out of date or does not exist
TIME: 0.027 seconds
messages:
command: compile /tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/B6216082.java
reason: .class file out of date or does not exist
elapsed time (seconds): 0.027
ACTION: main -- Failed. Unexpected exit from test [exit code: 0]
REASON: User specified action: run main/othervm B6216082 SunJSSE does not support dynamic system properties, no way to re-use system properties in samevm/agentvm mode.
TIME: 0.174 seconds
messages:
command: main B6216082 SunJSSE does not support dynamic system properties, no way to re-use system properties in samevm/agentvm mode.
reason: User specified action: run main/othervm B6216082 SunJSSE does not support dynamic system properties, no way to re-use system properties in samevm/agentvm mode.
elapsed time (seconds): 0.174
STDOUT:
The test needs at least one non-loopback address to run. Quit now.
STDERR:
TEST RESULT: Failed. Unexpected exit from test [exit code: 0]
--------------------------------------------------
--------------------------------------------------
TEST: sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/B6216082.java
JDK under test: (/tmp/jprt/P1/145053.scoffey/testproduct/linux_i586_2.6-product)
java version "1.8.0-internal"
Java(TM) SE Runtime Environment (build 1.8.0-internal-201208311450.scoffey.tl-b00)
Java HotSpot(TM) Client VM (build 24.0-b21, mixed mode, sharing)
ACTION: build -- Passed. Build successful
REASON: User specified action: run build HttpCallback HttpServer ClosedChannelList HttpTransaction TunnelProxy
TIME: 0.097 seconds
messages:
command: build HttpCallback HttpServer ClosedChannelList HttpTransaction TunnelProxy
reason: User specified action: run build HttpCallback HttpServer ClosedChannelList HttpTransaction TunnelProxy
elapsed time (seconds): 0.097
ACTION: compile -- Passed. Compilation successful
REASON: .class file out of date or does not exist
TIME: 0.096 seconds
messages:
command: compile /tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpCallback.java /tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpServer.java /tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/ClosedChannelList.java /tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpTransaction.java /tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/TunnelProxy.java
reason: .class file out of date or does not exist
elapsed time (seconds): 0.096
direct:
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/TunnelProxy.java:32: warning: MessageHeader is internal proprietary API and may be removed in a future release
import sun.net.www.MessageHeader;
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/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
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpTransaction.java:28: warning: MessageHeader is internal proprietary API and may be removed in a future release
import sun.net.www.MessageHeader;
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpTransaction.java:41: warning: MessageHeader is internal proprietary API and may be removed in a future release
MessageHeader reqheaders, reqtrailers;
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpTransaction.java:41: warning: MessageHeader is internal proprietary API and may be removed in a future release
MessageHeader reqheaders, reqtrailers;
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpTransaction.java:44: warning: MessageHeader is internal proprietary API and may be removed in a future release
MessageHeader rspheaders, rsptrailers;
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpTransaction.java:44: warning: MessageHeader is internal proprietary API and may be removed in a future release
MessageHeader rspheaders, rsptrailers;
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpTransaction.java:50: warning: MessageHeader is internal proprietary API and may be removed in a future release
URI requesturi, MessageHeader headers,
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpTransaction.java:51: warning: MessageHeader is internal proprietary API and may be removed in a future release
String body, MessageHeader trailers, SocketChannel ch) {
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpTransaction.java:129: warning: MessageHeader is internal proprietary API and may be removed in a future release
rspheaders = new MessageHeader ();
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpTransaction.java:141: warning: MessageHeader is internal proprietary API and may be removed in a future release
rspheaders = new MessageHeader ();
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpTransaction.java:153: warning: MessageHeader is internal proprietary API and may be removed in a future release
rsptrailers = new MessageHeader ();
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpServer.java:440: warning: MessageHeader is internal proprietary API and may be removed in a future release
MessageHeader mhead = new MessageHeader (is);
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/../../../httpstest/HttpServer.java:440: warning: MessageHeader is internal proprietary API and may be removed in a future release
MessageHeader mhead = new MessageHeader (is);
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/TunnelProxy.java:236: warning: MessageHeader is internal proprietary API and may be removed in a future release
MessageHeader mhead = new MessageHeader (is);
^
/tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/TunnelProxy.java:236: 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.
16 warnings
ACTION: build -- Passed. Build successful
REASON: Named class compiled on demand
TIME: 0.027 seconds
messages:
command: build B6216082
reason: Named class compiled on demand
elapsed time (seconds): 0.027
ACTION: compile -- Passed. Compilation successful
REASON: .class file out of date or does not exist
TIME: 0.027 seconds
messages:
command: compile /tmp/jprt/P1/145053.scoffey/s/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/B6216082.java
reason: .class file out of date or does not exist
elapsed time (seconds): 0.027
ACTION: main -- Failed. Unexpected exit from test [exit code: 0]
REASON: User specified action: run main/othervm B6216082 SunJSSE does not support dynamic system properties, no way to re-use system properties in samevm/agentvm mode.
TIME: 0.174 seconds
messages:
command: main B6216082 SunJSSE does not support dynamic system properties, no way to re-use system properties in samevm/agentvm mode.
reason: User specified action: run main/othervm B6216082 SunJSSE does not support dynamic system properties, no way to re-use system properties in samevm/agentvm mode.
elapsed time (seconds): 0.174
STDOUT:
The test needs at least one non-loopback address to run. Quit now.
STDERR:
TEST RESULT: Failed. Unexpected exit from test [exit code: 0]
--------------------------------------------------