Forum Xamarin.Android

OKHttp and System.Reflection.TargetInvocationExceptionException

lufo88lufo88 USMember ✭✭✭

I use ModernHttpClient from a few month, today in Insight I found a crash, with this stack.

System.Reflection.MonoCMethod.InternalInvoke(object obj, object[] parameters)
System.Reflection.MonoCMethod.DoInvoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
System.Reflection.MonoCMethod.Invoke(BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
System.Reflection.ConstructorInfo.Invoke(object[] parameters)
Java.Interop.TypeManager.CreateProxy(Type type, IntPtr handle, JniHandleOwnership transfer)
Java.Interop.TypeManager.CreateInstance(IntPtr handle, JniHandleOwnership transfer, Type targetType)
Java.Lang.Object.GetObject(IntPtr handle, JniHandleOwnership transfer, Type type)
Java.Lang.Object.GetObject(IntPtr handle, JniHandleOwnership transfer)
Java.Lang.Object.GetObject(IntPtr handle, JniHandleOwnership transfer)
OkHttp.ICallbackInvoker.n_OnResponse_Lcom_squareup_okhttp_Response
(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
at (wrapper dynamic-method) System.Object:77d0d385-6ed1-41fb-b083-a3593edbcd07 (intptr,intptr,intptr)

>

System.NullReferenceExceptionObject reference not set to an instance of an object
Java.Lang.Object.Java.Interop.IJavaObjectEx.set_KeyHandle(IntPtr value)
Java.Lang.Object.RegisterInstance(IJavaObject instance, IntPtr value, JniHandleOwnership transfer, ref IntPtr handle)
System.Reflection.MonoCMethod.InternalInvoke(MonoCMethod, object, object[], ref Exception)(wrapper managed-to-native)
System.Reflection.MonoCMethod.InternalInvoke(object obj, object[] parameters)

It happen on a S7 with Marshmallow.
I have no other info. Do you an idea?

Sign In or Register to comment.