javax.net.ssl.SSLHandshakeException

Remote host terminated the handshake

Solutions on the web1111

  • via JDK Bug System by Felix Yang, 11 months ago
    Remote host terminated the handshake
  • Remote host terminated the handshake
  • via Coderanch by Carlos Serrano, 7 months ago
    Remote host closed connection during handshake
  • Stack trace

    • javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1022) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:949) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1356) at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:719) at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:67) at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:81) at SSLSessionNulls.doClientSide(SSLSessionNulls.java:134) at SSLSessionNulls.startClient(SSLSessionNulls.java:287) at SSLSessionNulls.<init>(SSLSessionNulls.java:214) at SSLSessionNulls.main(SSLSessionNulls.java:200) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:519) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92) at java.lang.Thread.run(Thread.java:746) Caused by: java.io.EOFException: SSL peer shut down incorrectly at sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:156) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:995) ... 15 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    2 more bugmates