Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Unable to activate instance of type Java.Lang.Runnable from native handle

$
0
0

I am getting recently so many Java errors. is there anyone else experience such exceptions? Full stacktrace looks like below. I am not able to understand and i am not able to reproduce myself but i can see in my app center logs, many of the users with different phone types experience this.

I suspect about opendjk. before i was using javajdk and recently i changed it using openjdk. Other big changes are Xamarin forms 3.4 (not using 3.5 yet), Android support libraries 8.1 and Syncfusion libraries. Does anyone have any clue what could be the problem?

Xamarin Exception Stack:
System.NotSupportedException: Unable to activate instance of type Java.Lang.Runnable from native handle 0xff83dfbc (key_handle 0x64bda85).
  at Java.Interop.TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type targetType) <0xc8f3c9ac + 0x003b0> in <29635e121db34534a72ded2726f4d6e0>:0
  at Java.Lang.Object.GetObject (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type type) <0xc8f1dbe4 + 0x0036b> in <29635e121db34534a72ded2726f4d6e0>:0
  at Java.Lang.Object._GetObject[T] (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) <0xc8f1db68 + 0x0004f> in <29635e121db34534a72ded2726f4d6e0>:0
  at Java.Lang.Object.GetObject[T] (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) <0xc8f1db2c + 0x00033> in <29635e121db34534a72ded2726f4d6e0>:0
  at Java.Lang.Object.GetObject[T] (System.IntPtr jnienv, System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) <0xc8f1dab8 + 0x0006b> in <29635e121db34534a72ded2726f4d6e0>:0
  at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) <0xc8f18f7c + 0x00033> in <29635e121db34534a72ded2726f4d6e0>:0
  at (wrapper dynamic-method) System.Object.48(intptr,intptr)
--- End of inner exception stack trace ---
  System.MissingMethodException: No constructor found for Java.Lang.Runnable::.ctor(System.IntPtr, Android.Runtime.JniHandleOwnership)
    at Java.Interop.TypeManager.CreateProxy (System.Type type, System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) <0xc8f3d12c + 0x001a8> in <29635e121db34534a72ded2726f4d6e0>:0
    at Java.Interop.TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type targetType) <0xc8f3c9ac + 0x00417> in <29635e121db34534a72ded2726f4d6e0>:0
  --- End of inner exception stack trace ---
    Java.Interop.JavaLocationException: Exception of type 'Java.Interop.JavaLocationException' was thrown.
      at Java.Lang.Error: Exception of type 'Java.Lang.Error' was thrown.
      at java.lang.Error: Java callstack:
      at mono.java.lang.Runnable.n_run(Native Method)
      at mono.java.lang.Runnable.run(Runnable.java:30)
      at android.view.ViewPropertyAnimator$AnimatorEventListener.onAnimationEnd(ViewPropertyAnimator.java:1127)
      at android.animation.Animator$AnimatorListener.onAnimationEnd(Animator.java:552)
      at android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1232)
      at android.animation.ValueAnimator.doAnimationFrame(ValueAnimator.java:1474)
      at android.animation.AnimationHandler.doAnimationFrame(AnimationHandler.java:146)
      at android.animation.AnimationHandler.access$100(AnimationHandler.java:37)
      at android.animation.AnimationHandler$1.doFrame(AnimationHandler.java:54)
      at android.view.Choreographer$CallbackRecord.run(Choreographer.java:947)
      at android.view.Choreographer.doCallbacks(Choreographer.java:761)
      at android.view.Choreographer.doFrame(Choreographer.java:693)
      at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:935)
      at android.os.Handler.handleCallback(Handler.java:873)
      at android.os.Handler.dispatchMessage(Handler.java:99)
      at android.os.Looper.loop(Looper.java:193)
      at android.app.ActivityThread.main(ActivityThread.java:6912)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:860)

Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>