javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake

Stack Overflow | cdarwin | 2 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    apache httpclient 4.5.1 making only SSL conections to non-ssl sites, and failing

    Stack Overflow | 1 year ago | Praveen
    javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    SSL Exception

    htmlunit | 3 years ago | htmlunitpro
    javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name
  4. 0

    InvalidAlgorithmParameterException: Key format must be RAW with REST template and Spring4

    Stack Overflow | 5 months ago | Manu
    org.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://10.170.4.86:8070/callback":java.security.ProviderException: java.security.InvalidAlgorithmParameterException: Key format must be RAW; nested exception is javax.net.ssl.SSLException: java.security.ProviderException: java.security.InvalidAlgorithmParameterException: Key format must be RAW
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.InputRecord.read()
  2. Java JSSE
    SSLSocketImpl.startHandshake
    1. sun.security.ssl.InputRecord.read(InputRecord.java:352)
    2. sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:861)
    3. sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1262)
    4. sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1289)
    5. sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1273)
    5 frames
  3. Apache HttpClient
    SSLConnectionSocketFactory.connectSocket
    1. org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:394)
    2. org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:353)
    2 frames
  4. com.gargoylesoftware.htmlunit
    HtmlUnitSSLConnectionSocketFactory.connectSocket
    1. com.gargoylesoftware.htmlunit.httpclient.HtmlUnitSSLConnectionSocketFactory.connectSocket(HtmlUnitSSLConnectionSocketFactory.java:189)
    1 frame
  5. Apache HttpClient
    CloseableHttpClient.execute
    1. org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:141)
    2. org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
    3. org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
    4. org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
    5. org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
    6. org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
    7. org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
    8. org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
    9. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:71)
    9 frames
  6. HtmlUnit
    WebClient.getPage
    1. com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:183)
    2. com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1358)
    3. com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1275)
    4. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:382)
    5. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:304)
    6. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:451)
    7. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:436)
    7 frames
  7. fetchers.bafin
    SSLTest.main
    1. fetchers.bafin.SSLTest.main(SSLTest.java:16)
    1 frame