java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appc.tests/com.appc.tests.AndroidTestsActivity}: java.lang.NullPointerException

Appcelerator JIRA | Rick Blalock | 4 years ago
  1. 0

    The attached code uses a transparent theme. It crashes on 2.3 and below but works on 4.0+. Trace: {code} [ERROR][TiApplication( 373)] (KrollRuntimeThread) [3535,3535] APP PROXY: ti.modules.titanium.app.AppModule@405d5da0 [WARN][V8Object( 373)] Runtime disposed, cannot set property 'userAgent' [DEBUG][dalvikvm( 373)] GREF has increased to 201 [DEBUG][TiAssetHelper( 373)] Fetching "app.js" with Fastdev... [INFO][ActivityManager( 62)] Starting: Intent { cmp=com.appc.tests/org.appcelerator.titanium.TiActivity (has extras) } from pid 373 [DEBUG][AndroidRuntime( 373)] Shutting down VM [WARN][dalvikvm( 373)] threadid=1: thread exiting with uncaught exception (group=0x40015560) [ERROR][TiApplication( 373)] (main) [809,4344] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appc.tests/com.appc.tests.AndroidTestsActivity}: java.lang.NullPointerException; Titanium 2.1.0,2012/06/28 12:16,6e3cab6 [ERROR][TiApplication( 373)] java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appc.tests/com.appc.tests.AndroidTestsActivity}: java.lang.NullPointerException [ERROR][TiApplication( 373)] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1622) [ERROR][TiApplication( 373)] at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1638) [ERROR][TiApplication( 373)] at android.app.ActivityThread.access$1500(ActivityThread.java:117) [ERROR][TiApplication( 373)] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:928) [ERROR][TiApplication( 373)] at android.os.Handler.dispatchMessage(Handler.java:99) [ERROR][TiApplication( 373)] at android.os.Looper.loop(Looper.java:123) [ERROR][TiApplication( 373)] at android.app.ActivityThread.main(ActivityThread.java:3647) [ERROR][TiApplication( 373)] at java.lang.reflect.Method.invokeNative(Native Method) [ERROR][TiApplication( 373)] at java.lang.reflect.Method.invoke(Method.java:507) [ERROR][TiApplication( 373)] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) [ERROR][TiApplication( 373)] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) [ERROR][TiApplication( 373)] at dalvik.system.NativeStart.main(Native Method) [ERROR][TiApplication( 373)] Caused by: java.lang.NullPointerException [ERROR][TiApplication( 373)] at com.android.internal.policy.impl.PhoneWindow.getCircularProgressBar(PhoneWindow.java:2460) [ERROR][TiApplication( 373)] at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2215) [ERROR][TiApplication( 373)] at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:2261) [ERROR][TiApplication( 373)] at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:222) [ERROR][TiApplication( 373)] at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:216) [ERROR][TiApplication( 373)] at android.app.Activity.setContentView(Activity.java:1668) [ERROR][TiApplication( 373)] at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:434) [ERROR][TiApplication( 373)] at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:162) [ERROR][TiApplication( 373)] at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:99) [ERROR][TiApplication( 373)] at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) [ERROR][TiApplication( 373)] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1586) [ERROR][TiApplication( 373)] ... 11 more [ERROR][AndroidRuntime( 373)] FATAL EXCEPTION: main [ERROR][AndroidRuntime( 373)] java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appc.tests/com.appc.tests.AndroidTestsActivity}: java.lang.NullPointerException [ERROR][AndroidRuntime( 373)] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1622) [ERROR][AndroidRuntime( 373)] at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1638) [ERROR][AndroidRuntime( 373)] at android.app.ActivityThread.access$1500(ActivityThread.java:117) [ERROR][AndroidRuntime( 373)] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:928) [ERROR][AndroidRuntime( 373)] at android.os.Handler.dispatchMessage(Handler.java:99) [ERROR][AndroidRuntime( 373)] at android.os.Looper.loop(Looper.java:123) [ERROR][AndroidRuntime( 373)] at android.app.ActivityThread.main(ActivityThread.java:3647) [ERROR][AndroidRuntime( 373)] at java.lang.reflect.Method.invokeNative(Native Method) [ERROR][AndroidRuntime( 373)] at java.lang.reflect.Method.invoke(Method.java:507) [ERROR][AndroidRuntime( 373)] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) [ERROR][AndroidRuntime( 373)] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) [ERROR][AndroidRuntime( 373)] at dalvik.system.NativeStart.main(Native Method) [ERROR][AndroidRuntime( 373)] Caused by: java.lang.NullPointerException [ERROR][AndroidRuntime( 373)] at com.android.internal.policy.impl.PhoneWindow.getCircularProgressBar(PhoneWindow.java:2460) [ERROR][AndroidRuntime( 373)] at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2215) [ERROR][AndroidRuntime( 373)] at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:2261) [ERROR][AndroidRuntime( 373)] at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:222) [ERROR][AndroidRuntime( 373)] at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:216) [ERROR][AndroidRuntime( 373)] at android.app.Activity.setContentView(Activity.java:1668) [ERROR][AndroidRuntime( 373)] at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:434) [ERROR][AndroidRuntime( 373)] at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:162) [ERROR][AndroidRuntime( 373)] at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:99) [ERROR][AndroidRuntime( 373)] at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) [ERROR][AndroidRuntime( 373)] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1586) {code}

    Appcelerator JIRA | 4 years ago | Rick Blalock
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appc.tests/com.appc.tests.AndroidTestsActivity}: java.lang.NullPointerException
  2. 0

    The attached code uses a transparent theme. It crashes on 2.3 and below but works on 4.0+. Trace: {code} [ERROR][TiApplication( 373)] (KrollRuntimeThread) [3535,3535] APP PROXY: ti.modules.titanium.app.AppModule@405d5da0 [WARN][V8Object( 373)] Runtime disposed, cannot set property 'userAgent' [DEBUG][dalvikvm( 373)] GREF has increased to 201 [DEBUG][TiAssetHelper( 373)] Fetching "app.js" with Fastdev... [INFO][ActivityManager( 62)] Starting: Intent { cmp=com.appc.tests/org.appcelerator.titanium.TiActivity (has extras) } from pid 373 [DEBUG][AndroidRuntime( 373)] Shutting down VM [WARN][dalvikvm( 373)] threadid=1: thread exiting with uncaught exception (group=0x40015560) [ERROR][TiApplication( 373)] (main) [809,4344] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appc.tests/com.appc.tests.AndroidTestsActivity}: java.lang.NullPointerException; Titanium 2.1.0,2012/06/28 12:16,6e3cab6 [ERROR][TiApplication( 373)] java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appc.tests/com.appc.tests.AndroidTestsActivity}: java.lang.NullPointerException [ERROR][TiApplication( 373)] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1622) [ERROR][TiApplication( 373)] at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1638) [ERROR][TiApplication( 373)] at android.app.ActivityThread.access$1500(ActivityThread.java:117) [ERROR][TiApplication( 373)] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:928) [ERROR][TiApplication( 373)] at android.os.Handler.dispatchMessage(Handler.java:99) [ERROR][TiApplication( 373)] at android.os.Looper.loop(Looper.java:123) [ERROR][TiApplication( 373)] at android.app.ActivityThread.main(ActivityThread.java:3647) [ERROR][TiApplication( 373)] at java.lang.reflect.Method.invokeNative(Native Method) [ERROR][TiApplication( 373)] at java.lang.reflect.Method.invoke(Method.java:507) [ERROR][TiApplication( 373)] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) [ERROR][TiApplication( 373)] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) [ERROR][TiApplication( 373)] at dalvik.system.NativeStart.main(Native Method) [ERROR][TiApplication( 373)] Caused by: java.lang.NullPointerException [ERROR][TiApplication( 373)] at com.android.internal.policy.impl.PhoneWindow.getCircularProgressBar(PhoneWindow.java:2460) [ERROR][TiApplication( 373)] at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2215) [ERROR][TiApplication( 373)] at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:2261) [ERROR][TiApplication( 373)] at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:222) [ERROR][TiApplication( 373)] at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:216) [ERROR][TiApplication( 373)] at android.app.Activity.setContentView(Activity.java:1668) [ERROR][TiApplication( 373)] at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:434) [ERROR][TiApplication( 373)] at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:162) [ERROR][TiApplication( 373)] at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:99) [ERROR][TiApplication( 373)] at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) [ERROR][TiApplication( 373)] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1586) [ERROR][TiApplication( 373)] ... 11 more [ERROR][AndroidRuntime( 373)] FATAL EXCEPTION: main [ERROR][AndroidRuntime( 373)] java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appc.tests/com.appc.tests.AndroidTestsActivity}: java.lang.NullPointerException [ERROR][AndroidRuntime( 373)] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1622) [ERROR][AndroidRuntime( 373)] at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1638) [ERROR][AndroidRuntime( 373)] at android.app.ActivityThread.access$1500(ActivityThread.java:117) [ERROR][AndroidRuntime( 373)] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:928) [ERROR][AndroidRuntime( 373)] at android.os.Handler.dispatchMessage(Handler.java:99) [ERROR][AndroidRuntime( 373)] at android.os.Looper.loop(Looper.java:123) [ERROR][AndroidRuntime( 373)] at android.app.ActivityThread.main(ActivityThread.java:3647) [ERROR][AndroidRuntime( 373)] at java.lang.reflect.Method.invokeNative(Native Method) [ERROR][AndroidRuntime( 373)] at java.lang.reflect.Method.invoke(Method.java:507) [ERROR][AndroidRuntime( 373)] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) [ERROR][AndroidRuntime( 373)] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) [ERROR][AndroidRuntime( 373)] at dalvik.system.NativeStart.main(Native Method) [ERROR][AndroidRuntime( 373)] Caused by: java.lang.NullPointerException [ERROR][AndroidRuntime( 373)] at com.android.internal.policy.impl.PhoneWindow.getCircularProgressBar(PhoneWindow.java:2460) [ERROR][AndroidRuntime( 373)] at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2215) [ERROR][AndroidRuntime( 373)] at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:2261) [ERROR][AndroidRuntime( 373)] at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:222) [ERROR][AndroidRuntime( 373)] at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:216) [ERROR][AndroidRuntime( 373)] at android.app.Activity.setContentView(Activity.java:1668) [ERROR][AndroidRuntime( 373)] at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:434) [ERROR][AndroidRuntime( 373)] at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:162) [ERROR][AndroidRuntime( 373)] at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:99) [ERROR][AndroidRuntime( 373)] at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) [ERROR][AndroidRuntime( 373)] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1586) {code}

    Appcelerator JIRA | 4 years ago | Rick Blalock
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appc.tests/com.appc.tests.AndroidTestsActivity}: java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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 com.android.internal.policy.impl.PhoneWindow.getCircularProgressBar()
    2. Android
      PhoneWindow.setContentView
      1. com.android.internal.policy.impl.PhoneWindow.getCircularProgressBar(PhoneWindow.java:2460)
      2. com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2215)
      3. com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:2261)
      4. com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:222)
      5. com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:216)
      5 frames
    3. Android Platform
      Activity.setContentView
      1. android.app.Activity.setContentView(Activity.java:1668)
      1 frame
    4. org.appcelerator.titanium
      TiRootActivity.onCreate
      1. org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:434)
      2. org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:162)
      3. org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:99)
      3 frames
    5. Android Platform
      ActivityThread.performLaunchActivity
      1. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
      2. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1586)
      2 frames