javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake

JDK Bug System | Felix Yang | 4 months ago
  1. 0

    This is from JDK-8134291. Test sun/net/www/protocol/https/HttpsClient/ServerIdentityTest.java failed intermittently with javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake Please refer to the test output: ----------System.out:(2/197)---------- Testing /Users/aurora/sandbox/testbase/jdk/test/sun/net/www/protocol/https/HttpsClient/.//dnsstore Testing /Users/aurora/sandbox/testbase/jdk/test/sun/net/www/protocol/https/HttpsClient/.//ipstore ----------System.err:(30/2084)---------- 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

    JDK Bug System | 4 months ago | Felix Yang
    javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake
  2. 0

    [bug] Unable to getStats: Remote host closed connection during handshake

    GitHub | 2 years ago | aranhoide
    javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
  3. 0

    Java, error while connecting via SSL (Remote host closed connection during handshake)

    Stack Overflow | 2 years ago | Aleksey_M
    javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Test status not set on saucelabs

    Stack Overflow | 2 years ago | karan
    javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
  6. 0

    SSLHandshakeException: Remote host closed connection during handshake - scriptscoop.com

    scriptscoop.com | 1 year ago
    javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake

  1. kid 540 times, last 5 months ago
  2. poroszd 1 times, last 9 months ago
98 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.EOFException

    SSL peer shut down incorrectly

    at sun.security.ssl.SSLSocketInputRecord.decode()
  2. Java JSSE
    SSLSocketImpl.startHandshake
    1. sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:156)
    2. sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:995)
    3. sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:949)
    4. sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1356)
    5. sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1383)
    6. sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1367)
    6 frames
  3. Java RT
    HttpsURLConnectionImpl.getInputStream
    1. sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
    2. sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
    3. sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1508)
    4. sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436)
    5. sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:235)
    5 frames
  4. Unknown
    ServerIdentityTest.main
    1. ServerIdentityTest.doClientSide(ServerIdentityTest.java:129)
    2. ServerIdentityTest.startClient(ServerIdentityTest.java:272)
    3. ServerIdentityTest.<init>(ServerIdentityTest.java:202)
    4. ServerIdentityTest.main(ServerIdentityTest.java:179)
    4 frames
  5. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:504)
    4 frames
  6. com.sun.javatest
    MainWrapper$MainThread.run
    1. com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
    1 frame
  7. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:746)
    1 frame