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.

  • 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}
    via by Rick Blalock,
  • 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}
    via by Rick Blalock,
    • java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appc.tests/com.appc.tests.AndroidTestsActivity}: java.lang.NullPointerException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1622) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1638) at android.app.ActivityThread.access$1500(ActivityThread.java:117) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:928) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:3647) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException at com.android.internal.policy.impl.PhoneWindow.getCircularProgressBar(PhoneWindow.java:2460) at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2215) at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:2261) at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:222) at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:216) at android.app.Activity.setContentView(Activity.java:1668) at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:434) at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:162) at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:99) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1586)
    No Bugmate found.