java.lang.RuntimeException: Cannot convert argument of type class org.json.JSONObject

GitHub | pampang | 1 week ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 78#279306924

    GitHub | 1 week ago | pampang
    java.lang.RuntimeException: Cannot convert argument of type class org.json.JSONObject
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    GitHub comment 78#263216234

    GitHub | 3 months ago | devhyunjae
    java.lang.RuntimeException: Unable to start receiver cn.jpush.reactnativejpush.JPushModule$JPushReceiver: java.lang.NullPointerException: Attempt to invoke virtual method 'com.facebook.react.bridge.JavaScriptModule com.facebook.react.bridge.ReactApplicationContext.getJSModule(java.lang.Class)' on a null object reference

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      Cannot convert argument of type class org.json.JSONObject

      at com.facebook.react.bridge.Arguments.fromJavaArgs()
    2. com.facebook.react
      JavaScriptModuleRegistry$JavaScriptModuleInvocationHandler.invoke
      1. com.facebook.react.bridge.Arguments.fromJavaArgs(Arguments.java:57)
      2. com.facebook.react.bridge.JavaScriptModuleRegistry$JavaScriptModuleInvocationHandler.invoke(JavaScriptModuleRegistry.java:109)
      2 frames
    3. Unknown
      $Proxy3.emit
      1. $Proxy3.emit(Native Method)
      1 frame
    4. cn.jpush.reactnativejpush
      JPushModule$JPushReceiver.onReceive
      1. cn.jpush.reactnativejpush.JPushModule$JPushReceiver.onReceive(JPushModule.java:261)
      1 frame
    5. Android Platform
      ActivityThread.main
      1. android.app.ActivityThread.handleReceiver(ActivityThread.java:2446)
      2. android.app.ActivityThread.access$1700(ActivityThread.java:139)
      3. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1286)
      4. android.os.Handler.dispatchMessage(Handler.java:102)
      5. android.os.Looper.loop(Looper.java:136)
      6. android.app.ActivityThread.main(ActivityThread.java:5102)
      6 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    7. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
      2 frames
    8. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame