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

Appcelerator JIRA | Tony Lukasavage | 4 years ago
  1. 0

    h2. Problem On Android, you must set the {{latitude}} and {{longitude}} properties of a {{Ti.Map.Annotation}} in the {{createAnnotation()}} function, otherwise your app will crash with the error log below when Android attempts to add the annotation to a {{Ti.Map.View}} at runtime. iOS and Mobileweb can specify these properties at any time before the annotations are added and work fine. h2. Proposed Fix Allow longitude and latitude to be set on an Annotation anytime before the annotations are assigned to a {{Ti.Map.View}} on Android. h2. Test Case {code:javascript} var win = Titanium.UI.createWindow(); // This will crash an android app. If you uncomment the latitude and longitude // in the createAnnotation() call and comment the assignments after it, all // will work fine with no crash. var ann = Ti.Map.createAnnotation({ animate: true, pincolor: Ti.Map.ANNOTATION_RED, title: "Mountain View", // latitude: 37.389569, // longitude: -122.050212 }); ann.latitude = 37.389569; ann.longitude = -122.050212; var map = Ti.Map.createView({ region: { latitude: 37.38, latitudeDelta: .2, longitude: -122.05, longitudeDelta: .2 }, annotations: [ann] }); win.add(map); win.open(); {code} h2. android error log {code} E/TiApplication(22490): (main) [1,521] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appc.navgroup/com.appc.navgroup.NavgroupActivity}: java.lang.NullPointerException; Titanium 2.1.1,2012/07/27 14:01,0fd84a2 E/TiApplication(22490): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appc.navgroup/com.appc.navgroup.NavgroupActivity}: java.lang.NullPointerException E/TiApplication(22490): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956) E/TiApplication(22490): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981) E/TiApplication(22490): at android.app.ActivityThread.access$600(ActivityThread.java:123) E/TiApplication(22490): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147) E/TiApplication(22490): at android.os.Handler.dispatchMessage(Handler.java:99) E/TiApplication(22490): at android.os.Looper.loop(Looper.java:137) E/TiApplication(22490): at android.app.ActivityThread.main(ActivityThread.java:4424) E/TiApplication(22490): at java.lang.reflect.Method.invokeNative(Native Method) E/TiApplication(22490): at java.lang.reflect.Method.invoke(Method.java:511) E/TiApplication(22490): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) E/TiApplication(22490): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) E/TiApplication(22490): at dalvik.system.NativeStart.main(Native Method) E/TiApplication(22490): Caused by: java.lang.NullPointerException E/TiApplication(22490): at com.google.android.maps.ItemizedOverlay.populate(ItemizedOverlay.java:311) E/TiApplication(22490): at ti.modules.titanium.map.TiMapView$TitaniumOverlay.setAnnotations(TiMapView.java:186) E/TiApplication(22490): at ti.modules.titanium.map.TiMapView.doSetAnnotations(TiMapView.java:783) E/TiApplication(22490): at ti.modules.titanium.map.TiMapView.processProperties(TiMapView.java:657) E/TiApplication(22490): at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:893) E/TiApplication(22490): at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:442) E/TiApplication(22490): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:434) E/TiApplication(22490): at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:412) E/TiApplication(22490): at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:449) E/TiApplication(22490): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:434) E/TiApplication(22490): at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:412) E/TiApplication(22490): at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:528) E/TiApplication(22490): at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:205) E/TiApplication(22490): at android.os.Handler.dispatchMessage(Handler.java:95) E/TiApplication(22490): at org.appcelerator.kroll.common.TiMessenger.dispatchMessage(TiMessenger.java:365) E/TiApplication(22490): at org.appcelerator.kroll.common.TiMessenger.dispatchPendingMessages(TiMessenger.java:350) E/TiApplication(22490): at org.appcelerator.kroll.common.TiMessenger$2.getResult(TiMessenger.java:235) E/TiApplication(22490): at org.appcelerator.kroll.common.TiMessenger.sendBlockingMessage(TiMessenger.java:262) E/TiApplication(22490): at org.appcelerator.kroll.common.TiMessenger.sendBlockingRuntimeMessage(TiMessenger.java:187) E/TiApplication(22490): at org.appcelerator.kroll.KrollProxy.fireSyncEvent(KrollProxy.java:612) E/TiApplication(22490): at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:437) E/TiApplication(22490): at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:162) E/TiApplication(22490): at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:99) E/TiApplication(22490): at android.app.Activity.performCreate(Activity.java:4465) E/TiApplication(22490): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049) E/TiApplication(22490): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920) E/TiApplication(22490): ... 11 more E/AndroidRuntime(22490): FATAL EXCEPTION: main E/AndroidRuntime(22490): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appc.navgroup/com.appc.navgroup.NavgroupActivity}: java.lang.NullPointerException E/AndroidRuntime(22490): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956) E/AndroidRuntime(22490): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981) E/AndroidRuntime(22490): at android.app.ActivityThread.access$600(ActivityThread.java:123) E/AndroidRuntime(22490): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147) E/AndroidRuntime(22490): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime(22490): at android.os.Looper.loop(Looper.java:137) E/AndroidRuntime(22490): at android.app.ActivityThread.main(ActivityThread.java:4424) E/AndroidRuntime(22490): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(22490): at java.lang.reflect.Method.invoke(Method.java:511) E/AndroidRuntime(22490): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) E/AndroidRuntime(22490): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) E/AndroidRuntime(22490): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime(22490): Caused by: java.lang.NullPointerException E/AndroidRuntime(22490): at com.google.android.maps.ItemizedOverlay.populate(ItemizedOverlay.java:311) E/AndroidRuntime(22490): at ti.modules.titanium.map.TiMapView$TitaniumOverlay.setAnnotations(TiMapView.java:186) E/AndroidRuntime(22490): at ti.modules.titanium.map.TiMapView.doSetAnnotations(TiMapView.java:783) E/AndroidRuntime(22490): at ti.modules.titanium.map.TiMapView.processProperties(TiMapView.java:657) E/AndroidRuntime(22490): at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:893) E/AndroidRuntime(22490): at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:442) E/AndroidRuntime(22490): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:434) E/AndroidRuntime(22490): at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:412) E/AndroidRuntime(22490): at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:449) E/AndroidRuntime(22490): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:434) E/AndroidRuntime(22490): at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:412) E/AndroidRuntime(22490): at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:528) E/AndroidRuntime(22490): at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:205) E/AndroidRuntime(22490): at android.os.Handler.dispatchMessage(Handler.java:95) E/AndroidRuntime(22490): at org.appcelerator.kroll.common.TiMessenger.dispatchMessage(TiMessenger.java:365) E/AndroidRuntime(22490): at org.appcelerator.kroll.common.TiMessenger.dispatchPendingMessages(TiMessenger.java:350) E/AndroidRuntime(22490): at org.appcelerator.kroll.common.TiMessenger$2.getResult(TiMessenger.java:235) E/AndroidRuntime(22490): at org.appcelerator.kroll.common.TiMessenger.sendBlockingMessage(TiMessenger.java:262) E/AndroidRuntime(22490): at org.appcelerator.kroll.common.TiMessenger.sendBlockingRuntimeMessage(TiMessenger.java:187) E/AndroidRuntime(22490): at org.appcelerator.kroll.KrollProxy.fireSyncEvent(KrollProxy.java:612) E/AndroidRuntime(22490): at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:437) E/AndroidRuntime(22490): at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:162) E/AndroidRuntime(22490): at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:99) E/AndroidRuntime(22490): at android.app.Activity.performCreate(Activity.java:4465) E/AndroidRuntime(22490): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049) E/AndroidRuntime(22490): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920) E/AndroidRuntime(22490): ... 11 more {code}

    Appcelerator JIRA | 4 years ago | Tony Lukasavage
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appc.navgroup/com.appc.navgroup.NavgroupActivity}: java.lang.NullPointerException
  2. 0

    h2. Problem On Android, you must set the {{latitude}} and {{longitude}} properties of a {{Ti.Map.Annotation}} in the {{createAnnotation()}} function, otherwise your app will crash with the error log below when Android attempts to add the annotation to a {{Ti.Map.View}} at runtime. iOS and Mobileweb can specify these properties at any time before the annotations are added and work fine. h2. Proposed Fix Allow longitude and latitude to be set on an Annotation anytime before the annotations are assigned to a {{Ti.Map.View}} on Android. h2. Test Case {code:javascript} var win = Titanium.UI.createWindow(); // This will crash an android app. If you uncomment the latitude and longitude // in the createAnnotation() call and comment the assignments after it, all // will work fine with no crash. var ann = Ti.Map.createAnnotation({ animate: true, pincolor: Ti.Map.ANNOTATION_RED, title: "Mountain View", // latitude: 37.389569, // longitude: -122.050212 }); ann.latitude = 37.389569; ann.longitude = -122.050212; var map = Ti.Map.createView({ region: { latitude: 37.38, latitudeDelta: .2, longitude: -122.05, longitudeDelta: .2 }, annotations: [ann] }); win.add(map); win.open(); {code} h2. android error log {code} E/TiApplication(22490): (main) [1,521] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appc.navgroup/com.appc.navgroup.NavgroupActivity}: java.lang.NullPointerException; Titanium 2.1.1,2012/07/27 14:01,0fd84a2 E/TiApplication(22490): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appc.navgroup/com.appc.navgroup.NavgroupActivity}: java.lang.NullPointerException E/TiApplication(22490): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956) E/TiApplication(22490): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981) E/TiApplication(22490): at android.app.ActivityThread.access$600(ActivityThread.java:123) E/TiApplication(22490): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147) E/TiApplication(22490): at android.os.Handler.dispatchMessage(Handler.java:99) E/TiApplication(22490): at android.os.Looper.loop(Looper.java:137) E/TiApplication(22490): at android.app.ActivityThread.main(ActivityThread.java:4424) E/TiApplication(22490): at java.lang.reflect.Method.invokeNative(Native Method) E/TiApplication(22490): at java.lang.reflect.Method.invoke(Method.java:511) E/TiApplication(22490): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) E/TiApplication(22490): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) E/TiApplication(22490): at dalvik.system.NativeStart.main(Native Method) E/TiApplication(22490): Caused by: java.lang.NullPointerException E/TiApplication(22490): at com.google.android.maps.ItemizedOverlay.populate(ItemizedOverlay.java:311) E/TiApplication(22490): at ti.modules.titanium.map.TiMapView$TitaniumOverlay.setAnnotations(TiMapView.java:186) E/TiApplication(22490): at ti.modules.titanium.map.TiMapView.doSetAnnotations(TiMapView.java:783) E/TiApplication(22490): at ti.modules.titanium.map.TiMapView.processProperties(TiMapView.java:657) E/TiApplication(22490): at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:893) E/TiApplication(22490): at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:442) E/TiApplication(22490): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:434) E/TiApplication(22490): at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:412) E/TiApplication(22490): at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:449) E/TiApplication(22490): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:434) E/TiApplication(22490): at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:412) E/TiApplication(22490): at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:528) E/TiApplication(22490): at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:205) E/TiApplication(22490): at android.os.Handler.dispatchMessage(Handler.java:95) E/TiApplication(22490): at org.appcelerator.kroll.common.TiMessenger.dispatchMessage(TiMessenger.java:365) E/TiApplication(22490): at org.appcelerator.kroll.common.TiMessenger.dispatchPendingMessages(TiMessenger.java:350) E/TiApplication(22490): at org.appcelerator.kroll.common.TiMessenger$2.getResult(TiMessenger.java:235) E/TiApplication(22490): at org.appcelerator.kroll.common.TiMessenger.sendBlockingMessage(TiMessenger.java:262) E/TiApplication(22490): at org.appcelerator.kroll.common.TiMessenger.sendBlockingRuntimeMessage(TiMessenger.java:187) E/TiApplication(22490): at org.appcelerator.kroll.KrollProxy.fireSyncEvent(KrollProxy.java:612) E/TiApplication(22490): at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:437) E/TiApplication(22490): at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:162) E/TiApplication(22490): at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:99) E/TiApplication(22490): at android.app.Activity.performCreate(Activity.java:4465) E/TiApplication(22490): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049) E/TiApplication(22490): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920) E/TiApplication(22490): ... 11 more E/AndroidRuntime(22490): FATAL EXCEPTION: main E/AndroidRuntime(22490): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appc.navgroup/com.appc.navgroup.NavgroupActivity}: java.lang.NullPointerException E/AndroidRuntime(22490): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956) E/AndroidRuntime(22490): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981) E/AndroidRuntime(22490): at android.app.ActivityThread.access$600(ActivityThread.java:123) E/AndroidRuntime(22490): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147) E/AndroidRuntime(22490): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime(22490): at android.os.Looper.loop(Looper.java:137) E/AndroidRuntime(22490): at android.app.ActivityThread.main(ActivityThread.java:4424) E/AndroidRuntime(22490): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(22490): at java.lang.reflect.Method.invoke(Method.java:511) E/AndroidRuntime(22490): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) E/AndroidRuntime(22490): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) E/AndroidRuntime(22490): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime(22490): Caused by: java.lang.NullPointerException E/AndroidRuntime(22490): at com.google.android.maps.ItemizedOverlay.populate(ItemizedOverlay.java:311) E/AndroidRuntime(22490): at ti.modules.titanium.map.TiMapView$TitaniumOverlay.setAnnotations(TiMapView.java:186) E/AndroidRuntime(22490): at ti.modules.titanium.map.TiMapView.doSetAnnotations(TiMapView.java:783) E/AndroidRuntime(22490): at ti.modules.titanium.map.TiMapView.processProperties(TiMapView.java:657) E/AndroidRuntime(22490): at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:893) E/AndroidRuntime(22490): at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:442) E/AndroidRuntime(22490): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:434) E/AndroidRuntime(22490): at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:412) E/AndroidRuntime(22490): at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:449) E/AndroidRuntime(22490): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:434) E/AndroidRuntime(22490): at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:412) E/AndroidRuntime(22490): at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:528) E/AndroidRuntime(22490): at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:205) E/AndroidRuntime(22490): at android.os.Handler.dispatchMessage(Handler.java:95) E/AndroidRuntime(22490): at org.appcelerator.kroll.common.TiMessenger.dispatchMessage(TiMessenger.java:365) E/AndroidRuntime(22490): at org.appcelerator.kroll.common.TiMessenger.dispatchPendingMessages(TiMessenger.java:350) E/AndroidRuntime(22490): at org.appcelerator.kroll.common.TiMessenger$2.getResult(TiMessenger.java:235) E/AndroidRuntime(22490): at org.appcelerator.kroll.common.TiMessenger.sendBlockingMessage(TiMessenger.java:262) E/AndroidRuntime(22490): at org.appcelerator.kroll.common.TiMessenger.sendBlockingRuntimeMessage(TiMessenger.java:187) E/AndroidRuntime(22490): at org.appcelerator.kroll.KrollProxy.fireSyncEvent(KrollProxy.java:612) E/AndroidRuntime(22490): at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:437) E/AndroidRuntime(22490): at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:162) E/AndroidRuntime(22490): at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:99) E/AndroidRuntime(22490): at android.app.Activity.performCreate(Activity.java:4465) E/AndroidRuntime(22490): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049) E/AndroidRuntime(22490): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920) E/AndroidRuntime(22490): ... 11 more {code}

    Appcelerator JIRA | 4 years ago | Tony Lukasavage
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appc.navgroup/com.appc.navgroup.NavgroupActivity}: java.lang.NullPointerException
  3. 0

    The "namespaces" example is currently throwing the following error on android (device and emulator). iOS and Mobileweb are working fine. {code} E/TiApplication(18692): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appcelerator.HarnessTemplate/com.appcelerator.HarnessTemplate.HarnesstemplateActivity}: java.lang.NullPointerException E/TiApplication(18692): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956) E/TiApplication(18692): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981) E/TiApplication(18692): at android.app.ActivityThread.access$600(ActivityThread.java:123) E/TiApplication(18692): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147) E/TiApplication(18692): at android.os.Handler.dispatchMessage(Handler.java:99) E/TiApplication(18692): at android.os.Looper.loop(Looper.java:137) E/TiApplication(18692): at android.app.ActivityThread.main(ActivityThread.java:4424) E/TiApplication(18692): at java.lang.reflect.Method.invokeNative(Native Method) E/TiApplication(18692): at java.lang.reflect.Method.invoke(Method.java:511) E/TiApplication(18692): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) E/TiApplication(18692): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) E/TiApplication(18692): at dalvik.system.NativeStart.main(Native Method) E/TiApplication(18692): Caused by: java.lang.NullPointerException E/TiApplication(18692): at com.google.android.maps.ItemizedOverlay.populate(ItemizedOverlay.java:311) E/TiApplication(18692): at ti.modules.titanium.map.TiMapView$TitaniumOverlay.setAnnotations(TiMapView.java:226) E/TiApplication(18692): at ti.modules.titanium.map.TiMapView.doSetAnnotations(TiMapView.java:838) E/TiApplication(18692): at ti.modules.titanium.map.TiMapView.addAnnotations(TiMapView.java:575) E/TiApplication(18692): at ti.modules.titanium.map.TiMapView.processProperties(TiMapView.java:710) E/TiApplication(18692): at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:924) E/TiApplication(18692): at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:439) E/TiApplication(18692): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:431) E/TiApplication(18692): at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:411) E/TiApplication(18692): at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:446) E/TiApplication(18692): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:431) E/TiApplication(18692): at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:411) E/TiApplication(18692): at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:525) E/TiApplication(18692): at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:204) E/TiApplication(18692): at android.os.Handler.dispatchMessage(Handler.java:95) E/TiApplication(18692): at org.appcelerator.kroll.common.TiMessenger.dispatchMessage(TiMessenger.java:364) E/TiApplication(18692): at org.appcelerator.kroll.common.TiMessenger.dispatchPendingMessages(TiMessenger.java:349) E/TiApplication(18692): at org.appcelerator.kroll.common.TiMessenger$2.getResult(TiMessenger.java:234) E/TiApplication(18692): at org.appcelerator.kroll.common.TiMessenger.sendBlockingMessage(TiMessenger.java:261) E/TiApplication(18692): at org.appcelerator.kroll.common.TiMessenger.sendBlockingRuntimeMessage(TiMessenger.java:186) E/TiApplication(18692): at org.appcelerator.kroll.KrollProxy.fireSyncEvent(KrollProxy.java:638) E/TiApplication(18692): at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:435) E/TiApplication(18692): at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:145) E/TiApplication(18692): at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:97) E/TiApplication(18692): at android.app.Activity.performCreate(Activity.java:4465) E/TiApplication(18692): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049) E/TiApplication(18692): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920) E/TiApplication(18692): ... 11 more {code}

    Appcelerator JIRA | 4 years ago | Tony Lukasavage
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appcelerator.HarnessTemplate/com.appcelerator.HarnessTemplate.HarnesstemplateActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    The "namespaces" example is currently throwing the following error on android (device and emulator). iOS and Mobileweb are working fine. {code} E/TiApplication(18692): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appcelerator.HarnessTemplate/com.appcelerator.HarnessTemplate.HarnesstemplateActivity}: java.lang.NullPointerException E/TiApplication(18692): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956) E/TiApplication(18692): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981) E/TiApplication(18692): at android.app.ActivityThread.access$600(ActivityThread.java:123) E/TiApplication(18692): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147) E/TiApplication(18692): at android.os.Handler.dispatchMessage(Handler.java:99) E/TiApplication(18692): at android.os.Looper.loop(Looper.java:137) E/TiApplication(18692): at android.app.ActivityThread.main(ActivityThread.java:4424) E/TiApplication(18692): at java.lang.reflect.Method.invokeNative(Native Method) E/TiApplication(18692): at java.lang.reflect.Method.invoke(Method.java:511) E/TiApplication(18692): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) E/TiApplication(18692): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) E/TiApplication(18692): at dalvik.system.NativeStart.main(Native Method) E/TiApplication(18692): Caused by: java.lang.NullPointerException E/TiApplication(18692): at com.google.android.maps.ItemizedOverlay.populate(ItemizedOverlay.java:311) E/TiApplication(18692): at ti.modules.titanium.map.TiMapView$TitaniumOverlay.setAnnotations(TiMapView.java:226) E/TiApplication(18692): at ti.modules.titanium.map.TiMapView.doSetAnnotations(TiMapView.java:838) E/TiApplication(18692): at ti.modules.titanium.map.TiMapView.addAnnotations(TiMapView.java:575) E/TiApplication(18692): at ti.modules.titanium.map.TiMapView.processProperties(TiMapView.java:710) E/TiApplication(18692): at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:924) E/TiApplication(18692): at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:439) E/TiApplication(18692): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:431) E/TiApplication(18692): at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:411) E/TiApplication(18692): at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:446) E/TiApplication(18692): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:431) E/TiApplication(18692): at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:411) E/TiApplication(18692): at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:525) E/TiApplication(18692): at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:204) E/TiApplication(18692): at android.os.Handler.dispatchMessage(Handler.java:95) E/TiApplication(18692): at org.appcelerator.kroll.common.TiMessenger.dispatchMessage(TiMessenger.java:364) E/TiApplication(18692): at org.appcelerator.kroll.common.TiMessenger.dispatchPendingMessages(TiMessenger.java:349) E/TiApplication(18692): at org.appcelerator.kroll.common.TiMessenger$2.getResult(TiMessenger.java:234) E/TiApplication(18692): at org.appcelerator.kroll.common.TiMessenger.sendBlockingMessage(TiMessenger.java:261) E/TiApplication(18692): at org.appcelerator.kroll.common.TiMessenger.sendBlockingRuntimeMessage(TiMessenger.java:186) E/TiApplication(18692): at org.appcelerator.kroll.KrollProxy.fireSyncEvent(KrollProxy.java:638) E/TiApplication(18692): at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:435) E/TiApplication(18692): at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:145) E/TiApplication(18692): at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:97) E/TiApplication(18692): at android.app.Activity.performCreate(Activity.java:4465) E/TiApplication(18692): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049) E/TiApplication(18692): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920) E/TiApplication(18692): ... 11 more {code}

    Appcelerator JIRA | 4 years ago | Tony Lukasavage
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appcelerator.HarnessTemplate/com.appcelerator.HarnessTemplate.HarnesstemplateActivity}: java.lang.NullPointerException
  6. 0

    maps problems!

    GitHub | 5 years ago | mucek4
    java.lang.NullPointerException

    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.google.android.maps.ItemizedOverlay.populate()
    2. Robolectric
      ItemizedOverlay.populate
      1. com.google.android.maps.ItemizedOverlay.populate(ItemizedOverlay.java:311)
      1 frame
    3. ti.modules.titanium
      TiMapView.processProperties
      1. ti.modules.titanium.map.TiMapView$TitaniumOverlay.setAnnotations(TiMapView.java:186)
      2. ti.modules.titanium.map.TiMapView.doSetAnnotations(TiMapView.java:783)
      3. ti.modules.titanium.map.TiMapView.processProperties(TiMapView.java:657)
      3 frames
    4. org.appcelerator.kroll
      KrollProxy.setModelListener
      1. org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:893)
      1 frame
    5. org.appcelerator.titanium
      TiViewProxy.handleMessage
      1. org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:442)
      2. org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:434)
      3. org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:412)
      4. org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:449)
      5. org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:434)
      6. org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:412)
      7. org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:528)
      8. org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:205)
      8 frames
    6. Android Platform
      Handler.dispatchMessage
      1. android.os.Handler.dispatchMessage(Handler.java:95)
      1 frame
    7. org.appcelerator.kroll
      KrollProxy.fireSyncEvent
      1. org.appcelerator.kroll.common.TiMessenger.dispatchMessage(TiMessenger.java:365)
      2. org.appcelerator.kroll.common.TiMessenger.dispatchPendingMessages(TiMessenger.java:350)
      3. org.appcelerator.kroll.common.TiMessenger$2.getResult(TiMessenger.java:235)
      4. org.appcelerator.kroll.common.TiMessenger.sendBlockingMessage(TiMessenger.java:262)
      5. org.appcelerator.kroll.common.TiMessenger.sendBlockingRuntimeMessage(TiMessenger.java:187)
      6. org.appcelerator.kroll.KrollProxy.fireSyncEvent(KrollProxy.java:612)
      6 frames
    8. org.appcelerator.titanium
      TiRootActivity.onCreate
      1. org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:437)
      2. org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:162)
      3. org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:99)
      3 frames
    9. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:4465)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
      5. android.app.ActivityThread.access$600(ActivityThread.java:123)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
      7. android.os.Handler.dispatchMessage(Handler.java:99)
      8. android.os.Looper.loop(Looper.java:137)
      9. android.app.ActivityThread.main(ActivityThread.java:4424)
      9 frames
    10. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:511)
      2 frames
    11. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
      2 frames
    12. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame