JDK-8004925 : java/net/Socks/SocksV4Test.java failing on all platforms
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2012-12-12
  • Updated: 2016-06-23
  • Resolved: 2012-12-13
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.
JDK 6 JDK 7 JDK 8
6u131Fixed 7u21Fixed 8 b69Fixed
Related Reports
Relates :  
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
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.
12-12-2012

failure seen it latest TL repo in JPRT also.
12-12-2012