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

javax/net/ssl/SSLSession/TestEnabledProtocols.java failed with "RuntimeException: java.net.SocketException: Connection reset"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: New
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 17
    • Fix Version/s: None
    • Component/s: security-libs
    • Labels:

      Description

      The following test failed in the JDK17 CI:

      javax/net/ssl/SSLSession/TestEnabledProtocols.java

      Here's a snippet from the log file:

      === Starting new test run ===
      Enabled protocols on the server are: [SSLv3]
      Enabled protocols on the client are: [TLSv1, SSLv2Hello]
      Server SSLHandshakeException:
      javax.net.ssl.SSLHandshakeException: SSLv2Hello is not enabled
      at java.base/sun.security.ssl.SSLSocketInputRecord.handleUnknownRecord(SSLSocketInputRecord.java:381)
      at java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:175)
      at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:111)
      at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1495)
      at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1415)
      at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:450)
      at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:421)
      at TestEnabledProtocols.runServerApplication(TestEnabledProtocols.java:79)
      at SSLSocketTemplate.doServerSide(SSLSocketTemplate.java:280)
      at SSLSocketTemplate.startServer(SSLSocketTemplate.java:584)
      at SSLSocketTemplate.bootup(SSLSocketTemplate.java:498)
      at SSLSocketTemplate.run(SSLSocketTemplate.java:83)
      at TestEnabledProtocols.runCase(TestEnabledProtocols.java:293)
      at TestEnabledProtocols.main(TestEnabledProtocols.java:248)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:831)
      Client got UNEXPECTED Exception:
      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:961)
      at java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:478)
      at java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:472)
      at java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:160)
      at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:111)
      at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1495)
      at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1415)
      at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:450)
      at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:421)
      at TestEnabledProtocols.runClientApplication(TestEnabledProtocols.java:111)
      at SSLSocketTemplate.doClientSide(SSLSocketTemplate.java:359)
      at SSLSocketTemplate$2.run(SSLSocketTemplate.java:598)
      ** FAILURE **
      Client died: java.lang.RuntimeException: java.net.SocketException: Connection reset
      java.lang.RuntimeException: java.net.SocketException: Connection reset
      at TestEnabledProtocols.failTest(TestEnabledProtocols.java:163)
      at TestEnabledProtocols.runClientApplication(TestEnabledProtocols.java:149)
      at SSLSocketTemplate.doClientSide(SSLSocketTemplate.java:359)
      at SSLSocketTemplate$2.run(SSLSocketTemplate.java:598)
      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:961)
      at java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:478)
      at java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:472)
      at java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:160)
      at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:111)
      at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1495)
      at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1415)
      at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:450)
      at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:421)
      at TestEnabledProtocols.runClientApplication(TestEnabledProtocols.java:111)
      ... 2 more
      ----------System.err:(25/1720)----------
      java.lang.RuntimeException: java.net.SocketException: Connection reset
      at TestEnabledProtocols.failTest(TestEnabledProtocols.java:163)
      at TestEnabledProtocols.runClientApplication(TestEnabledProtocols.java:149)
      at SSLSocketTemplate.doClientSide(SSLSocketTemplate.java:359)
      at SSLSocketTemplate$2.run(SSLSocketTemplate.java:598)
      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:961)
      at java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:478)
      at java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:472)
      at java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:160)
      at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:111)
      at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1495)
      at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1415)
      at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:450)
      at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:421)
      at TestEnabledProtocols.runClientApplication(TestEnabledProtocols.java:111)
      ... 2 more

      JavaTest Message: Test threw exception: java.lang.RuntimeException: java.net.SocketException: Connection reset
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: java.net.SocketException: Connection reset
      ----------rerun:(41/5451)*----------

        Attachments

          Activity

            People

            Assignee:
            rhalade Rajan Halade
            Reporter:
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: