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

Bad exception message in HandshakeHash.getFinishedHash

    Details

    • Subcomponent:
    • Resolved In Build:
      b75
    • CPU:
      generic
    • OS:
      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

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: