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

javax/net/ssl/SSLSession/TestEnabledProtocols.java failed with Connection reset

    Details

    • Subcomponent:
    • Resolved In Build:
      b22
    • Verification:
      Verified

      Backports

        Description

        Test name: javax/net/ssl/SSLSession/TestEnabledProtocols.java
        This happened in recent Mach5 job jdk-jdk.7805.

        This is a part of the output:

        ----------System.out:(499/33866)----------
        === Starting new test run ===
        Enabled protocols on the server are: [TLSv1]
        Enabled protocols on the client are: [TLSv1]
        Protocol name after getSession is TLSv1
        ** Success **
        === Starting new test run ===
        Enabled protocols on the server are: [TLSv1]
        Enabled protocols on the client are: [TLSv1, SSLv2Hello]
        Server SSLHandshakeException:
        Client got expected SSLHandshakeException:
        javax.net.ssl.SSLHandshakeException: SSLv2Hello is not enabled
        at java.base/sun.security.ssl.SSLSocketInputRecord.handleUnknownRecord(SSLSocketInputRecord.java:335)
        at java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:173)
        at java.base/sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1031)
        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.startHandshake(SSLSocketImpl.java:1429)
        at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)
        at TestEnabledProtocols$startServer.run(TestEnabledProtocols.java:213)
        javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
        at java.base/sun.security.ssl.Alerts.getSSLException(Alerts.java:198)
        at java.base/sun.security.ssl.Alerts.getSSLException(Alerts.java:159)
        at java.base/sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2046)
        at java.base/sun.security.ssl.SSLSocketImpl.processInputRecord(SSLSocketImpl.java:1207)
        at java.base/sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1074)
        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.startHandshake(SSLSocketImpl.java:1429)
        at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)
        at TestEnabledProtocols$startClient.run(TestEnabledProtocols.java:295)
        ** Success **
        === Starting new test run ===
        Enabled protocols on the server are: [TLSv1]
        Enabled protocols on the client are: [TLSv1, SSLv3]
        Protocol name after getSession is TLSv1
        ** Success **
        === Starting new test run ===
        Enabled protocols on the server are: [TLSv1]
        Enabled protocols on the client are: [SSLv3, SSLv2Hello]
        Server SSLHandshakeException:
        javax.net.ssl.SSLHandshakeException: SSLv2Hello is not enabled
        at java.base/sun.security.ssl.SSLSocketInputRecord.handleUnknownRecord(SSLSocketInputRecord.java:335)
        at java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:173)
        at java.base/sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1031)
        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.startHandshake(SSLSocketImpl.java:1429)
        at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)
        at TestEnabledProtocols$startServer.run(TestEnabledProtocols.java:213)
        Client got expected SSLHandshakeException:
        javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
        at java.base/sun.security.ssl.Alerts.getSSLException(Alerts.java:198)
        at java.base/sun.security.ssl.Alerts.getSSLException(Alerts.java:159)
        at java.base/sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2046)
        at java.base/sun.security.ssl.SSLSocketImpl.processInputRecord(SSLSocketImpl.java:1207)
        at java.base/sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1074)
        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.startHandshake(SSLSocketImpl.java:1429)
        at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)
        at TestEnabledProtocols$startClient.run(TestEnabledProtocols.java:295)

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jjiang John Jiang
                  Reporter:
                  wenjyang Crystal Yang (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: