[ALOY-224] "namespaces" sample failing on android
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2012-08-28T13:16:39.000+0000 |
Affected Version/s | 2012 Sprint 18 |
Fix Version/s | 2012 Sprint 18, Release 3.0.0 |
Components | Runtime, Titanium SDK |
Labels | n/a |
Reporter | Tony Lukasavage |
Assignee | Unknown |
Created | 2012-08-28T11:12:05.000+0000 |
Updated | 2018-03-07T22:25:46.000+0000 |
Description
The "namespaces" example is currently throwing the following error on android (device and emulator). iOS and Mobileweb are working fine.
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
A workaround has been put in place to make the "namespaces" sample work correctly, but a final fix is necessary in TIMOB before we can officially remove the workaround and close this ticket.
Created ALOY-225 to track the workaround