java.lang.NullPointerException

JIRA | Raphael Kubo da Costa | 2 years ago
  1. 0

    [Pull request #3068|https://github.com/crosswalk-project/crosswalk/pull/3068] and its respective commit "Refactored shared mode and refined the interface" has introduced a regression that causes a random subset of the RuntimeClient and RuntimeEmbeddedClient tests to fail. The failures can be seen [here in the builder information|https://build.crosswalk-project.org/builders/Crosswalk%20Tests%20%28Android%20x86%29], but it only makes sense to look at the failures with [the Android x86 builder information|https://build.crosswalk-project.org/builders/Crosswalk%20Android-X86], as the latter has been suffering from disk space issues and some builds do not get processed by the machine running the device tests. The backtrace generally looks like this: {code} E/AndroidRuntime(32124): FATAL EXCEPTION: main E/AndroidRuntime(32124): java.lang.NullPointerException E/AndroidRuntime(32124): at org.xwalk.test.util.XWalkRuntimeClientTestGeneric$1.run(XWalkRuntimeClientTestGeneric.java:35) E/AndroidRuntime(32124): at android.app.Instrumentation$SyncRunnable.run(Instrumentation.java:1679) E/AndroidRuntime(32124): at android.os.Handler.handleCallback(Handler.java:756) E/AndroidRuntime(32124): at android.os.Handler.dispatchMessage(Handler.java:101) E/AndroidRuntime(32124): at android.os.Looper.loop(Looper.java:152) E/AndroidRuntime(32124): at android.app.ActivityThread.main(ActivityThread.java:5691) E/AndroidRuntime(32124): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(32124): at java.lang.reflect.Method.invoke(Method.java:511) E/AndroidRuntime(32124): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) E/AndroidRuntime(32124): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) E/AndroidRuntime(32124): at dalvik.system.NativeStart.main(Native Method) W/ActivityManager( 2175): Error in app org.xwalk.runtime.client.shell running instrumentation ComponentInfo{org.xwalk.runtime.client.test/android.test.InstrumentationTestRunner}: W/ActivityManager( 2175): java.lang.NullPointerException W/ActivityManager( 2175): java.lang.NullPointerException {code} [~whz] did mention something like this in his last comment in that pull request, but I do not see any follow-up to that. We need to get this fixed as soon as possible, as otherwise it is difficult to both update our M44 version as well as move to M45 in the future (we need all tests to be passing to verify that the updates to not introduce regressions).

    JIRA | 2 years ago | Raphael Kubo da Costa
    java.lang.NullPointerException
  2. 0

    [Pull request #3068|https://github.com/crosswalk-project/crosswalk/pull/3068] and its respective commit "Refactored shared mode and refined the interface" has introduced a regression that causes a random subset of the RuntimeClient and RuntimeEmbeddedClient tests to fail. The failures can be seen [here in the builder information|https://build.crosswalk-project.org/builders/Crosswalk%20Tests%20%28Android%20x86%29], but it only makes sense to look at the failures with [the Android x86 builder information|https://build.crosswalk-project.org/builders/Crosswalk%20Android-X86], as the latter has been suffering from disk space issues and some builds do not get processed by the machine running the device tests. The backtrace generally looks like this: {code} E/AndroidRuntime(32124): FATAL EXCEPTION: main E/AndroidRuntime(32124): java.lang.NullPointerException E/AndroidRuntime(32124): at org.xwalk.test.util.XWalkRuntimeClientTestGeneric$1.run(XWalkRuntimeClientTestGeneric.java:35) E/AndroidRuntime(32124): at android.app.Instrumentation$SyncRunnable.run(Instrumentation.java:1679) E/AndroidRuntime(32124): at android.os.Handler.handleCallback(Handler.java:756) E/AndroidRuntime(32124): at android.os.Handler.dispatchMessage(Handler.java:101) E/AndroidRuntime(32124): at android.os.Looper.loop(Looper.java:152) E/AndroidRuntime(32124): at android.app.ActivityThread.main(ActivityThread.java:5691) E/AndroidRuntime(32124): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(32124): at java.lang.reflect.Method.invoke(Method.java:511) E/AndroidRuntime(32124): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) E/AndroidRuntime(32124): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) E/AndroidRuntime(32124): at dalvik.system.NativeStart.main(Native Method) W/ActivityManager( 2175): Error in app org.xwalk.runtime.client.shell running instrumentation ComponentInfo{org.xwalk.runtime.client.test/android.test.InstrumentationTestRunner}: W/ActivityManager( 2175): java.lang.NullPointerException W/ActivityManager( 2175): java.lang.NullPointerException {code} [~whz] did mention something like this in his last comment in that pull request, but I do not see any follow-up to that. We need to get this fixed as soon as possible, as otherwise it is difficult to both update our M44 version as well as move to M45 in the future (we need all tests to be passing to verify that the updates to not introduce regressions).

    JIRA | 2 years ago | Raphael Kubo da Costa
    java.lang.NullPointerException
  3. 0

    [Pull request #3068|https://github.com/crosswalk-project/crosswalk/pull/3068] and its respective commit "Refactored shared mode and refined the interface" has introduced a regression that causes a random subset of the RuntimeClient and RuntimeEmbeddedClient tests to fail. The failures can be seen [here in the builder information|https://build.crosswalk-project.org/builders/Crosswalk%20Tests%20%28Android%20x86%29], but it only makes sense to look at the failures with [the Android x86 builder information|https://build.crosswalk-project.org/builders/Crosswalk%20Android-X86], as the latter has been suffering from disk space issues and some builds do not get processed by the machine running the device tests. The backtrace generally looks like this: {code} E/AndroidRuntime(32124): FATAL EXCEPTION: main E/AndroidRuntime(32124): java.lang.NullPointerException E/AndroidRuntime(32124): at org.xwalk.test.util.XWalkRuntimeClientTestGeneric$1.run(XWalkRuntimeClientTestGeneric.java:35) E/AndroidRuntime(32124): at android.app.Instrumentation$SyncRunnable.run(Instrumentation.java:1679) E/AndroidRuntime(32124): at android.os.Handler.handleCallback(Handler.java:756) E/AndroidRuntime(32124): at android.os.Handler.dispatchMessage(Handler.java:101) E/AndroidRuntime(32124): at android.os.Looper.loop(Looper.java:152) E/AndroidRuntime(32124): at android.app.ActivityThread.main(ActivityThread.java:5691) E/AndroidRuntime(32124): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(32124): at java.lang.reflect.Method.invoke(Method.java:511) E/AndroidRuntime(32124): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) E/AndroidRuntime(32124): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) E/AndroidRuntime(32124): at dalvik.system.NativeStart.main(Native Method) W/ActivityManager( 2175): Error in app org.xwalk.runtime.client.shell running instrumentation ComponentInfo{org.xwalk.runtime.client.test/android.test.InstrumentationTestRunner}: W/ActivityManager( 2175): java.lang.NullPointerException W/ActivityManager( 2175): java.lang.NullPointerException {code} [~whz] did mention something like this in his last comment in that pull request, but I do not see any follow-up to that. We need to get this fixed as soon as possible, as otherwise it is difficult to both update our M44 version as well as move to M45 in the future (we need all tests to be passing to verify that the updates to not introduce regressions).

    JIRA | 2 years ago | Raphael Kubo da Costa
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [Pull request #3068|https://github.com/crosswalk-project/crosswalk/pull/3068] and its respective commit "Refactored shared mode and refined the interface" has introduced a regression that causes a random subset of the RuntimeClient and RuntimeEmbeddedClient tests to fail. The failures can be seen [here in the builder information|https://build.crosswalk-project.org/builders/Crosswalk%20Tests%20%28Android%20x86%29], but it only makes sense to look at the failures with [the Android x86 builder information|https://build.crosswalk-project.org/builders/Crosswalk%20Android-X86], as the latter has been suffering from disk space issues and some builds do not get processed by the machine running the device tests. The backtrace generally looks like this: {code} E/AndroidRuntime(32124): FATAL EXCEPTION: main E/AndroidRuntime(32124): java.lang.NullPointerException E/AndroidRuntime(32124): at org.xwalk.test.util.XWalkRuntimeClientTestGeneric$1.run(XWalkRuntimeClientTestGeneric.java:35) E/AndroidRuntime(32124): at android.app.Instrumentation$SyncRunnable.run(Instrumentation.java:1679) E/AndroidRuntime(32124): at android.os.Handler.handleCallback(Handler.java:756) E/AndroidRuntime(32124): at android.os.Handler.dispatchMessage(Handler.java:101) E/AndroidRuntime(32124): at android.os.Looper.loop(Looper.java:152) E/AndroidRuntime(32124): at android.app.ActivityThread.main(ActivityThread.java:5691) E/AndroidRuntime(32124): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(32124): at java.lang.reflect.Method.invoke(Method.java:511) E/AndroidRuntime(32124): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) E/AndroidRuntime(32124): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) E/AndroidRuntime(32124): at dalvik.system.NativeStart.main(Native Method) W/ActivityManager( 2175): Error in app org.xwalk.runtime.client.shell running instrumentation ComponentInfo{org.xwalk.runtime.client.test/android.test.InstrumentationTestRunner}: W/ActivityManager( 2175): java.lang.NullPointerException W/ActivityManager( 2175): java.lang.NullPointerException {code} [~whz] did mention something like this in his last comment in that pull request, but I do not see any follow-up to that. We need to get this fixed as soon as possible, as otherwise it is difficult to both update our M44 version as well as move to M45 in the future (we need all tests to be passing to verify that the updates to not introduce regressions).

    JIRA | 2 years ago | Raphael Kubo da Costa
    java.lang.NullPointerException
  6. 0

    XWalkCoreTest, XWalkRuntimeClientEmbeddedTest, XWalkRuntimeClientTest and XWalkMakeApkTest are crashing with latest rebase of M44. Here's the stack trace for one of the errors, XWalkCoreTest: E/AndroidRuntime( 2669): FATAL EXCEPTION: main E/AndroidRuntime( 2669): Process: org.xwalk.core.xwview.shell, PID: 2669 E/AndroidRuntime( 2669): junit.framework.AssertionFailedError: Please extend XWalkActivity for shared mode E/AndroidRuntime( 2669): at junit.framework.Assert.fail(Assert.java:50) E/AndroidRuntime( 2669): at org.xwalk.core.XWalkCoreWrapper.initEmbeddedMode(XWalkCoreWrapper.java:111) E/AndroidRuntime( 2669): at org.xwalk.core.XWalkView.reflectionInit(XWalkView.java:667) E/AndroidRuntime( 2669): at org.xwalk.core.XWalkView.<init>(XWalkView.java:209) E/AndroidRuntime( 2669): at org.xwalk.core.xwview.test.XWalkViewTestBase$3.run(XWalkViewTestBase.java:197) E/AndroidRuntime( 2669): at android.app.Instrumentation$SyncRunnable.run(Instrumentation.java:1871) E/AndroidRuntime( 2669): at android.os.Handler.handleCallback(Handler.java:739) E/AndroidRuntime( 2669): at android.os.Handler.dispatchMessage(Handler.java:95) E/AndroidRuntime( 2669): at android.os.Looper.loop(Looper.java:135) E/AndroidRuntime( 2669): at android.app.ActivityThread.main(ActivityThread.java:5257) E/AndroidRuntime( 2669): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime( 2669): at java.lang.reflect.Method.invoke(Method.java:372) E/AndroidRuntime( 2669): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) E/AndroidRuntime( 2669): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) XWalkCoreClientEmbeddedTest: E/AndroidRuntime( 2242): FATAL EXCEPTION: main E/AndroidRuntime( 2242): Process: org.xwalk.runtime.client.embedded.shell, PID: 2242 E/AndroidRuntime( 2242): java.lang.NullPointerException: Attempt to invoke virtual method 'void org.xwalk.app.runtime.XWalkRuntimeView.setCallbackForTest(java.lang.Object)' on a null object reference E/AndroidRuntime( 2242): at org.xwalk.test.util.XWalkRuntimeClientTestGeneric$1.run(XWalkRuntimeClientTestGeneric.java:35) E/AndroidRuntime( 2242): at android.app.Instrumentation$SyncRunnable.run(Instrumentation.java:1871) E/AndroidRuntime( 2242): at android.os.Handler.handleCallback(Handler.java:739) E/AndroidRuntime( 2242): at android.os.Handler.dispatchMessage(Handler.java:95) E/AndroidRuntime( 2242): at android.os.Looper.loop(Looper.java:135) E/AndroidRuntime( 2242): at android.app.ActivityThread.main(ActivityThread.java:5257) E/AndroidRuntime( 2242): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime( 2242): at java.lang.reflect.Method.invoke(Method.java:372) E/AndroidRuntime( 2242): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) E/AndroidRuntime( 2242): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) W/ActivityManager( 1234): Error in app org.xwalk.runtime.client.embedded.shell running instrumentation ComponentInfo{org.xwalk.runtime.client.embedded.test/android.test.InstrumentationTestRunner}: W/ActivityManager( 1234): java.lang.NullPointerException W/ActivityManager( 1234): java.lang.NullPointerException: Attempt to invoke virtual method 'void org.xwalk.app.runtime.XWalkRuntimeView.setCallbackForTest(java.lang.Object)' on a null object reference Other errors, E/AndroidRuntime(19537): FATAL EXCEPTION: main E/AndroidRuntime(19537): Process: org.xwalk.core.xwview.shell, PID: 19537 E/AndroidRuntime(19537): java.lang.UnsupportedOperationException: setResourceClient E/AndroidRuntime(19537): at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:57) E/AndroidRuntime(19537): at org.xwalk.core.XWalkView.setResourceClient(XWalkView.java:544) E/AndroidRuntime(19537): at org.xwalk.core.xwview.shell.XWalkViewShellActivity.initializeXWalkViewClients(XWalkViewShellActivity.java:287) E/AndroidRuntime(19537): at org.xwalk.core.xwview.shell.XWalkViewShellActivity.onXWalkViewCreated(XWalkViewShellActivity.java:365) E/AndroidRuntime(19537): at org.xwalk.core.xwview.shell.XWalkViewSectionFragment.onCreateView(XWalkViewSectionFragment.java:42) E/AndroidRuntime(19537): at android.app.Fragment.performCreateView(Fragment.java:2053) E/AndroidRuntime(19537): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:894) E/AndroidRuntime(19537): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067) E/AndroidRuntime(19537): at android.app.BackStackRecord.run(BackStackRecord.java:834) E/AndroidRuntime(19537): at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1452) E/AndroidRuntime(19537): at android.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:483) E/AndroidRuntime(19537): at android.support.v13.app.FragmentPagerAdapter.finishUpdate(FragmentPagerAdapter.java:145) E/AndroidRuntime(19537): at android.support.v4.view.ViewPager.populate(ViewPager.java:1072) E/AndroidRuntime(19537): at android.support.v4.view.ViewPager.populate(ViewPager.java:918) E/AndroidRuntime(19537): at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1440) E/AndroidRuntime(19537): at android.view.View.measure(View.java:17547) E/AndroidRuntime(19537): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535) E/AndroidRuntime(19537): at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436) E/AndroidRuntime(19537): at android.widget.LinearLayout.measureVertical(LinearLayout.java:722) E/AndroidRuntime(19537): at android.widget.LinearLayout.onMeasure(LinearLayout.java:613) E/AndroidRuntime(19537): at android.view.View.measure(View.java:17547) E/AndroidRuntime(19537): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535) E/AndroidRuntime(19537): at android.widget.FrameLayout.onMeasure(FrameLayout.java:436) E/AndroidRuntime(19537): at android.view.View.measure(View.java:17547) E/AndroidRuntime(19537): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535) E/AndroidRuntime(19537): at com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:447) E/AndroidRuntime(19537): at android.view.View.measure(View.java:17547) E/AndroidRuntime(19537): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535) E/AndroidRuntime(19537): at android.widget.FrameLayout.onMeasure(FrameLayout.java:436) E/AndroidRuntime(19537): at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2615) E/AndroidRuntime(19537): at android.view.View.measure(View.java:17547) E/AndroidRuntime(19537): at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2015) E/AndroidRuntime(19537): at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1173) E/AndroidRuntime(19537): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1379) E/AndroidRuntime(19537): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1061) E/AndroidRuntime(19537): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5885) E/AndroidRuntime(19537): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767) E/AndroidRuntime(19537): at android.view.Choreographer.doCallbacks(Choreographer.java:580) E/AndroidRuntime(19537): at android.view.Choreographer.doFrame(Choreographer.java:550) E/AndroidRuntime(19537): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753) E/AndroidRuntime(19537): at android.os.Handler.handleCallback(Handler.java:739) E/AndroidRuntime(19537): at android.os.Handler.dispatchMessage(Handler.java:95) E/AndroidRuntime(19537): at android.os.Looper.loop(Looper.java:135) E/AndroidRuntime(19537): at android.app.ActivityThread.main(ActivityThread.java:5258) E/AndroidRuntime(19537): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime(19537): at java.lang.reflect.Method.invoke(Method.java:372) E/AndroidRuntime(19537): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) E/AndroidRuntime(19537): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

    JIRA | 2 years ago | Mrunal Kapade
    java.lang.NullPointerException: Attempt to invoke virtual method 'void org.xwalk.app.runtime.XWalkRuntimeView.setCallbackForTest(java.lang.Object)' 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.NullPointerException

      No message provided

      at org.xwalk.test.util.XWalkRuntimeClientTestGeneric$1.run()
    2. org.xwalk.test
      XWalkRuntimeClientTestGeneric$1.run
      1. org.xwalk.test.util.XWalkRuntimeClientTestGeneric$1.run(XWalkRuntimeClientTestGeneric.java:35)
      1 frame
    3. Android Platform
      ActivityThread.main
      1. android.app.Instrumentation$SyncRunnable.run(Instrumentation.java:1679)
      2. android.os.Handler.handleCallback(Handler.java:756)
      3. android.os.Handler.dispatchMessage(Handler.java:101)
      4. android.os.Looper.loop(Looper.java:152)
      5. android.app.ActivityThread.main(ActivityThread.java:5691)
      5 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:511)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
      2 frames
    6. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame