java.lang.NoSuchMethodError: No virtual method toImage()Lorg/appcelerator/titanium/TiBlob; in class Lorg/appcelerator/titanium/proxy/TiViewProxy; or its super classes (declaration of 'org.appcelerator.titanium.proxy.TiViewProxy' appears in /data/app/com.appcelerator.mapmod-1/base.apk)

Appcelerator JIRA | Lokesh Choudhary | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    *NOTE: This is a regression. Not seen in 5.1.2.GA.* h5.Steps to reproduce: 1. Use the below code in your app.js & make sure you are setup for android maps before running this: {code} var MapModule = require('ti.map'); var win = Ti.UI.createWindow({ fullscreen : false }); var myView1 = Ti.UI.createView({ width : 100, height : 100, backgroundColor : 'red' }); var anno = MapModule.createAnnotation({ latitude : -33.87365, customView : myView1, longitude : 151.20689, title : "Drag Me", subtitle : "Sydney is quite chill", draggable : true }); var map = MapModule.createView({ userLocation : true, mapType : MapModule.NORMAL_TYPE, animate : true, annotations : [anno], region : { latitude : -33.87365, longitude : 151.20689, latitudeDelta : 0.1, longitudeDelta : 0.1 }, //Sydney // top : '30%' }); win.add(map); win.open(); {code} 2. Let the app launch on device. h5.Actual Results: 1. App crashes with logs: {code} *[ERROR] : TiApplication: (main) [582,959] Sending event: exception on thread: main msg:java.lang.NoSuchMethodError: No virtual method toImage()Lorg/appcelerator/titanium/TiBlob; in class Lorg/appcelerator/titanium/proxy/TiViewProxy; or its super classes (declaration of 'org.appcelerator.titanium.proxy.TiViewProxy' appears in /data/app/com.appcelerator.mapmod-1/base.apk); Titanium 5.2.0,2016/02/16 09:13,e72b2b5 [ERROR] : TiApplication: java.lang.NoSuchMethodError: No virtual method toImage()Lorg/appcelerator/titanium/TiBlob; in class Lorg/appcelerator/titanium/proxy/TiViewProxy; or its super classes (declaration of 'org.appcelerator.titanium.proxy.TiViewProxy' appears in /data/app/com.appcelerator.mapmod-1/base.apk) [ERROR] : TiApplication: at ti.map.AnnotationProxy.handleCustomView(AnnotationProxy.java:206) [ERROR] : TiApplication: at ti.map.AnnotationProxy.processOptions(AnnotationProxy.java:192) [ERROR] : TiApplication: at ti.map.TiUIMapView.addAnnotation(TiUIMapView.java:393) [ERROR] : TiApplication: at ti.map.TiUIMapView.addAnnotations(TiUIMapView.java:406) [ERROR] : TiApplication: at ti.map.TiUIMapView.processMapProperties(TiUIMapView.java:211) [ERROR] : TiApplication: at ti.map.TiUIMapView.onMapReady(TiUIMapView.java:162) [ERROR] : TiApplication: at com.google.android.gms.maps.SupportMapFragment$zza$1.zza(Unknown Source) [ERROR] : TiApplication: at com.google.android.gms.maps.internal.zzm$zza.onTransact(Unknown Source) [ERROR] : TiApplication: at android.os.Binder.transact(Binder.java:387) [ERROR] : TiApplication: at com.google.android.gms.maps.internal.be.a(SourceFile:82) [ERROR] : TiApplication: at com.google.maps.api.android.lib6.e.fb.run(Unknown Source) [ERROR] : TiApplication: at android.os.Handler.handleCallback(Handler.java:739) [ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:95) [ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:148) [ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5417) [ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Native Method) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) {code} h5.Expected Results: 1. App should not crash & view should be visible on the annotation.

    Appcelerator JIRA | 1 year ago | Lokesh Choudhary
    java.lang.NoSuchMethodError: No virtual method toImage()Lorg/appcelerator/titanium/TiBlob; in class Lorg/appcelerator/titanium/proxy/TiViewProxy; or its super classes (declaration of 'org.appcelerator.titanium.proxy.TiViewProxy' appears in /data/app/com.appcelerator.mapmod-1/base.apk)
  2. 0

    *NOTE: This is a regression. Not seen in 5.1.2.GA.* h5.Steps to reproduce: 1. Use the below code in your app.js & make sure you are setup for android maps before running this: {code} var MapModule = require('ti.map'); var win = Ti.UI.createWindow({ fullscreen : false }); var myView1 = Ti.UI.createView({ width : 100, height : 100, backgroundColor : 'red' }); var anno = MapModule.createAnnotation({ latitude : -33.87365, customView : myView1, longitude : 151.20689, title : "Drag Me", subtitle : "Sydney is quite chill", draggable : true }); var map = MapModule.createView({ userLocation : true, mapType : MapModule.NORMAL_TYPE, animate : true, annotations : [anno], region : { latitude : -33.87365, longitude : 151.20689, latitudeDelta : 0.1, longitudeDelta : 0.1 }, //Sydney // top : '30%' }); win.add(map); win.open(); {code} 2. Let the app launch on device. h5.Actual Results: 1. App crashes with logs: {code} *[ERROR] : TiApplication: (main) [582,959] Sending event: exception on thread: main msg:java.lang.NoSuchMethodError: No virtual method toImage()Lorg/appcelerator/titanium/TiBlob; in class Lorg/appcelerator/titanium/proxy/TiViewProxy; or its super classes (declaration of 'org.appcelerator.titanium.proxy.TiViewProxy' appears in /data/app/com.appcelerator.mapmod-1/base.apk); Titanium 5.2.0,2016/02/16 09:13,e72b2b5 [ERROR] : TiApplication: java.lang.NoSuchMethodError: No virtual method toImage()Lorg/appcelerator/titanium/TiBlob; in class Lorg/appcelerator/titanium/proxy/TiViewProxy; or its super classes (declaration of 'org.appcelerator.titanium.proxy.TiViewProxy' appears in /data/app/com.appcelerator.mapmod-1/base.apk) [ERROR] : TiApplication: at ti.map.AnnotationProxy.handleCustomView(AnnotationProxy.java:206) [ERROR] : TiApplication: at ti.map.AnnotationProxy.processOptions(AnnotationProxy.java:192) [ERROR] : TiApplication: at ti.map.TiUIMapView.addAnnotation(TiUIMapView.java:393) [ERROR] : TiApplication: at ti.map.TiUIMapView.addAnnotations(TiUIMapView.java:406) [ERROR] : TiApplication: at ti.map.TiUIMapView.processMapProperties(TiUIMapView.java:211) [ERROR] : TiApplication: at ti.map.TiUIMapView.onMapReady(TiUIMapView.java:162) [ERROR] : TiApplication: at com.google.android.gms.maps.SupportMapFragment$zza$1.zza(Unknown Source) [ERROR] : TiApplication: at com.google.android.gms.maps.internal.zzm$zza.onTransact(Unknown Source) [ERROR] : TiApplication: at android.os.Binder.transact(Binder.java:387) [ERROR] : TiApplication: at com.google.android.gms.maps.internal.be.a(SourceFile:82) [ERROR] : TiApplication: at com.google.maps.api.android.lib6.e.fb.run(Unknown Source) [ERROR] : TiApplication: at android.os.Handler.handleCallback(Handler.java:739) [ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:95) [ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:148) [ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5417) [ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Native Method) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) {code} h5.Expected Results: 1. App should not crash & view should be visible on the annotation.

    Appcelerator JIRA | 1 year ago | Lokesh Choudhary
    java.lang.NoSuchMethodError: No virtual method toImage()Lorg/appcelerator/titanium/TiBlob; in class Lorg/appcelerator/titanium/proxy/TiViewProxy; or its super classes (declaration of 'org.appcelerator.titanium.proxy.TiViewProxy' appears in /data/app/com.appcelerator.mapmod-1/base.apk)

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      No virtual method toImage()Lorg/appcelerator/titanium/TiBlob; in class Lorg/appcelerator/titanium/proxy/TiViewProxy; or its super classes (declaration of 'org.appcelerator.titanium.proxy.TiViewProxy' appears in /data/app/com.appcelerator.mapmod-1/base.apk)

      at ti.map.AnnotationProxy.handleCustomView()
    2. ti.map
      TiUIMapView.onMapReady
      1. ti.map.AnnotationProxy.handleCustomView(AnnotationProxy.java:206)
      2. ti.map.AnnotationProxy.processOptions(AnnotationProxy.java:192)
      3. ti.map.TiUIMapView.addAnnotation(TiUIMapView.java:393)
      4. ti.map.TiUIMapView.addAnnotations(TiUIMapView.java:406)
      5. ti.map.TiUIMapView.processMapProperties(TiUIMapView.java:211)
      6. ti.map.TiUIMapView.onMapReady(TiUIMapView.java:162)
      6 frames
    3. com.google.android
      zzm$zza.onTransact
      1. com.google.android.gms.maps.SupportMapFragment$zza$1.zza(Unknown Source)
      2. com.google.android.gms.maps.internal.zzm$zza.onTransact(Unknown Source)
      2 frames
    4. Android Platform
      Binder.transact
      1. android.os.Binder.transact(Binder.java:387)
      1 frame
    5. com.google.android
      be.a
      1. com.google.android.gms.maps.internal.be.a(SourceFile:82)
      1 frame
    6. com.google.maps
      fb.run
      1. com.google.maps.api.android.lib6.e.fb.run(Unknown Source)
      1 frame
    7. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:739)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:148)
      4. android.app.ActivityThread.main(ActivityThread.java:5417)
      4 frames
    8. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    9. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
      2 frames