有时我的服务器连接停止,我得到了
javax.net.ssl.SSLHandshakeException: Handshake failed
at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:444) ~[na:0.0]
at com.android.okhttp.Connection.connectTls(Connection.java:1510) ~[na:0.0]
at com.android.okhttp.Connection.connectSocket(Connection.java:1458) ~[na:0.0]
at com.android.okhttp.Connection.connect(Connection.java:1413) ~[na:0.0]
at com.android.okhttp.Connection.connectAndSetOwner(Connection.java:1700) ~[na:0.0]
at com.android.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:133) ~[na:0.0]
at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:466) ~[na:0.0]
at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:371) ~[na:0.0]
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:503) ~[na:0.0]
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:130) ~[na:0.0]
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:261) ~[na:0.0]
at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218) ~[na:0.0]
at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java) ~[na:0.0]
at org.ksoap2.transport.HttpsServiceConnectionSE.openOutputStream(HttpsServiceConnectionSE.java:127) ~[na:0.0]
at org.ksoap2.transport.HttpTransportSE.sendData(HttpTransportSE.java:292) ~[na:0.0]
at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:184) ~[na:0.0]
at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:118) ~[na:0.0]
at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:113) ~[na:0.0]
at com.orange.cinkeo.ws.pda.generated.interfaces.business.Cinkeobusiness.envoyerCRI(Cinkeobusiness.java:138) ~[na:0.0]
at com.amp.myApp.data.helpers.WsBusinessHelper.callDechargerCRI(WsBusinessHelper.java:184) ~[na:0.0]
at com.amp.myApp.data.services.EnvoyerCRIService.envoyerCri(EnvoyerCRIService.java:302) ~[na:0.0]
at com.amp.myApp.data.services.FDL.CallSyncAction.lambda$dechargement$0$CallSyncAction(CallSyncAction.java:197) ~[na:0.0]
at com.amp.myApp.data.services.FDL.CallSyncAction$$Lambda$0.accept(Unknown Source) ~[na:0.0]
at java.util.HashMap.forEach(HashMap.java:1359) ~[na:0.0]
at com.amp.myApp.data.services.FDL.CallSyncAction.dechargement(CallSyncAction.java:185) ~[na:0.0]
at com.amp.myApp.data.services.FDL.CallSyncAction.execute(CallSyncAction.java:170) ~[na:0.0]
at com.amp.myApp.data.services.FDL.FDLIntentService$FDLAsyncTask.doInBackground(FDLIntentService.java:109) ~[na:0.0]
at com.amp.myApp.data.services.FDL.FDLIntentService$FDLAsyncTask.doInBackground(FDLIntentService.java:94) ~[na:0.0]
at android.os.AsyncTask$2.call(AsyncTask.java:305) ~[na:0.0]
at java.util.concurrent.FutureTask.run(FutureTask.java:237) ~[na:0.0]
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243) ~[na:0.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) ~[na:0.0]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) ~[na:0.0]
at java.lang.Thread.run(Thread.java:762) ~[na:0.0]
Suppressed: javax.net.ssl.SSLHandshakeException: Handshake failed
... 34 common frames omitted
Suppressed: javax.net.ssl.SSLHandshakeException: Connection closed by peer
at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:364)
... 33 common frames omitted
Caused by: javax.net.ssl.SSLProtocolException: SSL handshake terminated: ssl=0xd240bf80: Failure in SSL library, usually a protocol error
error:1000043e:SSL routines:OPENSSL_internal:TLSV1_ALERT_INAPPROPRIATE_FALLBACK (external/boringssl/src/ssl/s3_pkt.c:641 0xd2464a00:0x00000001)
at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:364)
... 33 common frames omitted
Caused by: javax.net.ssl.SSLProtocolException: SSL handshake terminated: ssl=0xd240bf80: Failure in SSL library, usually a protocol error
error:1000043e:SSL routines:OPENSSL_internal:TLSV1_ALERT_INAPPROPRIATE_FALLBACK (external/boringssl/src/ssl/s3_pkt.c:641 0xd2464a00:0x00000001)
at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method) ~[na:0.0]
at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:364) ~[na:0.0]
... 33 common frames omitted
如果是在okhttp或我的终端上出现错误,我并不会真正得到,我会在okhttp中说,因为其余时间都可以正常工作。
我正在使用Android 7.1.1
您怎么看? 谢谢。