javax.net.ssl.SSLHandshakeException: Connection closed by peer

Stack Overflow | Zeezer | 3 months ago
  1. 0

    How to allow arbitrary loads on Android 7 Nougat

    Stack Overflow | 3 months ago | Zeezer
    javax.net.ssl.SSLHandshakeException: Connection closed by peer
  2. 0

    Android Studio AWS SES SSLHandshakeException: Connection closed by peer

    Stack Overflow | 1 year ago | Takashiwa Max
    javax.net.ssl.SSLHandshakeException: Connection closed by peer
  3. 0

    h6.Issue Description Today now that Google released what should be the final builds of Android L we upgraded our Nexus 5 device to it from the Google Page: http://developer.android.com/preview/index.html I just loaded this in the iPhone Sim and I got the success alert as expected. I tried it on the Android Phone running 4.2.2 and it also got the success alert. On the Nexus 5 running Android 5.0 I get an error alert with this error in the logs attached. h6.Sample code {code} var url = "https_url"; var xhr = Ti.Network.createHTTPClient({ onload: function(e) { Ti.API.debug(this.responseText); alert('success'); }, onerror: function(e) { Ti.API.debug(e.error); alert('error'); }, timeout:5000 /* in milliseconds */ }); xhr.open("GET", url); xhr.send(); {code} h6.Logs {code} 10-20 13:05:18.293: D/Window(27268): Checkpoint: postWindowCreated() 10-20 13:05:18.296: E/TiHttpClient(27268): (TiHttpClient-1) [143,143] HTTP Error (javax.net.ssl.SSLHandshakeException): Connection closed by peer 10-20 13:05:18.296: E/TiHttpClient(27268): javax.net.ssl.SSLHandshakeException: Connection closed by peer 10-20 13:05:18.296: E/TiHttpClient(27268): at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method) 10-20 13:05:18.296: E/TiHttpClient(27268): at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:302) 10-20 13:05:18.296: E/TiHttpClient(27268): at com.android.org.conscrypt.OpenSSLSocketImpl.waitForHandshake(OpenSSLSocketImpl.java:598) 10-20 13:05:18.296: E/TiHttpClient(27268): at com.android.org.conscrypt.OpenSSLSocketImpl.getInputStream(OpenSSLSocketImpl.java:560) 10-20 13:05:18.296: E/TiHttpClient(27268): at org.apache.http.impl.io.SocketInputBuffer.<init>(SocketInputBuffer.java:70) 10-20 13:05:18.296: E/TiHttpClient(27268): at org.apache.http.impl.SocketHttpClientConnection.createSessionInputBuffer(SocketHttpClientConnection.java:83) 10-20 13:05:18.296: E/TiHttpClient(27268): at org.apache.http.impl.conn.DefaultClientConnection.createSessionInputBuffer(DefaultClientConnection.java:170) 10-20 13:05:18.296: E/TiHttpClient(27268): at org.apache.http.impl.SocketHttpClientConnection.bind(SocketHttpClientConnection.java:106) 10-20 13:05:18.296: E/TiHttpClient(27268): at org.apache.http.impl.conn.DefaultClientConnection.openCompleted(DefaultClientConnection.java:129) 10-20 13:05:18.296: E/TiHttpClient(27268): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:172) 10-20 13:05:18.296: E/TiHttpClient(27268): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164) 10-20 13:05:18.296: E/TiHttpClient(27268): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119) 10-20 13:05:18.296: E/TiHttpClient(27268): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360) 10-20 13:05:18.296: E/TiHttpClient(27268): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555) 10-20 13:05:18.296: E/TiHttpClient(27268): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:653) 10-20 13:05:18.296: E/TiHttpClient(27268): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:637) 10-20 13:05:18.296: E/TiHttpClient(27268): at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1328) 10-20 13:05:18.296: E/TiHttpClient(27268): at java.lang.Thread.run(Thread.java:818) 10-20 13:05:18.311: D/TiAPI(27268): Connection closed by peer {code} h6.Tiapp.xml http://docs.appcelerator.com/titanium/3.0/#!/guide/Installing_the_Android_SDK-section-29004851_InstallingtheAndroidSDK-SupportforAndroidWearandAndroidLSDKs

    Appcelerator JIRA | 2 years ago | Eduardo Gomez
    javax.net.ssl.SSLHandshakeException: Connection closed by peer
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 698#259136540

    GitHub | 4 weeks ago | AndreaCioccarelli
    javax.net.ssl.SSLHandshakeException: Connection closed by peer
  6. 0

    Add onError handling to FirebackTicker Retrofit

    GitHub | 8 months ago | phil-lopreiato
    java.lang.IllegalStateException: Exception thrown on Scheduler.Worker thread. Add `onError` handling.

  1. lribeiro 2 times, last 2 months ago
  2. ben.slama.jihed 7 times, last 6 months ago
  3. MyInnos 2 times, last 7 months ago
  4. martyn 1 times, last 8 months ago
  5. Chandan Jha 6 times, last 7 months ago
1 more registered users
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. javax.net.ssl.SSLHandshakeException

    Connection closed by peer

    at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake()
  2. RoboVM
    NativeCrypto.SSL_do_handshake
    1. com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
    1 frame