United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-8004925 java/net/Socks/SocksV4Test.java failing on all platforms
JDK-8004925 : java/net/Socks/SocksV4Test.java failing on all platforms

Details
Type:
Bug
Submit Date:
2012-12-12
Status:
Closed
Updated Date:
2013-12-17
Project Name:
JDK
Resolved Date:
2012-12-13
Component:
core-libs
OS:
Sub-Component:
java.net
CPU:
Priority:
P3
Resolution:
Fixed
Affected Versions:
8
Fixed Versions:

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

Sub Tasks

Description
This test started failing in jdk8/tl in the last day or two. Failing in JPRT and TL nightly.


--------------------------------------------------
TEST: java/net/Socks/SocksV4Test.java
JDK under test: (/opt/jprt/T/P1/103746.albatem/testproduct/solaris_x64_5.10-product)
java version "1.8.0-internal"
Java(TM) SE Runtime Environment (build 1.8.0-internal-201212121037.albatem.beans-b00)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b11, mixed mode)


ACTION: build -- Passed. Build successful
REASON: User specified action: run build SocksServer 
TIME:   0.027 seconds
messages:
command: build SocksServer
reason: User specified action: run build SocksServer 
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 /opt/jprt/T/P1/103746.albatem/s/test/java/net/Socks/SocksServer.java
reason: .class file out of date or does not exist
elapsed time (seconds): 0.027

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

ACTION: compile -- Passed. Compilation successful
REASON: .class file out of date or does not exist
TIME:   0.009 seconds
messages:
command: compile /opt/jprt/T/P1/103746.albatem/s/test/java/net/Socks/SocksV4Test.java
reason: .class file out of date or does not exist
elapsed time (seconds): 0.009

ACTION: main -- Failed. Execution failed: `main' threw exception: java.net.SocketException: Malformed reply from SOCKS server
REASON: User specified action: run main SocksV4Test 
TIME:   1.064 seconds
messages:
command: main SocksV4Test
reason: User specified action: run main SocksV4Test 
elapsed time (seconds): 1.064
STDERR:
java.net.SocketException: Malformed reply from SOCKS server
	at java.net.SocksSocketImpl.readSocksReply(SocksSocketImpl.java:128)
	at java.net.SocksSocketImpl.connectV4(SocksSocketImpl.java:280)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:467)
	at java.net.Socket.connect(Socket.java:578)
	at SocksV4Test.main(SocksV4Test.java:44)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:474)
	at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:706)
	at java.lang.Thread.run(Thread.java:722)

JavaTest Message: Test threw exception: java.net.SocketException
JavaTest Message: shutting down test


TEST RESULT: Failed. Execution failed: `main' threw exception: java.net.SocketException: Malformed reply from SOCKS server
--------------------------------------------------
                                    

Comments
failure seen it latest TL repo in JPRT also.
                                     
2012-12-12
The test tries to connect (through a socks proxy on the localhost) to a domain that does not exist, "doesnt.exist.name". Guess what, someone just registered a domain with that name!

The test should be updated to use a domain name that really doesn't exist.
                                     
2012-12-12
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/775b0050144a
User:  chegar
Date:  2012-12-13 09:58:11 +0000

                                     
2012-12-13
URL:   http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/775b0050144a
User:  lana
Date:  2012-12-18 21:18:52 +0000

                                     
2012-12-18



Hardware and Software, Engineered to Work Together