java.lang.NullPointerException

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.

  • [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).
    via by Raphael Kubo da Costa,
  • [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).
    via by Raphael Kubo da Costa,
  • [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).
    via by Raphael Kubo da Costa,
  • [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).
    via by Raphael Kubo da Costa,
  • 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)
    via by Mrunal Kapade,
    • java.lang.NullPointerException at org.xwalk.test.util.XWalkRuntimeClientTestGeneric$1.run(XWalkRuntimeClientTestGeneric.java:35) at android.app.Instrumentation$SyncRunnable.run(Instrumentation.java:1679) at android.os.Handler.handleCallback(Handler.java:756) at android.os.Handler.dispatchMessage(Handler.java:101) at android.os.Looper.loop(Looper.java:152) at android.app.ActivityThread.main(ActivityThread.java:5691) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) at dalvik.system.NativeStart.main(Native Method)
    No Bugmate found.