Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8235136

javax/net/ssl/templates/SSLSocketSSLEngineTemplate.java failed with Unexpected EOF

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 14
    • Fix Version/s: tbd
    • Component/s: security-libs
    • Labels:
      None

      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)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jjiang John Jiang
                Reporter:
                jjiang John Jiang
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: