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

Appcelerator JIRA | Federico Casali | 3 years ago
  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
  3. 0

    Titanium Android App Crashes on Device

    Stack Overflow | 2 years ago | saurabh
    java.lang.ClassCastException: ti.map.AnnotationProxy cannot be cast to java.lang.Object[]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Memcached Java客户端2.6.1发布 - 编程语言 - ITeye资讯

    iteye.com | 1 year ago
    java.lang.ClassCastException: cannot be cast to
  6. 0

    ClassCastException in HandleFactory.getPkgFragmentRoot (355)

    Eclipse Bugzilla | 1 year ago | error-reports-inbox
    java.lang.ClassCastException: cannot be cast to org.eclipse.wst.jsdt.internal.core.PackageFragmentRoot

    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.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