java.lang.RuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Crosswalk with Eclipse crashes
    via Stack Overflow by Qbul3kZ
    ,
  • Impacted Cases ============== Imported Cross Walk ARM Library on embaded Cross Walk Sample. For some lower Android 4.3 its working fine For a Device Android 4.4 or greater May be its Just opening the App and then Crashed with a lots of Error as below. 04-17 18:00:21.993: E/AndroidRuntime(25419): FATAL EXCEPTION: main 04-17 18:00:21.993: E/AndroidRuntime(25419): Process: org.crosswalkproject.xwalkembed, PID: 25419 04-17 18:00:21.993: E/AndroidRuntime(25419): java.lang.RuntimeException: Unable to start activity ComponentInfo{org.crosswalkproject.xwalkembed/org.crosswalkproject.xwalkembed.MainActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class org.xwalk.core.XWalkView 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2318) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2396) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.ActivityThread.access$800(ActivityThread.java:139) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1293) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.os.Handler.dispatchMessage(Handler.java:102) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.os.Looper.loop(Looper.java:149) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.ActivityThread.main(ActivityThread.java:5268) 04-17 18:00:21.993: E/AndroidRuntime(25419): at java.lang.reflect.Method.invokeNative(Native Method) 04-17 18:00:21.993: E/AndroidRuntime(25419): at java.lang.reflect.Method.invoke(Method.java:515) 04-17 18:00:21.993: E/AndroidRuntime(25419): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 04-17 18:00:21.993: E/AndroidRuntime(25419): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609) 04-17 18:00:21.993: E/AndroidRuntime(25419): at dalvik.system.NativeStart.main(Native Method) 04-17 18:00:21.993: E/AndroidRuntime(25419): Caused by: android.view.InflateException: Binary XML file line #1: Error inflating class org.xwalk.core.XWalkView 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.view.LayoutInflater.createView(LayoutInflater.java:620) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.view.LayoutInflater.inflate(LayoutInflater.java:469) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.view.LayoutInflater.inflate(LayoutInflater.java:397) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.view.LayoutInflater.inflate(LayoutInflater.java:353) 04-17 18:00:21.993: E/AndroidRuntime(25419): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:290) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.Activity.setContentView(Activity.java:2002) 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.crosswalkproject.xwalkembed.MainActivity.onCreate(MainActivity.java:17) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.Activity.performCreate(Activity.java:5411) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2270) 04-17 18:00:21.993: E/AndroidRuntime(25419): ... 11 more 04-17 18:00:21.993: E/AndroidRuntime(25419): Caused by: java.lang.reflect.InvocationTargetException 04-17 18:00:21.993: E/AndroidRuntime(25419): at java.lang.reflect.Constructor.constructNative(Native Method) 04-17 18:00:21.993: E/AndroidRuntime(25419): at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.view.LayoutInflater.createView(LayoutInflater.java:594) 04-17 18:00:21.993: E/AndroidRuntime(25419): ... 21 more 04-17 18:00:21.993: E/AndroidRuntime(25419): Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.xwalk.core.ReflectionHelper.handleException(ReflectionHelper.java:233) 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.xwalk.core.ReflectionHelper.handleException(ReflectionHelper.java:237) 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.xwalk.core.ReflectionHelper.init(ReflectionHelper.java:132) 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.xwalk.core.ReflectionHelper.loadClass(ReflectionHelper.java:199) 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.xwalk.core.ReflectionHelper$ConstructorHelper.loadConstructor(ReflectionHelper.java:37) 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.xwalk.core.ReflectionHelper.createInstance(ReflectionHelper.java:246) 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.xwalk.core.XWalkView.<init>(XWalkView.java:169) 04-17 18:00:21.993: E/AndroidRuntime(25419): ... 24 more 04-17 18:00:21.993: E/AndroidRuntime(25419): Caused by: java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode 04-17 18:00:21.993: E/AndroidRuntime(25419): ... 30 more Reproduce Test Steps ==================== Expected Outcome ================ Actual Outcome ============== Test Case Source Code ===================== Test Builds =========== Issue Analysis ==============
    via by Snehasis,
  • Impacted Cases ============== Imported Cross Walk ARM Library on embaded Cross Walk Sample. For some lower Android 4.3 its working fine For a Device Android 4.4 or greater May be its Just opening the App and then Crashed with a lots of Error as below. 04-17 18:00:21.993: E/AndroidRuntime(25419): FATAL EXCEPTION: main 04-17 18:00:21.993: E/AndroidRuntime(25419): Process: org.crosswalkproject.xwalkembed, PID: 25419 04-17 18:00:21.993: E/AndroidRuntime(25419): java.lang.RuntimeException: Unable to start activity ComponentInfo{org.crosswalkproject.xwalkembed/org.crosswalkproject.xwalkembed.MainActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class org.xwalk.core.XWalkView 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2318) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2396) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.ActivityThread.access$800(ActivityThread.java:139) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1293) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.os.Handler.dispatchMessage(Handler.java:102) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.os.Looper.loop(Looper.java:149) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.ActivityThread.main(ActivityThread.java:5268) 04-17 18:00:21.993: E/AndroidRuntime(25419): at java.lang.reflect.Method.invokeNative(Native Method) 04-17 18:00:21.993: E/AndroidRuntime(25419): at java.lang.reflect.Method.invoke(Method.java:515) 04-17 18:00:21.993: E/AndroidRuntime(25419): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 04-17 18:00:21.993: E/AndroidRuntime(25419): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609) 04-17 18:00:21.993: E/AndroidRuntime(25419): at dalvik.system.NativeStart.main(Native Method) 04-17 18:00:21.993: E/AndroidRuntime(25419): Caused by: android.view.InflateException: Binary XML file line #1: Error inflating class org.xwalk.core.XWalkView 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.view.LayoutInflater.createView(LayoutInflater.java:620) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.view.LayoutInflater.inflate(LayoutInflater.java:469) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.view.LayoutInflater.inflate(LayoutInflater.java:397) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.view.LayoutInflater.inflate(LayoutInflater.java:353) 04-17 18:00:21.993: E/AndroidRuntime(25419): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:290) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.Activity.setContentView(Activity.java:2002) 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.crosswalkproject.xwalkembed.MainActivity.onCreate(MainActivity.java:17) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.Activity.performCreate(Activity.java:5411) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2270) 04-17 18:00:21.993: E/AndroidRuntime(25419): ... 11 more 04-17 18:00:21.993: E/AndroidRuntime(25419): Caused by: java.lang.reflect.InvocationTargetException 04-17 18:00:21.993: E/AndroidRuntime(25419): at java.lang.reflect.Constructor.constructNative(Native Method) 04-17 18:00:21.993: E/AndroidRuntime(25419): at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 04-17 18:00:21.993: E/AndroidRuntime(25419): at android.view.LayoutInflater.createView(LayoutInflater.java:594) 04-17 18:00:21.993: E/AndroidRuntime(25419): ... 21 more 04-17 18:00:21.993: E/AndroidRuntime(25419): Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.xwalk.core.ReflectionHelper.handleException(ReflectionHelper.java:233) 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.xwalk.core.ReflectionHelper.handleException(ReflectionHelper.java:237) 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.xwalk.core.ReflectionHelper.init(ReflectionHelper.java:132) 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.xwalk.core.ReflectionHelper.loadClass(ReflectionHelper.java:199) 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.xwalk.core.ReflectionHelper$ConstructorHelper.loadConstructor(ReflectionHelper.java:37) 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.xwalk.core.ReflectionHelper.createInstance(ReflectionHelper.java:246) 04-17 18:00:21.993: E/AndroidRuntime(25419): at org.xwalk.core.XWalkView.<init>(XWalkView.java:169) 04-17 18:00:21.993: E/AndroidRuntime(25419): ... 24 more 04-17 18:00:21.993: E/AndroidRuntime(25419): Caused by: java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode 04-17 18:00:21.993: E/AndroidRuntime(25419): ... 30 more Reproduce Test Steps ==================== Expected Outcome ================ Actual Outcome ============== Test Case Source Code ===================== Test Builds =========== Issue Analysis ==============
    via by Snehasis,
  • Impacted Cases ============== The application crashes Reproduce Test Steps ==================== When the application tries to inflate a ressource file that contain the crosswalk component The bug is not systematic Expected Outcome ================ Inflates the ressource Actual Outcome ============== I have this crash : Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.bureauveritas.mobile.maia.ppd/com.bureauveritas.mobile.maia.MainActivity}: android.view.InflateException: Binary XML file line #16: Error inflating class org.xwalk.core.XWalkView at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2404) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2464) at android.app.ActivityThread.access$900(ActivityThread.java:172) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1308) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:146) at android.app.ActivityThread.main(ActivityThread.java:5653) at java.lang.reflect.Method.invokeNative(Method.java) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107) at dalvik.system.NativeStart.main(NativeStart.java) Caused by android.view.InflateException: Binary XML file line #16: Error inflating class org.xwalk.core.XWalkView at android.view.LayoutInflater.createView(LayoutInflater.java:626) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:702) at android.view.LayoutInflater.rInflate(LayoutInflater.java:761) at android.view.LayoutInflater.inflate(LayoutInflater.java:498) at android.view.LayoutInflater.inflate(LayoutInflater.java:398) at .. at android.support.v4.app.Fragment.performCreateView(Fragment.java:2087) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1113) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1295) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1277) at android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:2154) at android.support.v4.app.FragmentController.dispatchActivityCreated(FragmentController.java:201) at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:603) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1177) at android.app.Activity.performStart(Activity.java:5551) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2377) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2464) at android.app.ActivityThread.access$900(ActivityThread.java:172) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1308) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:146) at android.app.ActivityThread.main(ActivityThread.java:5653) at java.lang.reflect.Method.invokeNative(Method.java) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107) at dalvik.system.NativeStart.main(NativeStart.java) Caused by java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.constructNative(Constructor.java) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at android.view.LayoutInflater.createView(LayoutInflater.java:600) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:702) at android.view.LayoutInflater.rInflate(LayoutInflater.java:761) at android.view.LayoutInflater.inflate(LayoutInflater.java:498) at android.view.LayoutInflater.inflate(LayoutInflater.java:398) at ... at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:603) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1177) at android.app.Activity.performStart(Activity.java:5551) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2377) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2464) at android.app.ActivityThread.access$900(ActivityThread.java:172) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1308) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:146) at android.app.ActivityThread.main(ActivityThread.java:5653) at java.lang.reflect.Method.invokeNative(Method.java) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107) at dalvik.system.NativeStart.main(NativeStart.java) Caused by java.lang.RuntimeException: Please have your activity extend XWalkActivity for shared mode at org.xwalk.core.XWalkCoreWrapper.initEmbeddedMode(XWalkCoreWrapper.java:224) at org.xwalk.core.XWalkView.reflectionInit(XWalkView.java:1854) at org.xwalk.core.XWalkView.<init>(XWalkView.java:305) at java.lang.reflect.Constructor.constructNative(Constructor.java) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at android.view.LayoutInflater.createView(LayoutInflater.java:600) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:702) at android.view.LayoutInflater.rInflate(LayoutInflater.java:761) at android.view.LayoutInflater.inflate(LayoutInflater.java:498) at android.view.LayoutInflater.inflate(LayoutInflater.java:398) Test Case Source Code ===================== Test Builds =========== Issue Analysis ==============
    via by Mohamed Reda,
    • java.lang.RuntimeException: java.lang.NullPointerException at org.xwalk.core.ReflectConstructor.newInstance(ReflectConstructor.java:54) at org.xwalk.core.XWalkView.reflectionInit(XWalkView.java:732) at org.xwalk.core.XWalkView.<init>(XWalkView.java:211)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,