JDK-8240833 : SSLSocketImpl/ReverseNameLookup.java failed due to "SSLException: Connection reset"
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Affected Version: 15
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris
  • CPU: sparc_64
  • Submitted: 2020-03-10
  • Updated: 2020-03-20
  • Resolved: 2020-03-20
Related Reports
Duplicate :  
Relates :  
Description
The following test failed in the JDK15 CI:

sun/security/ssl/SSLSocketImpl/ReverseNameLookup.java

Here's a snippet from the log file:

#section:main
----------messages:(4/388)----------
command: main ReverseNameLookup 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 ReverseNameLookup SunJSSE does not support dynamic system properties, no way to re-use system properties in samevm/agentvm mode. 
Mode: othervm [/othervm specified]
elapsed time (seconds): 100.067
----------configuration:(0/0)----------
----------System.out:(0/0)----------
----------System.err:(44/3024)----------
javax.net.ssl.SSLException: Connection reset
	at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:127)
	at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:324)
	at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:267)
	at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:262)
	at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:140)
	at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1462)
	at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1370)
	at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:437)
	at java.base/sun.security.ssl.SSLSocketImpl.ensureNegotiated(SSLSocketImpl.java:878)
	at java.base/sun.security.ssl.SSLSocketImpl$AppOutputStream.write(SSLSocketImpl.java:1240)
	at java.base/sun.security.ssl.SSLSocketImpl$AppOutputStream.write(SSLSocketImpl.java:1212)
	at ReverseNameLookup.doClientSide(ReverseNameLookup.java:133)
	at ReverseNameLookup.startClient(ReverseNameLookup.java:260)
	at ReverseNameLookup.<init>(ReverseNameLookup.java:187)
	at ReverseNameLookup.main(ReverseNameLookup.java:173)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:832)
	Suppressed: java.net.SocketException: Broken pipe
		at java.base/sun.nio.ch.NioSocketImpl.implWrite(NioSocketImpl.java:420)
		at java.base/sun.nio.ch.NioSocketImpl.write(NioSocketImpl.java:440)
		at java.base/sun.nio.ch.NioSocketImpl$2.write(NioSocketImpl.java:826)
		at java.base/java.net.Socket$SocketOutputStream.write(Socket.java:1052)
		at java.base/sun.security.ssl.SSLSocketOutputRecord.encodeAlert(SSLSocketOutputRecord.java:82)
		at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:355)
		... 19 more
Caused by: java.net.SocketException: Connection reset
	at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:323)
	at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:350)
	at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:803)
	at java.base/java.net.Socket$SocketInputStream.read(Socket.java:982)
	at java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:457)
	at java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:165)
	at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:109)
	... 16 more

JavaTest Message: Test threw exception: javax.net.ssl.SSLException: Connection reset
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: javax.net.ssl.SSLException: Connection reset
----------rerun:(37/4179)*----------
Comments
Closing "connection reset" issues as duplicate of JDK-8241372 as most likely root cause is same for all.
20-03-2020

The test is still use the old template, which use ""127.0.0.1" as the IP address. May worthy an update to get rid of the intermittent failure.
11-03-2020