Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
MonoDroid: UNHANDLED EXCEPTION:
MonoDroid: Javax.Net.Ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. ---> Java.Security.Cert.CertificateException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. ---> Java.Security.Cert.CertPathValidatorException: Trust anchor for certification path not found.
MonoDroid: --- End of inner exception stack trace ---
MonoDroid: --- End of inner exception stack trace ---
MonoDroid: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at Java.Interop.JniEnvironment+InstanceMethods.CallVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x00084] in <6ce1788f85a34caabf90916099d436ae>:0
MonoDroid: at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeAbstractVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00015] in <6ce1788f85a34caabf90916099d436ae>:0
MonoDroid: at Javax.Net.Ssl.HttpsURLConnectionInvoker.Connect () [0x0000a] in <28cb84e5b9db4ddb8fcf10a13fda39c9>:0
MonoDroid: at Java.Net.URLConnection.<ConnectAsync>m__0 () [0x00000] in <28cb84e5b9db4ddb8fcf10a13fda39c9>:0
MonoDroid: at System.Threading.Tasks.Task.InnerInvoke () [0x00012] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at System.Threading.Tasks.Task.Execute () [0x00016] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: --- End of stack trace from previous location where exception was thrown ---
MonoDroid: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at Xamarin.Android.Net.AndroidClientHandler+<DoProcessRequest>c__async1.MoveNext () [0x0012f] in <28cb84e5b9db4ddb8fcf10a13fda39c9>:0
MonoDroid: --- End of stack trace from previous location where exception was thrown ---
MonoDroid: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at Xamarin.Android.Net.AndroidClientHandler+<SendAsync>c__async0.MoveNext () [0x00196] in <28cb84e5b9db4ddb8fcf10a13fda39c9>:0
MonoDroid: --- End of stack trace from previous location where exception was thrown ---
MonoDroid: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at System.Net.Http.HttpClient+<SendAsyncWorker>c__async0.MoveNext () [0x000f3] in <33125f85abf045418d5a40b4ae0d9bb5>:0
MonoDroid: --- End of stack trace from previous location where exception was thrown ---
MonoDroid: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at httpsregression.HttpApi+<Request>c__async0.MoveNext () [0x000d2] in <a80131348c944fff869907eb17b32ad0>:0
MonoDroid: --- End of stack trace from previous location where exception was thrown ---
MonoDroid: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException[TResult] (System.Threading.Tasks.Task`1[TResult] task) [0x00007] in <5cbdbdb7ab6a4a7287a83562d75426e2>:0
MonoDroid: at Nito.AsyncEx.AsyncContext+<>c__DisplayClass7`1[TResult].<Run>b__5 (System.Threading.Tasks.Task`1[TResult] t) [0x0000b] in <5cbdbdb7ab6a4a7287a83562d75426e2>:0
MonoDroid: at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2[TAntecedentResult,TResult].InnerInvoke () [0x00027] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at System.Threading.Tasks.Task.Execute () [0x00016] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: --- End of stack trace from previous location where exception was thrown ---
MonoDroid: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <478340f1d1f44f03875f1bc9134bec35>:0
MonoDroid: at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException[TResult] (System.Threading.Tasks.Task`1[TResult] task) [0x00007] in <5cbdbdb7ab6a4a7287a83562d75426e2>:0
MonoDroid: at Nito.AsyncEx.AsyncContext.Run[TResult] (System.Func`1[TResult] action) [0x00060] in <5cbdbdb7ab6a4a7287a83562d75426e2>:0
MonoDroid: at httpsregression.MainActivity+<OnCreate>c__AnonStorey0.<>m__0 (System.Object , System.EventArgs ) [0x00049] in <a80131348c944fff869907eb17b32ad0>:0
MonoDroid: at Android.Views.View+IOnClickListenerImplementor.OnClick (Android.Views.View v) [0x00014] in <28cb84e5b9db4ddb8fcf10a13fda39c9>:0
MonoDroid: at Android.Views.View+IOnClickListenerInvoker.n_OnClick_Landroid_view_View_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_v) [0x00011] in <28cb84e5b9db4ddb8fcf10a13fda39c9>:0
MonoDroid: at (wrapper dynamic-method) System.Object:73be232a-d8fb-4bac-8fe4-87df98b2ec92 (intptr,intptr,intptr)
MonoDroid: --- End of managed Javax.Net.Ssl.SSLHandshakeException stack trace ---
MonoDroid: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
MonoDroid: at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:357)
MonoDroid: at com.android.okhttp.internal.http.SocketConnector.connectTls(SocketConnector.java:212)
MonoDroid: at com.android.okhttp.Connection.connect(Connection.java:1322)
MonoDroid: at com.android.okhttp.Connection.connectAndSetOwner(Connection.java:1410)
MonoDroid: at com.android.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:128)
MonoDroid: at com.android.okhttp.internal.http.HttpEngine.nextConnection(HttpEngine.java:466)
MonoDroid: at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:447)
MonoDroid: at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:353)
MonoDroid: at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:476)
MonoDroid: at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:118)
MonoDroid: at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.connect(DelegatingHttpsURLConnection.java:89)
MonoDroid: at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:25)
MonoDroid: Caused by: java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
MonoDroid: at com.android.org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:324)
MonoDroid: at com.android.org.conscrypt.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:225)
MonoDroid: at com.android.org.conscrypt.Platform.checkServerTrusted(Platform.java:115)
MonoDroid: at com.android.org.conscrypt.OpenSSLSocketImpl.verifyCertificateChain(OpenSSLSocketImpl.java:643)
MonoDroid: at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
MonoDroid: at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:353)
MonoDroid: ... 11 more
MonoDroid: Caused by: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
MonoDroid: ... 17 more
Mono : DllImport searching in: '__Internal' ('(null)').
Mono : Searching for 'java_interop_jnienv_throw'.
Mono : Probing 'java_interop_jnienv_throw'.
Mono : Found as 'java_interop_jnienv_throw'.
AndroidRuntime: Shutting down VM
AndroidRuntime: FATAL EXCEPTION: main
AndroidRuntime: Process: com.xamarin.regression.httpsregression, PID: 27366
AndroidRuntime: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException
AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
AndroidRuntime: ... 1 more
AndroidRuntime: Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
AndroidRuntime: at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:357)
AndroidRuntime: at com.android.okhttp.internal.http.SocketConnector.connectTls(SocketConnector.java:212)
AndroidRuntime: at com.android.okhttp.Connection.connect(Connection.java:1322)
AndroidRuntime: at com.android.okhttp.Connection.connectAndSetOwner(Connection.java:1410)
AndroidRuntime: at com.android.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:128)
AndroidRuntime: at com.android.okhttp.internal.http.HttpEngine.nextConnection(HttpEngine.java:466)
AndroidRuntime: at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:447)
AndroidRuntime: at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:353)
AndroidRuntime: at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:476)
AndroidRuntime: at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:118)
AndroidRuntime: at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.connect(DelegatingHttpsURLConnection.java:89)
AndroidRuntime: at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:25)
AndroidRuntime: Caused by: java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
AndroidRuntime: at com.android.org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:324)
AndroidRuntime: at com.android.org.conscrypt.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:225)
AndroidRuntime: at com.android.org.conscrypt.Platform.checkServerTrusted(Platform.java:115)
AndroidRuntime: at com.android.org.conscrypt.OpenSSLSocketImpl.verifyCertificateChain(OpenSSLSocketImpl.java:643)
AndroidRuntime: at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
AndroidRuntime: at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:353)
AndroidRuntime: ... 11 more
AndroidRuntime: Caused by: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
AndroidRuntime: ... 17 more
ActivityManager: Force finishing activity com.xamarin.regression.httpsregression/md5056a8c8285d57bcf40535bf37351d002.MainActivity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.