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

SSLSocketWithStapling.java failed due to "RuntimeException: Expected client failure, but the client succeeded"

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 15
    • Fix Version/s: None
    • Component/s: security-libs

      Description

      The following test failed in the JDK15 CI:

      javax/net/ssl/Stapling/SSLSocketWithStapling.java

      Here's a snippet from the log file:

      ----------System.err:(334/24872)----------
      Server died...
      javax.net.ssl.SSLException: readHandshakeRecord
      at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1396)
      at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:437)
      at java.base/sun.security.ssl.SSLSocketImpl.ensureNegotiated(SSLSocketImpl.java:885)
      at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:976)
      at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:936)
      at SSLSocketWithStapling.doServerSide(SSLSocketWithStapling.java:716)
      at SSLSocketWithStapling$1.run(SSLSocketWithStapling.java:861)
      Suppressed: java.net.SocketException: Broken pipe
      at java.base/sun.nio.ch.NioSocketImpl.implWrite(NioSocketImpl.java:420)
      at java.base/sun.nio.ch.NioSocketImpl.write(NioSocketImpl.java:440)
      at java.base/sun.nio.ch.NioSocketImpl$2.write(NioSocketImpl.java:826)
      at java.base/java.net.Socket$SocketOutputStream.write(Socket.java:1051)
      at java.base/sun.security.ssl.SSLSocketOutputRecord.encodeAlert(SSLSocketOutputRecord.java:82)
      at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:383)
      at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:295)
      at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:442)
      ... 5 more
      Caused by: java.net.SocketException: Broken pipe
      at java.base/sun.nio.ch.NioSocketImpl.implWrite(NioSocketImpl.java:420)
      at java.base/sun.nio.ch.NioSocketImpl.write(NioSocketImpl.java:440)
      at java.base/sun.nio.ch.NioSocketImpl$2.write(NioSocketImpl.java:826)
      at java.base/java.net.Socket$SocketOutputStream.write(Socket.java:1051)
      at java.base/sun.security.ssl.SSLSocketOutputRecord.flush(SSLSocketOutputRecord.java:268)
      at java.base/sun.security.ssl.HandshakeOutStream.flush(HandshakeOutStream.java:89)
      at java.base/sun.security.ssl.ServerHelloDone$ServerHelloDoneProducer.produce(ServerHelloDone.java:103)
      at java.base/sun.security.ssl.SSLHandshake.produce(SSLHandshake.java:440)
      at java.base/sun.security.ssl.ClientHello$T12ClientHelloConsumer.consume(ClientHello.java:1120)
      at java.base/sun.security.ssl.ClientHello$ClientHelloConsumer.onClientHello(ClientHello.java:853)
      at java.base/sun.security.ssl.ClientHello$ClientHelloConsumer.consume(ClientHello.java:812)
      at java.base/sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:396)
      at java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:445)
      at java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:423)
      at java.base/sun.security.ssl.TransportContext.dispatch(TransportContext.java:182)
      at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:171)
      at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1479)
      at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1385)
      ... 6 more

      <snip>

      Server died...
      javax.net.ssl.SSLException: readHandshakeRecord
      at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1396)
      at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:437)
      at java.base/sun.security.ssl.SSLSocketImpl.ensureNegotiated(SSLSocketImpl.java:885)
      at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:976)
      at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:936)
      at SSLSocketWithStapling.doServerSide(SSLSocketWithStapling.java:716)
      at SSLSocketWithStapling$1.run(SSLSocketWithStapling.java:861)
      Suppressed: java.net.SocketException: Broken pipe
      at java.base/sun.nio.ch.NioSocketImpl.implWrite(NioSocketImpl.java:420)
      at java.base/sun.nio.ch.NioSocketImpl.write(NioSocketImpl.java:440)
      at java.base/sun.nio.ch.NioSocketImpl$2.write(NioSocketImpl.java:826)
      at java.base/java.net.Socket$SocketOutputStream.write(Socket.java:1051)
      at java.base/sun.security.ssl.SSLSocketOutputRecord.encodeAlert(SSLSocketOutputRecord.java:82)
      at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:383)
      at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:295)
      at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:442)
      ... 5 more
      Caused by: java.net.SocketException: Broken pipe
      at java.base/sun.nio.ch.NioSocketImpl.implWrite(NioSocketImpl.java:420)
      at java.base/sun.nio.ch.NioSocketImpl.write(NioSocketImpl.java:440)
      at java.base/sun.nio.ch.NioSocketImpl$2.write(NioSocketImpl.java:826)
      at java.base/java.net.Socket$SocketOutputStream.write(Socket.java:1051)
      at java.base/sun.security.ssl.SSLSocketOutputRecord.flush(SSLSocketOutputRecord.java:268)
      at java.base/sun.security.ssl.HandshakeOutStream.flush(HandshakeOutStream.java:89)
      at java.base/sun.security.ssl.Finished$T13FinishedProducer.onProduceFinished(Finished.java:788)
      at java.base/sun.security.ssl.Finished$T13FinishedProducer.produce(Finished.java:676)
      at java.base/sun.security.ssl.SSLHandshake.produce(SSLHandshake.java:440)
      at java.base/sun.security.ssl.ClientHello$T13ClientHelloConsumer.goServerHello(ClientHello.java:1252)
      at java.base/sun.security.ssl.ClientHello$T13ClientHelloConsumer.consume(ClientHello.java:1188)
      at java.base/sun.security.ssl.ClientHello$ClientHelloConsumer.onClientHello(ClientHello.java:851)
      at java.base/sun.security.ssl.ClientHello$ClientHelloConsumer.consume(ClientHello.java:812)
      at java.base/sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:396)
      at java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:445)
      at java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:423)
      at java.base/sun.security.ssl.TransportContext.dispatch(TransportContext.java:182)
      at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:171)
      at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1479)
      at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1385)
      ... 6 more
      java.lang.RuntimeException: Expected client failure, but the client succeeded
      at SSLSocketWithStapling.testLatencyNoStaple(SSLSocketWithStapling.java:643)
      at SSLSocketWithStapling.main(SSLSocketWithStapling.java:149)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      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)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected client failure, but the client succeeded
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Expected client failure, but the client succeeded
      ----------rerun:(43/5221)*----------

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: