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.

  • h4. Problem Description App is crashing when you close the tabgroup. h4. Expected results The tabgroup closing. h4. Actual results The app showing an error "the app has stopped unexpectedly". We got more info in DDMS, please check the "Extra info" field at the bottom of this report. h4. Test Case 1. Create new mobile project. 2. Add this app.js: {code} var tabGroup = Titanium.UI.createTabGroup(); var win1 = Titanium.UI.createWindow({ title:'Tab 1', }); var tab1 = Titanium.UI.createTab({ icon:'KS_nav_views.png', title:'Tab 1', window:win1 }); var label1 = Titanium.UI.createLabel({ color:'#999', text:'I am Window 1', textAlign:'center', width:'auto' }); win1.add(label1); var win2 = Titanium.UI.createWindow({ title:'Tab 2', backgroundColor:'#fff' }); var tab2 = Titanium.UI.createTab({ icon:'KS_nav_ui.png', title:'Tab 2', window:win2 }); var label2 = Titanium.UI.createLabel({ color:'#999', text:'I am Window 2', textAlign:'center', width:'auto' }); win2.add(label2); tabGroup.addTab(tab1); tabGroup.addTab(tab2); tabGroup.open(); tabGroup.close(); {code} h4. Extra info This same code is working fine in iOS and Mobile Web. The DDMS output related to the crash, here: {code} 06-28 15:50:30.827: E/TiApplication(4914): (main) [51,624] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.negoapps.ingtesttabgroup/com.negoapps.ingtesttabgroup.IngtesttabgroupActivity}: java.lang.NullPointerException; Titanium 2.1.0,2012/06/28 11:42,c6b7897 06-28 15:50:30.827: E/TiApplication(4914): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.negoapps.ingtesttabgroup/com.negoapps.ingtesttabgroup.IngtesttabgroupActivity}: java.lang.NullPointerException 06-28 15:50:30.827: E/TiApplication(4914): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647) 06-28 15:50:30.827: E/TiApplication(4914): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663) 06-28 15:50:30.827: E/TiApplication(4914): at android.app.ActivityThread.access$1500(ActivityThread.java:117) 06-28 15:50:30.827: E/TiApplication(4914): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931) 06-28 15:50:30.827: E/TiApplication(4914): at android.os.Handler.dispatchMessage(Handler.java:99) 06-28 15:50:30.827: E/TiApplication(4914): at android.os.Looper.loop(Looper.java:130) 06-28 15:50:30.827: E/TiApplication(4914): at android.app.ActivityThread.main(ActivityThread.java:3683) 06-28 15:50:30.827: E/TiApplication(4914): at java.lang.reflect.Method.invokeNative(Native Method) 06-28 15:50:30.827: E/TiApplication(4914): at java.lang.reflect.Method.invoke(Method.java:507) 06-28 15:50:30.827: E/TiApplication(4914): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:850) 06-28 15:50:30.827: E/TiApplication(4914): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608) 06-28 15:50:30.827: E/TiApplication(4914): at dalvik.system.NativeStart.main(Native Method) 06-28 15:50:30.827: E/TiApplication(4914): Caused by: java.lang.NullPointerException 06-28 15:50:30.827: E/TiApplication(4914): at ti.modules.titanium.ui.TabGroupProxy.handleClose(TabGroupProxy.java:322) 06-28 15:50:30.827: E/TiApplication(4914): at org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(TiWindowProxy.java:106) 06-28 15:50:30.827: E/TiApplication(4914): at ti.modules.titanium.ui.TabGroupProxy.handleMessage(TabGroupProxy.java:98) 06-28 15:50:30.827: E/TiApplication(4914): at android.os.Handler.dispatchMessage(Handler.java:95) 06-28 15:50:30.827: E/TiApplication(4914): at org.appcelerator.kroll.common.TiMessenger.dispatchMessage(TiMessenger.java:365) 06-28 15:50:30.827: E/TiApplication(4914): at org.appcelerator.kroll.common.TiMessenger.dispatchPendingMessages(TiMessenger.java:350) 06-28 15:50:30.827: E/TiApplication(4914): at org.appcelerator.kroll.common.TiMessenger$2.getResult(TiMessenger.java:235) 06-28 15:50:30.827: E/TiApplication(4914): at org.appcelerator.kroll.common.TiMessenger.sendBlockingMessage(TiMessenger.java:262) 06-28 15:50:30.827: E/TiApplication(4914): at org.appcelerator.kroll.common.TiMessenger.sendBlockingRuntimeMessage(TiMessenger.java:187) 06-28 15:50:30.827: E/TiApplication(4914): at org.appcelerator.kroll.KrollProxy.fireSyncEvent(KrollProxy.java:605) 06-28 15:50:30.827: E/TiApplication(4914): at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:428) 06-28 15:50:30.827: E/TiApplication(4914): at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:162) 06-28 15:50:30.827: E/TiApplication(4914): at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:99) 06-28 15:50:30.827: E/TiApplication(4914): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 06-28 15:50:30.827: E/TiApplication(4914): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611) 06-28 15:50:30.827: E/TiApplication(4914): ... 11 more 06-28 15:50:30.928: E/AndroidRuntime(4914): FATAL EXCEPTION: main 06-28 15:50:30.928: E/AndroidRuntime(4914): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.negoapps.ingtesttabgroup/com.negoapps.ingtesttabgroup.IngtesttabgroupActivity}: java.lang.NullPointerException 06-28 15:50:30.928: E/AndroidRuntime(4914): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647) 06-28 15:50:30.928: E/AndroidRuntime(4914): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663) 06-28 15:50:30.928: E/AndroidRuntime(4914): at android.app.ActivityThread.access$1500(ActivityThread.java:117) 06-28 15:50:30.928: E/AndroidRuntime(4914): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931) 06-28 15:50:30.928: E/AndroidRuntime(4914): at android.os.Handler.dispatchMessage(Handler.java:99) 06-28 15:50:30.928: E/AndroidRuntime(4914): at android.os.Looper.loop(Looper.java:130) 06-28 15:50:30.928: E/AndroidRuntime(4914): at android.app.ActivityThread.main(ActivityThread.java:3683) 06-28 15:50:30.928: E/AndroidRuntime(4914): at java.lang.reflect.Method.invokeNative(Native Method) 06-28 15:50:30.928: E/AndroidRuntime(4914): at java.lang.reflect.Method.invoke(Method.java:507) 06-28 15:50:30.928: E/AndroidRuntime(4914): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:850) 06-28 15:50:30.928: E/AndroidRuntime(4914): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608) 06-28 15:50:30.928: E/AndroidRuntime(4914): at dalvik.system.NativeStart.main(Native Method) 06-28 15:50:30.928: E/AndroidRuntime(4914): Caused by: java.lang.NullPointerException 06-28 15:50:30.928: E/AndroidRuntime(4914): at ti.modules.titanium.ui.TabGroupProxy.handleClose(TabGroupProxy.java:322) 06-28 15:50:30.928: E/AndroidRuntime(4914): at org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(TiWindowProxy.java:106) 06-28 15:50:30.928: E/AndroidRuntime(4914): at ti.modules.titanium.ui.TabGroupProxy.handleMessage(TabGroupProxy.java:98) 06-28 15:50:30.928: E/AndroidRuntime(4914): at android.os.Handler.dispatchMessage(Handler.java:95) 06-28 15:50:30.928: E/AndroidRuntime(4914): at org.appcelerator.kroll.common.TiMessenger.dispatchMessage(TiMessenger.java:365) 06-28 15:50:30.928: E/AndroidRuntime(4914): at org.appcelerator.kroll.common.TiMessenger.dispatchPendingMessages(TiMessenger.java:350) 06-28 15:50:30.928: E/AndroidRuntime(4914): at org.appcelerator.kroll.common.TiMessenger$2.getResult(TiMessenger.java:235) 06-28 15:50:30.928: E/AndroidRuntime(4914): at org.appcelerator.kroll.common.TiMessenger.sendBlockingMessage(TiMessenger.java:262) 06-28 15:50:30.928: E/AndroidRuntime(4914): at org.appcelerator.kroll.common.TiMessenger.sendBlockingRuntimeMessage(TiMessenger.java:187) 06-28 15:50:30.928: E/AndroidRuntime(4914): at org.appcelerator.kroll.KrollProxy.fireSyncEvent(KrollProxy.java:605) 06-28 15:50:30.928: E/AndroidRuntime(4914): at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:428) 06-28 15:50:30.928: E/AndroidRuntime(4914): at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:162) 06-28 15:50:30.928: E/AndroidRuntime(4914): at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:99) 06-28 15:50:30.928: E/AndroidRuntime(4914): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 06-28 15:50:30.928: E/AndroidRuntime(4914): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611) 06-28 15:50:30.928: E/AndroidRuntime(4914): ... 11 more {code}
    via by Mauro Parra-Miranda,
  • h4. Problem Description App is crashing when you close the tabgroup. h4. Expected results The tabgroup closing. h4. Actual results The app showing an error "the app has stopped unexpectedly". We got more info in DDMS, please check the "Extra info" field at the bottom of this report. h4. Test Case 1. Create new mobile project. 2. Add this app.js: {code} var tabGroup = Titanium.UI.createTabGroup(); var win1 = Titanium.UI.createWindow({ title:'Tab 1', }); var tab1 = Titanium.UI.createTab({ icon:'KS_nav_views.png', title:'Tab 1', window:win1 }); var label1 = Titanium.UI.createLabel({ color:'#999', text:'I am Window 1', textAlign:'center', width:'auto' }); win1.add(label1); var win2 = Titanium.UI.createWindow({ title:'Tab 2', backgroundColor:'#fff' }); var tab2 = Titanium.UI.createTab({ icon:'KS_nav_ui.png', title:'Tab 2', window:win2 }); var label2 = Titanium.UI.createLabel({ color:'#999', text:'I am Window 2', textAlign:'center', width:'auto' }); win2.add(label2); tabGroup.addTab(tab1); tabGroup.addTab(tab2); tabGroup.open(); tabGroup.close(); {code} h4. Extra info This same code is working fine in iOS and Mobile Web. The DDMS output related to the crash, here: {code} 06-28 15:50:30.827: E/TiApplication(4914): (main) [51,624] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.negoapps.ingtesttabgroup/com.negoapps.ingtesttabgroup.IngtesttabgroupActivity}: java.lang.NullPointerException; Titanium 2.1.0,2012/06/28 11:42,c6b7897 06-28 15:50:30.827: E/TiApplication(4914): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.negoapps.ingtesttabgroup/com.negoapps.ingtesttabgroup.IngtesttabgroupActivity}: java.lang.NullPointerException 06-28 15:50:30.827: E/TiApplication(4914): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647) 06-28 15:50:30.827: E/TiApplication(4914): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663) 06-28 15:50:30.827: E/TiApplication(4914): at android.app.ActivityThread.access$1500(ActivityThread.java:117) 06-28 15:50:30.827: E/TiApplication(4914): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931) 06-28 15:50:30.827: E/TiApplication(4914): at android.os.Handler.dispatchMessage(Handler.java:99) 06-28 15:50:30.827: E/TiApplication(4914): at android.os.Looper.loop(Looper.java:130) 06-28 15:50:30.827: E/TiApplication(4914): at android.app.ActivityThread.main(ActivityThread.java:3683) 06-28 15:50:30.827: E/TiApplication(4914): at java.lang.reflect.Method.invokeNative(Native Method) 06-28 15:50:30.827: E/TiApplication(4914): at java.lang.reflect.Method.invoke(Method.java:507) 06-28 15:50:30.827: E/TiApplication(4914): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:850) 06-28 15:50:30.827: E/TiApplication(4914): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608) 06-28 15:50:30.827: E/TiApplication(4914): at dalvik.system.NativeStart.main(Native Method) 06-28 15:50:30.827: E/TiApplication(4914): Caused by: java.lang.NullPointerException 06-28 15:50:30.827: E/TiApplication(4914): at ti.modules.titanium.ui.TabGroupProxy.handleClose(TabGroupProxy.java:322) 06-28 15:50:30.827: E/TiApplication(4914): at org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(TiWindowProxy.java:106) 06-28 15:50:30.827: E/TiApplication(4914): at ti.modules.titanium.ui.TabGroupProxy.handleMessage(TabGroupProxy.java:98) 06-28 15:50:30.827: E/TiApplication(4914): at android.os.Handler.dispatchMessage(Handler.java:95) 06-28 15:50:30.827: E/TiApplication(4914): at org.appcelerator.kroll.common.TiMessenger.dispatchMessage(TiMessenger.java:365) 06-28 15:50:30.827: E/TiApplication(4914): at org.appcelerator.kroll.common.TiMessenger.dispatchPendingMessages(TiMessenger.java:350) 06-28 15:50:30.827: E/TiApplication(4914): at org.appcelerator.kroll.common.TiMessenger$2.getResult(TiMessenger.java:235) 06-28 15:50:30.827: E/TiApplication(4914): at org.appcelerator.kroll.common.TiMessenger.sendBlockingMessage(TiMessenger.java:262) 06-28 15:50:30.827: E/TiApplication(4914): at org.appcelerator.kroll.common.TiMessenger.sendBlockingRuntimeMessage(TiMessenger.java:187) 06-28 15:50:30.827: E/TiApplication(4914): at org.appcelerator.kroll.KrollProxy.fireSyncEvent(KrollProxy.java:605) 06-28 15:50:30.827: E/TiApplication(4914): at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:428) 06-28 15:50:30.827: E/TiApplication(4914): at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:162) 06-28 15:50:30.827: E/TiApplication(4914): at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:99) 06-28 15:50:30.827: E/TiApplication(4914): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 06-28 15:50:30.827: E/TiApplication(4914): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611) 06-28 15:50:30.827: E/TiApplication(4914): ... 11 more 06-28 15:50:30.928: E/AndroidRuntime(4914): FATAL EXCEPTION: main 06-28 15:50:30.928: E/AndroidRuntime(4914): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.negoapps.ingtesttabgroup/com.negoapps.ingtesttabgroup.IngtesttabgroupActivity}: java.lang.NullPointerException 06-28 15:50:30.928: E/AndroidRuntime(4914): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647) 06-28 15:50:30.928: E/AndroidRuntime(4914): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663) 06-28 15:50:30.928: E/AndroidRuntime(4914): at android.app.ActivityThread.access$1500(ActivityThread.java:117) 06-28 15:50:30.928: E/AndroidRuntime(4914): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931) 06-28 15:50:30.928: E/AndroidRuntime(4914): at android.os.Handler.dispatchMessage(Handler.java:99) 06-28 15:50:30.928: E/AndroidRuntime(4914): at android.os.Looper.loop(Looper.java:130) 06-28 15:50:30.928: E/AndroidRuntime(4914): at android.app.ActivityThread.main(ActivityThread.java:3683) 06-28 15:50:30.928: E/AndroidRuntime(4914): at java.lang.reflect.Method.invokeNative(Native Method) 06-28 15:50:30.928: E/AndroidRuntime(4914): at java.lang.reflect.Method.invoke(Method.java:507) 06-28 15:50:30.928: E/AndroidRuntime(4914): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:850) 06-28 15:50:30.928: E/AndroidRuntime(4914): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608) 06-28 15:50:30.928: E/AndroidRuntime(4914): at dalvik.system.NativeStart.main(Native Method) 06-28 15:50:30.928: E/AndroidRuntime(4914): Caused by: java.lang.NullPointerException 06-28 15:50:30.928: E/AndroidRuntime(4914): at ti.modules.titanium.ui.TabGroupProxy.handleClose(TabGroupProxy.java:322) 06-28 15:50:30.928: E/AndroidRuntime(4914): at org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(TiWindowProxy.java:106) 06-28 15:50:30.928: E/AndroidRuntime(4914): at ti.modules.titanium.ui.TabGroupProxy.handleMessage(TabGroupProxy.java:98) 06-28 15:50:30.928: E/AndroidRuntime(4914): at android.os.Handler.dispatchMessage(Handler.java:95) 06-28 15:50:30.928: E/AndroidRuntime(4914): at org.appcelerator.kroll.common.TiMessenger.dispatchMessage(TiMessenger.java:365) 06-28 15:50:30.928: E/AndroidRuntime(4914): at org.appcelerator.kroll.common.TiMessenger.dispatchPendingMessages(TiMessenger.java:350) 06-28 15:50:30.928: E/AndroidRuntime(4914): at org.appcelerator.kroll.common.TiMessenger$2.getResult(TiMessenger.java:235) 06-28 15:50:30.928: E/AndroidRuntime(4914): at org.appcelerator.kroll.common.TiMessenger.sendBlockingMessage(TiMessenger.java:262) 06-28 15:50:30.928: E/AndroidRuntime(4914): at org.appcelerator.kroll.common.TiMessenger.sendBlockingRuntimeMessage(TiMessenger.java:187) 06-28 15:50:30.928: E/AndroidRuntime(4914): at org.appcelerator.kroll.KrollProxy.fireSyncEvent(KrollProxy.java:605) 06-28 15:50:30.928: E/AndroidRuntime(4914): at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:428) 06-28 15:50:30.928: E/AndroidRuntime(4914): at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:162) 06-28 15:50:30.928: E/AndroidRuntime(4914): at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:99) 06-28 15:50:30.928: E/AndroidRuntime(4914): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 06-28 15:50:30.928: E/AndroidRuntime(4914): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611) 06-28 15:50:30.928: E/AndroidRuntime(4914): ... 11 more {code}
    via by Mauro Parra-Miranda,
    • java.lang.RuntimeException: Unable to start activity ComponentInfo{com.negoapps.ingtesttabgroup/com.negoapps.ingtesttabgroup.IngtesttabgroupActivity}: java.lang.NullPointerException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663) at android.app.ActivityThread.access$1500(ActivityThread.java:117) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:130) at android.app.ActivityThread.main(ActivityThread.java:3683) 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:850) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException at ti.modules.titanium.ui.TabGroupProxy.handleClose(TabGroupProxy.java:322) at org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(TiWindowProxy.java:106) at ti.modules.titanium.ui.TabGroupProxy.handleMessage(TabGroupProxy.java:98) at android.os.Handler.dispatchMessage(Handler.java:95) at org.appcelerator.kroll.common.TiMessenger.dispatchMessage(TiMessenger.java:365) at org.appcelerator.kroll.common.TiMessenger.dispatchPendingMessages(TiMessenger.java:350) at org.appcelerator.kroll.common.TiMessenger$2.getResult(TiMessenger.java:235) at org.appcelerator.kroll.common.TiMessenger.sendBlockingMessage(TiMessenger.java:262) at org.appcelerator.kroll.common.TiMessenger.sendBlockingRuntimeMessage(TiMessenger.java:187) at org.appcelerator.kroll.KrollProxy.fireSyncEvent(KrollProxy.java:605) at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:428) 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:1611) ... 11 more
    No Bugmate found.