Android mobilesdk应用上的SSLHandshakeException

2020-09-22 14:14发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)嗨,尝试在模拟器上使用b2c变体...

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


嗨,尝试在模拟器上使用b2c变体启动android应用时遇到错误。 该应用程序不会获取任何数据,并且在我单击任何位置时都会一直显示异常。

以下是堆栈跟踪的一部分:

10-04 14:02:41.222 2352-3613/? E/DG.WV:无法与预配置服务器通信。 javax.net.ssl.SSLHandshakeException:java.security.cert.CertPathValidatorException:找不到证书路径的信任锚。 com.android.okhttp.Connection.connectTls(Connection.java:235)上com.android.okhttp.Connection.connectTls(Connection.java:235)上的com.google.android.gms.org.conscrypt.OpenSSLSocketImpl.startHandshake(:com.google.android.gms:350)。 com.android.okhttp.Connection.connect(Connection.java:172)的com.android.okhttp.Connection.connectAndSetOwner(Connection.java:367)的okhttp.Connection.connectSocket(Connection.java:199) .okhttp.OkHttpClient $ 1.connectAndSetOwner(OkHttpClient.java:130)在com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:329)在com.android.okhttp.internal.http.HttpEngine.sendRequest( com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:457)处com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:126)处的HttpEngine.java:246) .android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:257)位于com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsU RL.Connection.java:218)位于com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java)位于ojq.a(:com.google.android.gms:71),位于ojq.a(:com.google .android.gms:53)位于omr.run(:com.google.android.gms:1059),原因:java.security.cert.CertificateException:java.security.cert.CertPathValidatorException:找不到证书路径的信任锚。 com.android.org.conscrypt.TrustManagerImpl.verifyChain(TrustManagerImpl.java:563)com.android.org.conscrypt.TrustManagerImpl.checkTrustedRecursive(TrustManagerImpl.java:444)com.android.org.conscrypt.TrustManagerImpl.checkTrustedRecursive (TrustManagerImpl.java:508)在com.android.org.conscrypt.TrustManagerImpl.checkTrustedRecursive(TrustManagerImpl.java:508)在com.android.org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:401)在com.android。 com.android.org.conscrypt.TrustManagerImpl.getTrustedChainForServer(TrustManagerImpl.java:304)上的org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:375)在android.security.net.config.NetworkSecurityTrustManager.checkServerTrusted(NetworkSecurityTrustManager.java: 94),位于com.google.android.gms.org.conscrypt.Platform的java.lang.reflect.Method.invoke(Native Method),位于android.security.net.config.RootTrustManager.checkServerTrusted(RootTrustManager.java:88)。 com.goog上的checkTrusted(:com.google.android.gms:232) le.android.gms.org.conscrypt.Platform.checkServerTrusted(:com.google.android.gms:255)位于com.google.android.gms.org.conscrypt.OpenSSLSocketImpl.verifyCertificateChain(:com.google.android.gms :588),位于com.google.android.gms.org.conscrypt.NativeCrypto.SSL_do_handshake(本地方法),位于com.google.android.gms.org.conscrypt.OpenSSLSocketImpl.startHandshake(:com.google.android.gms:346 )com.android.okhttp.Connection.connectTls(Connection.java:235)com.android.okhttp.Connection.connectSocket(Connection.java:199)com.android.okhttp.Connection.connect(Connection.java: 172),位于com.android.okhttp.OkHttpClient $ 1.connectAndSetOwner(OkHttpClient.java:130),位于com.android.okhttp.internal.http.HttpEngine的com.android.okhttp.Connection.connectAndSetOwner(Connection.java:367)。 com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:246)的连接(com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:457)的connect(HttpEngine.java:329) 在com.android.ok com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:257)上的com.android.okhttp.internal.huc.DelegatingHttpsURLConnection上的http.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:126)。 com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java)的getOutputStream(DelegatingHttpsURLConnection.java:218)在ojq.a(:com)的ojq.a(:com.google.android.gms:71) .google.android.gms:53)位于omr.run(:com.google.android.gms:1059)造成原因:java.security.cert.CertPathValidatorException:找不到证书路径的信任锚。 com.android.org.conscrypt.TrustManagerImpl.verifyChain(TrustManagerImpl.java:563)com.android.org.conscrypt.TrustManagerImpl.checkTrustedRecursive(TrustManagerImpl.java:444)com.android.org.conscrypt.TrustManagerImpl.checkTrustedRecursive (TrustManagerImpl.java:508)在com.android.org.conscrypt.TrustManagerImpl.checkTrustedRecursive(TrustManagerImpl.java:508)在com.android.org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:401)在com.android。 com.android.org.conscrypt.TrustManagerImpl.getTrustedChainForServer(TrustManagerImpl.java:304)上的org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:375)在android.security.net.config.NetworkSecurityTrustManager.checkServerTrusted(NetworkSecurityTrustManager.java: 94),位于com.google.android.gms.org.conscrypt.Platform的java.lang.reflect.Method.invoke(Native Method),位于android.security.net.config.RootTrustManager.checkServerTrusted(RootTrustManager.java:88)。 com.goog上的checkTrusted(:com.google.android.gms:232) le.android.gms.org.conscrypt.Platform.checkServerTrusted(:com.google.android.gms:255)位于com.google.android.gms.org.conscrypt.OpenSSLSocketImpl.verifyCertificateChain(:com.google.android.gms :588),位于com.google.android.gms.org.conscrypt.NativeCrypto.SSL_do_handshake(本地方法),位于com.google.android.gms.org.conscrypt.OpenSSLSocketImpl.startHandshake(:com.google.android.gms:346 )com.android.okhttp.Connection.connectTls(Connection.java:235)com.android.okhttp.Connection.connectSocket(Connection.java:199)com.android.okhttp.Connection.connect(Connection.java: 172),位于com.android.okhttp.OkHttpClient $ 1.connectAndSetOwner(OkHttpClient.java:130),位于com.android.okhttp.internal.http.HttpEngine的com.android.okhttp.Connection.connectAndSetOwner(Connection.java:367)。 com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:246)的连接(com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:457)的connect(HttpEngine.java:329) 在com.android.ok com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:257)上的com.android.okhttp.internal.huc.DelegatingHttpsURLConnection上的http.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:126)。 com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java)的getOutputStream(DelegatingHttpsURLConnection.java:218)在ojq.a(:com)的ojq.a(:com.google.android.gms:71) .omr.run(:com.google.android.gms:1059)的.google.android.gms:53)