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

GitHub | obilodeau | 3 months ago
  1. 0

    GitHub comment 67#241623085

    GitHub | 3 months ago | obilodeau
    javax.net.ssl.SSLHandshakeException: Connection closed by peer
  2. 0

    GitHub comment 67#241623083

    GitHub | 3 months ago | obilodeau
    javax.net.ssl.SSLHandshakeException: Connection closed by peer
  3. 0

    Failure to connect Exchange 2003 OWA

    GitHub | 1 year ago | cmcarrizo
    com.fsck.k9.mail.CertificateValidationException: Connection closed by peer
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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

  1. Ábó Szilágyi 5 times, last 8 months ago
3 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. javax.net.ssl.SSLHandshakeException

    Connection closed by peer

    at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake()
  2. RoboVM
    OpenSSLSocketImpl.getInputStream
    1. com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
    2. com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:302)
    3. com.android.org.conscrypt.OpenSSLSocketImpl.waitForHandshake(OpenSSLSocketImpl.java:598)
    4. com.android.org.conscrypt.OpenSSLSocketImpl.getInputStream(OpenSSLSocketImpl.java:560)
    4 frames
  3. Apache Http
    SocketHttpClientConnection.createSessionInputBuffer
    1. org.apache.http.impl.io.SocketInputBuffer.<init>(SocketInputBuffer.java:70)
    2. org.apache.http.impl.SocketHttpClientConnection.createSessionInputBuffer(SocketHttpClientConnection.java:83)
    2 frames
  4. Apache HttpClient
    DefaultClientConnection.createSessionInputBuffer
    1. org.apache.http.impl.conn.DefaultClientConnection.createSessionInputBuffer(DefaultClientConnection.java:170)
    1 frame
  5. Apache Http
    SocketHttpClientConnection.bind
    1. org.apache.http.impl.SocketHttpClientConnection.bind(SocketHttpClientConnection.java:106)
    1 frame
  6. Apache HttpClient
    AbstractHttpClient.execute
    1. org.apache.http.impl.conn.DefaultClientConnection.openCompleted(DefaultClientConnection.java:129)
    2. org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:172)
    3. org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
    4. org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
    5. org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360)
    6. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
    7. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
    8. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
    8 frames
  7. org.tomdroid.sync
    SnowySyncService$1.run
    1. org.tomdroid.sync.web.WebConnection.execute(WebConnection.java:124)
    2. org.tomdroid.sync.web.AnonymousConnection.get(AnonymousConnection.java:42)
    3. org.tomdroid.sync.web.OAuthConnection.getAuthorizationUrl(OAuthConnection.java:131)
    4. org.tomdroid.sync.web.SnowySyncService$1.run(SnowySyncService.java:102)
    4 frames
  8. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
    3. java.lang.Thread.run(Thread.java:818)
    3 frames