JDK-8235136 : javax/net/ssl/templates/SSLSocketSSLEngineTemplate.java failed with Unexpected EOF
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Affected Version: 14
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2019-11-29
  • Updated: 2019-11-29
  • Resolved: 2019-11-29
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.
Other
tbdFixed
Related Reports
Duplicate :  
Description
----------System.out:(375/10459)----------
Testing SSLv3
-------------------------------------
Testing SSLv3 for direct buffers ...
================
The format of the SSLEngineResult is: 
	"getStatus() / getHandshakeStatus()" +
	"bytesConsumed() / bytesProduced()"

server unwrap: OK/NEED_TASK, 165/0 bytes
	running delegated task...
	new HandshakeStatus: NEED_WRAP
----
server wrap: OK/NEED_UNWRAP, 0/717 bytes
================
server unwrap: OK/NEED_TASK, 42/0 bytes
	running delegated task...
	new HandshakeStatus: NEED_UNWRAP
----
server wrap: OK/NEED_UNWRAP, 0/0 bytes
================
server unwrap: OK/NEED_UNWRAP, 6/0 bytes
----
server wrap: OK/NEED_UNWRAP, 0/0 bytes
================
server unwrap: OK/NEED_WRAP, 53/0 bytes
----
server wrap: OK/NEED_WRAP, 0/727 bytes
================
server unwrap: BUFFER_UNDERFLOW/NEED_WRAP, 0/0 bytes
----
server wrap: OK/NEED_WRAP, 0/6 bytes
================
server unwrap: BUFFER_UNDERFLOW/NEED_WRAP, 0/0 bytes
----
server wrap: OK/FINISHED, 0/53 bytes
	...ready for application data
================
server unwrap: OK/NOT_HANDSHAKING, 85/49 bytes
----
server wrap: OK/NOT_HANDSHAKING, 30/69 bytes
================
server unwrap: BUFFER_UNDERFLOW/NEED_WRAP, 0/0 bytes
----
server wrap: CLOSED/NOT_HANDSHAKING, 0/37 bytes
================
server unwrap: CLOSED/NOT_HANDSHAKING, 37/0 bytes
----
server wrap: CLOSED/NOT_HANDSHAKING, 0/0 bytes
---------------------------------------
Testing SSLv3 for indirect buffers ...
================
server unwrap: OK/NEED_TASK, 165/0 bytes
	running delegated task...
	new HandshakeStatus: NEED_WRAP
----
server wrap: OK/NEED_UNWRAP, 0/716 bytes
================
server unwrap: OK/NEED_TASK, 42/0 bytes
	running delegated task...
	new HandshakeStatus: NEED_UNWRAP
----
server wrap: OK/NEED_UNWRAP, 0/0 bytes
================
server unwrap: OK/NEED_UNWRAP, 6/0 bytes
----
server wrap: OK/NEED_UNWRAP, 0/0 bytes
================
server unwrap: OK/NEED_WRAP, 53/0 bytes
----
server wrap: OK/NEED_WRAP, 0/727 bytes
================
server unwrap: BUFFER_UNDERFLOW/NEED_WRAP, 0/0 bytes
----
server wrap: OK/NEED_WRAP, 0/6 bytes
================
server unwrap: BUFFER_UNDERFLOW/NEED_WRAP, 0/0 bytes
----
server wrap: OK/FINISHED, 0/53 bytes
	...ready for application data
================
server unwrap: OK/NOT_HANDSHAKING, 85/49 bytes
----
server wrap: OK/NOT_HANDSHAKING, 30/69 bytes
================
server unwrap: CLOSED/NEED_WRAP, 37/0 bytes
----
server wrap: CLOSED/NOT_HANDSHAKING, 0/37 bytes
Testing TLSv1
-------------------------------------
Testing TLSv1 for direct buffers ...
================
server unwrap: OK/NEED_TASK, 165/0 bytes
	running delegated task...
	new HandshakeStatus: NEED_WRAP
----
server wrap: OK/NEED_UNWRAP, 0/717 bytes
================
server unwrap: OK/NEED_TASK, 42/0 bytes
	running delegated task...
	new HandshakeStatus: NEED_UNWRAP
----
server wrap: OK/NEED_UNWRAP, 0/0 bytes
================
server unwrap: OK/NEED_UNWRAP, 6/0 bytes
----
server wrap: OK/NEED_UNWRAP, 0/0 bytes
================
server unwrap: OK/NEED_WRAP, 53/0 bytes
----
server wrap: OK/NEED_WRAP, 0/727 bytes
================
server unwrap: BUFFER_UNDERFLOW/NEED_WRAP, 0/0 bytes
----
server wrap: OK/NEED_WRAP, 0/6 bytes
================
server unwrap: BUFFER_UNDERFLOW/NEED_WRAP, 0/0 bytes
----
server wrap: OK/FINISHED, 0/53 bytes
	...ready for application data
================
server unwrap: OK/NOT_HANDSHAKING, 85/49 bytes
----
server wrap: OK/NOT_HANDSHAKING, 30/69 bytes
================
server unwrap: BUFFER_UNDERFLOW/NEED_WRAP, 0/0 bytes
----
server wrap: CLOSED/NOT_HANDSHAKING, 0/37 bytes
================
server unwrap: CLOSED/NOT_HANDSHAKING, 37/0 bytes
----
server wrap: CLOSED/NOT_HANDSHAKING, 0/0 bytes
---------------------------------------
Testing TLSv1 for indirect buffers ...
================
server unwrap: OK/NEED_TASK, 165/0 bytes
	running delegated task...
	new HandshakeStatus: NEED_WRAP
----
server wrap: OK/NEED_UNWRAP, 0/716 bytes
================
server unwrap: OK/NEED_TASK, 42/0 bytes
	running delegated task...
	new HandshakeStatus: NEED_UNWRAP
----
server wrap: OK/NEED_UNWRAP, 0/0 bytes
================
server unwrap: OK/NEED_UNWRAP, 6/0 bytes
----
server wrap: OK/NEED_UNWRAP, 0/0 bytes
================
server unwrap: OK/NEED_WRAP, 53/0 bytes
----
server wrap: OK/NEED_WRAP, 0/727 bytes
================
server unwrap: BUFFER_UNDERFLOW/NEED_WRAP, 0/0 bytes
----
server wrap: OK/NEED_WRAP, 0/6 bytes
================
server unwrap: BUFFER_UNDERFLOW/NEED_WRAP, 0/0 bytes
----
server wrap: OK/FINISHED, 0/53 bytes
	...ready for application data
================
server unwrap: OK/NOT_HANDSHAKING, 85/49 bytes
----
server wrap: OK/NOT_HANDSHAKING, 30/69 bytes
================
server unwrap: CLOSED/NEED_WRAP, 37/0 bytes
----
server wrap: CLOSED/NOT_HANDSHAKING, 0/37 bytes
Testing TLSv1.1
-------------------------------------
Testing TLSv1.1 for direct buffers ...
================
server unwrap: OK/NEED_TASK, 167/0 bytes
	running delegated task...
	new HandshakeStatus: NEED_WRAP
----
server wrap: OK/NEED_UNWRAP, 0/717 bytes
================
server unwrap: OK/NEED_TASK, 42/0 bytes
	running delegated task...
	new HandshakeStatus: NEED_UNWRAP
----
server wrap: OK/NEED_UNWRAP, 0/0 bytes
================
server unwrap: OK/NEED_UNWRAP, 6/0 bytes
----
server wrap: OK/NEED_UNWRAP, 0/0 bytes
================
server unwrap: OK/NEED_WRAP, 69/0 bytes
----
server wrap: OK/NEED_WRAP, 0/727 bytes
================
server unwrap: BUFFER_UNDERFLOW/NEED_WRAP, 0/0 bytes
----
server wrap: OK/NEED_WRAP, 0/6 bytes
================
server unwrap: BUFFER_UNDERFLOW/NEED_WRAP, 0/0 bytes
----
server wrap: OK/FINISHED, 0/69 bytes
	...ready for application data
================
server unwrap: OK/NOT_HANDSHAKING, 101/49 bytes
----
server wrap: OK/NOT_HANDSHAKING, 30/85 bytes
================
server unwrap: BUFFER_UNDERFLOW/NEED_WRAP, 0/0 bytes
----
server wrap: CLOSED/NOT_HANDSHAKING, 0/53 bytes
================
server unwrap: CLOSED/NOT_HANDSHAKING, 53/0 bytes
----
server wrap: CLOSED/NOT_HANDSHAKING, 0/0 bytes
---------------------------------------
Testing TLSv1.1 for indirect buffers ...
================
server unwrap: OK/NEED_TASK, 167/0 bytes
	running delegated task...
	new HandshakeStatus: NEED_WRAP
----
server wrap: OK/NEED_UNWRAP, 0/717 bytes
================
server unwrap: OK/NEED_TASK, 42/0 bytes
	running delegated task...
	new HandshakeStatus: NEED_UNWRAP
----
server wrap: OK/NEED_UNWRAP, 0/0 bytes
================
server unwrap: OK/NEED_UNWRAP, 6/0 bytes
----
server wrap: OK/NEED_UNWRAP, 0/0 bytes
================
server unwrap: OK/NEED_WRAP, 69/0 bytes
----
server wrap: OK/NEED_WRAP, 0/727 bytes
================
server unwrap: BUFFER_UNDERFLOW/NEED_WRAP, 0/0 bytes
----
server wrap: OK/NEED_WRAP, 0/6 bytes
================
server unwrap: BUFFER_UNDERFLOW/NEED_WRAP, 0/0 bytes
----
server wrap: OK/FINISHED, 0/69 bytes
	...ready for application data
================
server unwrap: OK/NOT_HANDSHAKING, 101/49 bytes
----
server wrap: OK/NOT_HANDSHAKING, 30/85 bytes
================
server unwrap: CLOSED/NEED_WRAP, 53/0 bytes
----
server wrap: CLOSED/NOT_HANDSHAKING, 0/53 bytes
Testing TLSv1.2
-------------------------------------
Testing TLSv1.2 for direct buffers ...
================
server unwrap: OK/NEED_TASK, 323/0 bytes
	running delegated task...
	new HandshakeStatus: NEED_WRAP
----
server wrap: OK/NEED_UNWRAP, 0/720 bytes
================
server unwrap: OK/NEED_TASK, 42/0 bytes
	running delegated task...
	new HandshakeStatus: NEED_UNWRAP
----
server wrap: OK/NEED_UNWRAP, 0/0 bytes
================
server unwrap: OK/NEED_UNWRAP, 6/0 bytes
----
server wrap: OK/NEED_UNWRAP, 0/0 bytes
================
server unwrap: OK/NEED_WRAP, 45/0 bytes
----
server wrap: OK/NEED_WRAP, 0/767 bytes
================
server unwrap: BUFFER_UNDERFLOW/NEED_WRAP, 0/0 bytes
----
server wrap: OK/NEED_WRAP, 0/6 bytes
================
server unwrap: BUFFER_UNDERFLOW/NEED_WRAP, 0/0 bytes
----
server wrap: OK/FINISHED, 0/45 bytes
	...ready for application data
================
server unwrap: OK/NOT_HANDSHAKING, 78/49 bytes
----
server wrap: OK/NOT_HANDSHAKING, 30/59 bytes
================
server unwrap: BUFFER_UNDERFLOW/NEED_WRAP, 0/0 bytes
----
server wrap: CLOSED/NOT_HANDSHAKING, 0/31 bytes
================
server unwrap: CLOSED/NOT_HANDSHAKING, 31/0 bytes
----
server wrap: CLOSED/NOT_HANDSHAKING, 0/0 bytes
---------------------------------------
Testing TLSv1.2 for indirect buffers ...
================
server unwrap: OK/NEED_TASK, 323/0 bytes
	running delegated task...
	new HandshakeStatus: NEED_WRAP
----
server wrap: OK/NEED_UNWRAP, 0/719 bytes
================
server unwrap: OK/NEED_TASK, 42/0 bytes
	running delegated task...
	new HandshakeStatus: NEED_UNWRAP
----
server wrap: OK/NEED_UNWRAP, 0/0 bytes
================
server unwrap: OK/NEED_UNWRAP, 6/0 bytes
----
server wrap: OK/NEED_UNWRAP, 0/0 bytes
================
server unwrap: OK/NEED_WRAP, 45/0 bytes
----
server wrap: OK/NEED_WRAP, 0/767 bytes
================
server unwrap: BUFFER_UNDERFLOW/NEED_WRAP, 0/0 bytes
----
server wrap: OK/NEED_WRAP, 0/6 bytes
================
server unwrap: BUFFER_UNDERFLOW/NEED_WRAP, 0/0 bytes
----
server wrap: OK/FINISHED, 0/45 bytes
	...ready for application data
================
server unwrap: OK/NOT_HANDSHAKING, 78/49 bytes
----
server wrap: OK/NOT_HANDSHAKING, 30/59 bytes
================
server unwrap: CLOSED/NEED_WRAP, 31/0 bytes
----
server wrap: CLOSED/NOT_HANDSHAKING, 0/31 bytes
Testing TLSv1.3
-------------------------------------
Testing TLSv1.3 for direct buffers ...
================
server unwrap: OK/NEED_TASK, 411/0 bytes
	running delegated task...
	new HandshakeStatus: NEED_WRAP
----
server wrap: OK/NEED_WRAP, 0/127 bytes
================
server unwrap: OK/NEED_WRAP, 0/0 bytes
----
server wrap: OK/NEED_WRAP, 0/6 bytes
================
server unwrap: OK/NEED_WRAP, 0/0 bytes
----
server wrap: OK/NEED_UNWRAP, 0/709 bytes
================
server unwrap: OK/NEED_UNWRAP, 6/0 bytes
----
server wrap: OK/NEED_UNWRAP, 0/0 bytes
================
server unwrap: OK/NEED_WRAP, 90/0 bytes
----
server wrap: OK/FINISHED, 0/796 bytes
	...ready for application data
================
server unwrap: OK/NOT_HANDSHAKING, 87/49 bytes
----
server wrap: OK/NOT_HANDSHAKING, 30/68 bytes
================
server unwrap: BUFFER_UNDERFLOW/NEED_WRAP, 0/0 bytes
----
server wrap: CLOSED/NOT_HANDSHAKING, 0/40 bytes
================
server unwrap: OK/NOT_HANDSHAKING, 40/0 bytes
----
server wrap: CLOSED/NOT_HANDSHAKING, 0/0 bytes
================
----------System.err:(14/866)----------
java.lang.Exception: Unexpected EOF
	at SSLSocketSSLEngineTemplate.runTest(SSLSocketSSLEngineTemplate.java:263)
	at SSLSocketSSLEngineTemplate.main(SSLSocketSSLEngineTemplate.java:159)
	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)