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

sun/security/ssl/SSLSocketImpl/SSLSocketImplThrowsWrongExceptions. SSL test failures caused by java failed with "Server reported the wrong exception"

XMLWordPrintable

    • b26
    • x86_64
    • linux

        The following test failed in the JDK17 CI:

        sun/security/ssl/SSLSocketImpl/SSLSocketImplThrowsWrongExceptions.java

        Here's a snippet from the log file:

        #section:main
        ----------messages:(4/198)----------
        command: main SSLSocketImplThrowsWrongExceptions
        reason: User specified action: run main/othervm SSLSocketImplThrowsWrongExceptions
        Mode: othervm [/othervm specified]
        elapsed time (seconds): 0.392
        ----------configuration:(0/0)----------
        ----------System.out:(10/440)----------
        starting Server
            Client starting
        got server socket
        Server socket accepting...
                Client creating socket
        Server starting handshake
                Client starting handshake
               Client reported correct exception
               javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
        Server reported the wrong exception
        ----------System.err:(31/2280)----------
        Server died...
        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:1031)
        at java.base/sun.security.ssl.SSLSocketOutputRecord.flush(SSLSocketOutputRecord.java:266)
        at java.base/sun.security.ssl.HandshakeOutStream.flush(HandshakeOutStream.java:89)
        at java.base/sun.security.ssl.Finished$T13FinishedProducer.onProduceFinished(Finished.java:787)
        at java.base/sun.security.ssl.Finished$T13FinishedProducer.produce(Finished.java:675)
        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:480)
        at java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:458)
        at java.base/sun.security.ssl.TransportContext.dispatch(TransportContext.java:199)
        at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:172)
        at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1501)
        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 SSLSocketImplThrowsWrongExceptions.doServerSide(SSLSocketImplThrowsWrongExceptions.java:96)
        at SSLSocketImplThrowsWrongExceptions$1.run(SSLSocketImplThrowsWrongExceptions.java:266)

        JavaTest Message: Test threw exception: java.net.SocketException: Broken pipe
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.net.SocketException: Broken pipe
        ----------rerun:(36/5839)*----------

              fguallini Fernando Guallini
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: