java.lang.RuntimeException: java.lang.NullPointerException

JIRA | Yashash Agarwal | 1 year ago
  1. 0

    How does one inflate XWalkView in an XML layout (or programmatic)?

    Stack Overflow | 2 years ago
    java.lang.RuntimeException: java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode
  2. 0

    Crosswalk with Eclipse crashes

    Stack Overflow | 2 years ago | Qbul3kZ
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.crosswalktest/com.example.crosswalktest.MainActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class org.xwalk.core.XWalkView
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Spike in crashes last week

    GitHub | 1 year ago | secretrobotron
    java.lang.RuntimeException: Unable to start activity ComponentInfo{org.mozilla.webmaker/org.mozilla.webmaker.activity.Login}: java.lang.RuntimeException: java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode
  5. 0

    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 ==============

    JIRA | 2 years ago | Snehasis
    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

    1 unregistered visitors
    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

      java.lang.NullPointerException

      at org.xwalk.core.ReflectConstructor.newInstance()
    2. org.xwalk.core
      XWalkView.<init>
      1. org.xwalk.core.ReflectConstructor.newInstance(ReflectConstructor.java:54)
      2. org.xwalk.core.XWalkView.reflectionInit(XWalkView.java:732)
      3. org.xwalk.core.XWalkView.<init>(XWalkView.java:211)
      3 frames