JDK-8177700 : sun/security/ssl/SocketCreation/SocketCreation.java Test failed with "javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake"
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2017-03-28
  • Updated: 2019-02-11
  • Resolved: 2017-03-28
Related Reports
Duplicate :  
Description
Test:
sun/security/ssl/SocketCreation/SocketCreation.java

Log:
Server: Will create unbound SSL server socket...
Server: Bound SSL server socket to port 36112...
Server: Will accept on SSL server socket...
Client: Will call createSocket(String, int, InetAddress, int)
----------System.err:(26/1784)----------
javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake
	at java.base/sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1058)
	at java.base/sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)
	at java.base/sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1402)
	at java.base/sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:733)
	at java.base/sun.security.ssl.AppOutputStream.write(AppOutputStream.java:67)
	at java.base/sun.security.ssl.AppOutputStream.write(AppOutputStream.java:81)
	at SocketCreation.doClientSide(SocketCreation.java:296)
	at SocketCreation.startClient(SocketCreation.java:508)
	at SocketCreation.<init>(SocketCreation.java:440)
	at SocketCreation.main(SocketCreation.java:413)
	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:547)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
	at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: java.io.EOFException: SSL peer shut down incorrectly
	at java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:156)
	at java.base/sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1031)
	... 15 more

JavaTest Message: Test threw exception: javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake
Comments
JDK-8166531 has tracked this issue
28-03-2017