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

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

    separated from JDK-8134291. Please refer to the test output: 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

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

    SSL request fails from Soap UI, works with fiddler proxy

    Stack Overflow | 1 year ago | formatc
    javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
  3. 0

    SSL connection failing for Java 7

    Stack Overflow | 3 years ago | twizansk
    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

    Clients (Browser) goes timeout while connecting to a SSLSocket with CA certified certificate

    Stack Overflow | 2 years ago | Tester
    javax.net.ssl.SSLHandshakeException: Remote host closed connection during handsh ake
  6. 0

    How to perform SSL operations on port 80

    Stack Overflow | 3 years ago | NottyShinchan
    javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake

  1. abrazeneb 6 times, last 4 months ago
26 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
    AppOutputStream.write
    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.writeRecord(SSLSocketImpl.java:719)
    6. sun.security.ssl.AppOutputStream.write(AppOutputStream.java:67)
    7. sun.security.ssl.AppOutputStream.write(AppOutputStream.java:81)
    7 frames
  3. Unknown
    SSLSessionNulls.main
    1. SSLSessionNulls.doClientSide(SSLSessionNulls.java:134)
    2. SSLSessionNulls.startClient(SSLSessionNulls.java:287)
    3. SSLSessionNulls.<init>(SSLSessionNulls.java:214)
    4. SSLSessionNulls.main(SSLSessionNulls.java:200)
    4 frames
  4. 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:519)
    4 frames
  5. com.sun.javatest
    MainWrapper$MainThread.run
    1. com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
    1 frame
  6. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:746)
    1 frame