java.lang.ClassCastException: ti.map.AnnotationProxy cannot be cast to ti.modules.titanium.map.AnnotationProxy

Appcelerator JIRA | Federico Casali | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    h5. Problem description Geocoder Alloy sample on Android is crashing when filling in an address. Reproducible only with Alloy 1.4.0 - so is a regression h5. Steps to reproduce 1. From Studio, import the Geocoder sample app. 2. Edit tiapp.xml and remove targetSdkVersion (looged a separate ticket: https://jira.appcelerator.org/browse/ALOY-1020) 3. Run the sample on Android (tested on Google Nexus Galaxy 4.3) 4. Click on the textfield and search for an Address Result: app crashes Crash log: {code} [WARN] : dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x415cf700) [DEBUG] : HTTPClient: The persistent handle is disposed. [ERROR] : Crittercism: java.lang.ClassCastException: ti.map.AnnotationProxy cannot be cast to ti.modules.titanium.map.AnnotationProxy [ERROR] : Crittercism: at ti.modules.titanium.map.TiMapView$TitaniumOverlay.createItem(TiMapView.java:273) [ERROR] : Crittercism: at ti.modules.titanium.map.TiMapView$TitaniumOverlay.createItem(TiMapView.java:242) [ERROR] : Crittercism: at com.google.android.maps.ItemizedOverlay.populate(ItemizedOverlay.java:309) [ERROR] : Crittercism: at ti.modules.titanium.map.TiMapView$TitaniumOverlay.setAnnotations(TiMapView.java:265) [ERROR] : Crittercism: at ti.modules.titanium.map.TiMapView.doSetAnnotations(TiMapView.java:953) [ERROR] : Crittercism: at ti.modules.titanium.map.TiMapView.doUpdateAnnotations(TiMapView.java:714) [ERROR] : Crittercism: at ti.modules.titanium.map.TiMapView.handleMessage(TiMapView.java:603) [ERROR] : Crittercism: at android.os.Handler.dispatchMessage(Handler.java:95) [ERROR] : Crittercism: at android.os.Looper.loop(Looper.java:137) [ERROR] : Crittercism: at android.app.ActivityThread.main(ActivityThread.java:5103) [ERROR] : Crittercism: at java.lang.reflect.Method.invokeNative(Native Method) [ERROR] : Crittercism: at java.lang.reflect.Method.invoke(Method.java:525) [ERROR] : Crittercism: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737) [ERROR] : Crittercism: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) [ERROR] : Crittercism: at dalvik.system.NativeStart.main(Native Method) [DEBUG] : dalvikvm: GC_CONCURRENT freed 1456K, 9% free 15722K/17216K, paused 3ms+4ms, total 39ms [DEBUG] : dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 21ms [ERROR] : TiApplication: (main) [261349,262305] Sending event: exception on thread: main msg:java.lang.ClassCastException: ti.map.AnnotationProxy cannot be cast to ti.modules.titanium.map.AnnotationProxy; Titanium 3.3.0,2014/05/16 00:25,df56177 [ERROR] : TiApplication: java.lang.ClassCastException: ti.map.AnnotationProxy cannot be cast to ti.modules.titanium.map.AnnotationProxy [ERROR] : TiApplication: at ti.modules.titanium.map.TiMapView$TitaniumOverlay.createItem(TiMapView.java:273) [ERROR] : TiApplication: at ti.modules.titanium.map.TiMapView$TitaniumOverlay.createItem(TiMapView.java:242) [ERROR] : TiApplication: at com.google.android.maps.ItemizedOverlay.populate(ItemizedOverlay.java:309) [ERROR] : TiApplication: at ti.modules.titanium.map.TiMapView$TitaniumOverlay.setAnnotations(TiMapView.java:265) [ERROR] : TiApplication: at ti.modules.titanium.map.TiMapView.doSetAnnotations(TiMapView.java:953) [ERROR] : TiApplication: at ti.modules.titanium.map.TiMapView.doUpdateAnnotations(TiMapView.java:714) [ERROR] : TiApplication: at ti.modules.titanium.map.TiMapView.handleMessage(TiMapView.java:603) [ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:95) [ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:137) [ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5103) [ERROR] : TiApplication: at java.lang.reflect.Method.invokeNative(Native Method) [ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Method.java:525) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) [ERROR] : TiApplication: at dalvik.system.NativeStart.main(Native Method) [INFO] : Process: Sending signal. PID: 8929 SIG: 9 {code} Not reproducible using Alloy version 1.3.1

    Appcelerator JIRA | 3 years ago | Federico Casali
    java.lang.ClassCastException: ti.map.AnnotationProxy cannot be cast to ti.modules.titanium.map.AnnotationProxy
  2. 0

    h5. Problem description Geocoder Alloy sample on Android is crashing when filling in an address. Reproducible only with Alloy 1.4.0 - so is a regression h5. Steps to reproduce 1. From Studio, import the Geocoder sample app. 2. Edit tiapp.xml and remove targetSdkVersion (looged a separate ticket: https://jira.appcelerator.org/browse/ALOY-1020) 3. Run the sample on Android (tested on Google Nexus Galaxy 4.3) 4. Click on the textfield and search for an Address Result: app crashes Crash log: {code} [WARN] : dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x415cf700) [DEBUG] : HTTPClient: The persistent handle is disposed. [ERROR] : Crittercism: java.lang.ClassCastException: ti.map.AnnotationProxy cannot be cast to ti.modules.titanium.map.AnnotationProxy [ERROR] : Crittercism: at ti.modules.titanium.map.TiMapView$TitaniumOverlay.createItem(TiMapView.java:273) [ERROR] : Crittercism: at ti.modules.titanium.map.TiMapView$TitaniumOverlay.createItem(TiMapView.java:242) [ERROR] : Crittercism: at com.google.android.maps.ItemizedOverlay.populate(ItemizedOverlay.java:309) [ERROR] : Crittercism: at ti.modules.titanium.map.TiMapView$TitaniumOverlay.setAnnotations(TiMapView.java:265) [ERROR] : Crittercism: at ti.modules.titanium.map.TiMapView.doSetAnnotations(TiMapView.java:953) [ERROR] : Crittercism: at ti.modules.titanium.map.TiMapView.doUpdateAnnotations(TiMapView.java:714) [ERROR] : Crittercism: at ti.modules.titanium.map.TiMapView.handleMessage(TiMapView.java:603) [ERROR] : Crittercism: at android.os.Handler.dispatchMessage(Handler.java:95) [ERROR] : Crittercism: at android.os.Looper.loop(Looper.java:137) [ERROR] : Crittercism: at android.app.ActivityThread.main(ActivityThread.java:5103) [ERROR] : Crittercism: at java.lang.reflect.Method.invokeNative(Native Method) [ERROR] : Crittercism: at java.lang.reflect.Method.invoke(Method.java:525) [ERROR] : Crittercism: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737) [ERROR] : Crittercism: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) [ERROR] : Crittercism: at dalvik.system.NativeStart.main(Native Method) [DEBUG] : dalvikvm: GC_CONCURRENT freed 1456K, 9% free 15722K/17216K, paused 3ms+4ms, total 39ms [DEBUG] : dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 21ms [ERROR] : TiApplication: (main) [261349,262305] Sending event: exception on thread: main msg:java.lang.ClassCastException: ti.map.AnnotationProxy cannot be cast to ti.modules.titanium.map.AnnotationProxy; Titanium 3.3.0,2014/05/16 00:25,df56177 [ERROR] : TiApplication: java.lang.ClassCastException: ti.map.AnnotationProxy cannot be cast to ti.modules.titanium.map.AnnotationProxy [ERROR] : TiApplication: at ti.modules.titanium.map.TiMapView$TitaniumOverlay.createItem(TiMapView.java:273) [ERROR] : TiApplication: at ti.modules.titanium.map.TiMapView$TitaniumOverlay.createItem(TiMapView.java:242) [ERROR] : TiApplication: at com.google.android.maps.ItemizedOverlay.populate(ItemizedOverlay.java:309) [ERROR] : TiApplication: at ti.modules.titanium.map.TiMapView$TitaniumOverlay.setAnnotations(TiMapView.java:265) [ERROR] : TiApplication: at ti.modules.titanium.map.TiMapView.doSetAnnotations(TiMapView.java:953) [ERROR] : TiApplication: at ti.modules.titanium.map.TiMapView.doUpdateAnnotations(TiMapView.java:714) [ERROR] : TiApplication: at ti.modules.titanium.map.TiMapView.handleMessage(TiMapView.java:603) [ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:95) [ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:137) [ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5103) [ERROR] : TiApplication: at java.lang.reflect.Method.invokeNative(Native Method) [ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Method.java:525) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) [ERROR] : TiApplication: at dalvik.system.NativeStart.main(Native Method) [INFO] : Process: Sending signal. PID: 8929 SIG: 9 {code} Not reproducible using Alloy version 1.3.1

    Appcelerator JIRA | 3 years ago | Federico Casali
    java.lang.ClassCastException: ti.map.AnnotationProxy cannot be cast to ti.modules.titanium.map.AnnotationProxy

    Root Cause Analysis

    1. java.lang.ClassCastException

      ti.map.AnnotationProxy cannot be cast to ti.modules.titanium.map.AnnotationProxy

      at ti.modules.titanium.map.TiMapView$TitaniumOverlay.createItem()
    2. ti.modules.titanium
      TiMapView$TitaniumOverlay.createItem
      1. ti.modules.titanium.map.TiMapView$TitaniumOverlay.createItem(TiMapView.java:273)
      2. ti.modules.titanium.map.TiMapView$TitaniumOverlay.createItem(TiMapView.java:242)
      2 frames
    3. Robolectric
      ItemizedOverlay.populate
      1. com.google.android.maps.ItemizedOverlay.populate(ItemizedOverlay.java:309)
      1 frame
    4. ti.modules.titanium
      TiMapView.handleMessage
      1. ti.modules.titanium.map.TiMapView$TitaniumOverlay.setAnnotations(TiMapView.java:265)
      2. ti.modules.titanium.map.TiMapView.doSetAnnotations(TiMapView.java:953)
      3. ti.modules.titanium.map.TiMapView.doUpdateAnnotations(TiMapView.java:714)
      4. ti.modules.titanium.map.TiMapView.handleMessage(TiMapView.java:603)
      4 frames
    5. Android Platform
      ActivityThread.main
      1. android.os.Handler.dispatchMessage(Handler.java:95)
      2. android.os.Looper.loop(Looper.java:137)
      3. android.app.ActivityThread.main(ActivityThread.java:5103)
      3 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:525)
      2 frames
    7. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
      2 frames
    8. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame