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

Bad exception message in HandshakeHash.getFinishedHash

    XMLWordPrintable

Details

    • b75
    • generic
    • generic

    Backports

      Description

        It's possible to end up with this exception in ssl handshake code :

        Exception in thread "main" java.lang.Error: BAD
                at sun.security.ssl.HandshakeHash.getFinishedHash(HandshakeHash.java:249)
                at sun.security.ssl.HandshakeMessage$Finished.getFinished(HandshakeMessage.java:1945)
                at sun.security.ssl.HandshakeMessage$Finished.<init>(HandshakeMessage.java:1892)
                at sun.security.ssl.ClientHandshaker.sendChangeCipherAndFinish(ClientHandshaker.java:1192)
                at sun.security.ssl.ClientHandshaker.serverHelloDone(ClientHandshaker.java:1112)
                at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:348)
                at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)

        That's not too informative. We should set the cause of exception when throwing an Error.

        Attachments

          Issue Links

            Activity

              People

                coffeys Sean Coffey
                coffeys Sean Coffey
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: