javax.net.ssl.SSLHandshakeException

Remote host terminated the handshake

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1114

  • via JDK Bug System by Felix Yang, 11 months ago
    Remote host terminated the handshake
  • Remote host terminated the handshake
  • 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.startHandshake(SSLSocketImpl.java:1383) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1367) at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1508) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:235) at ServerIdentityTest.doClientSide(ServerIdentityTest.java:129) at ServerIdentityTest.startClient(ServerIdentityTest.java:272) at ServerIdentityTest.<init>(ServerIdentityTest.java:202) at ServerIdentityTest.main(ServerIdentityTest.java:179) 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:504) 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) ... 19 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
    Once, 1 month ago
    2 times, 3 months ago
    Unknown user
    Once, 5 months ago
    Once, 6 months ago
    17 more bugmates