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 | 10 months ago
  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 | 10 months 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 | 10 months 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)
  3. 0

    Error setting max altitude value 3.2.0 beta 4

    GitHub | 1 year ago | guiseco
    java.lang.NoSuchMethodError: No virtual method getContext()Landroid/content/Context; in class Lorg/droidplanner/android/fragments/SettingsFragment; or its super classes (declaration of 'org.droidplanner.android.fragments.SettingsFragment' appears in /data/app/org.droidplanner.android-1/base.apk)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    converting xml to json android

    Stack Overflow | 2 years ago | Toby
    java.lang.NoSuchMethodError: No virtual method end()Z in class Lorg/json/XMLTokener; or its super classes (declaration of 'org.json.XMLTokener' appears in /data/app/nl.avrotros.opgelicht-1/base.apk)
  6. 0

    Error setting max altitude value 3.2.0 beta 4

    GitHub | 1 year ago | guiseco
    java.lang.NoSuchMethodError: No virtual method getContext()Landroid/content/Context; in class Lorg/droidplanner/android/fragments/SettingsFragment; or its super classes (declaration of 'org.droidplanner.android.fragments.SettingsFragment' appears in /data/app/org.droidplanner.android-1/base.apk)

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