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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by user3141828
, 9 months ago
via Stack Overflow by Pritesh
, 10 months ago
via Stack Overflow by Kels
, 5 months ago
via GitHub by TheLastProject
, 1 year ago
Connection closed by peer
via GitHub by Aeonitis
, 1 year ago
SSL handshake aborted: ssl=0x93484580: I/O error during system call, Connection reset by peer
javax.net.ssl.SSLHandshakeException: Connection closed by peer
at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
at com.android.okhttp.Connection.connectTls(Connection.java:235)
at com.android.okhttp.Connection.connectSocket(Connection.java:199)
at com.android.okhttp.Connection.connect(Connection.java:172)
at com.android.okhttp.Connection.connectAndSetOwner(Connection.java:367)
at com.android.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:130)
at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:329)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:457)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:126)
at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.connect(DelegatingHttpsURLConnection.java:89)
at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java)
at org.ksoap2.transport.ServiceConnectionSE.connect(ServiceConnectionSE.java:76)
at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:153)
at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:95)
at com.ngha.sshr.LoginActivity$ValidateUserAsyncTask.callingValidateUser(LoginActivity.java:260)
at com.ngha.sshr.LoginActivity$ValidateUserAsyncTask.doInBackground(LoginActivity.java:159)
at com.ngha.sshr.LoginActivity$ValidateUserAsyncTask.doInBackground(LoginActivity.java:141)
at android.os.AsyncTask$2.call(AsyncTask.java:316)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:776)

Users with the same issue

4 times, 8 months ago
Once, 4 months ago
16 times, 10 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
25 times, 8 months ago
46 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.