java.lang.NoSuchMethodError: org.appcelerator.titanium.proxy.TiViewProxy.toImage

Appcelerator JIRA | Zoltan Lengyel | 1 year ago
  1. 0

    From SDK 4.1.0 this code fails: {code:java} var aMView = Ti.UI.createView({ top: 0, zIndex: 10 }); var aMImgView = Ti.UI.createImageView({ top:0, image: 'KS_nav_ui.png' }); aMView.add(aMImgView); ann = MapModule.createAnnotation({ latitude: 47.49, longitude: 19.13, title: 'Text', animate: true, customView: aMView // This is the correct view, but it doesn't affect the problem, still crashing... }); map1.addAnnotation(ann); {code} Error in log: {code:java} [INFO] : dalvikvm: Could not find method org.appcelerator.titanium.proxy.TiViewProxy.toImage, referenced from method ti.map.AnnotationProxy.handleCustomView [WARN] : dalvikvm: VFY: unable to resolve virtual method 42619: Lorg/appcelerator/titanium/proxy/TiViewProxy;.toImage ()Lorg/appcelerator/kroll/KrollDict; [INFO] : I/dalvikvm-heap: Grow heap (frag case) to 16.157MB for 1048592-byte allocation [ERROR] : dalvikvm: adjustAdaptiveCoef max=4194304, min=1048576, ut=568 [WARN] : dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41d84930) [ERROR] : TiApplication: (main) [69192,69192] Sending event: exception on thread: main msg:java.lang.NoSuchMethodError: org.appcelerator.titanium.proxy.TiViewProxy.toImage; Titanium 4.1.0,2015/07/06 11:15,d57aa7d [ERROR] : TiApplication: java.lang.NoSuchMethodError: org.appcelerator.titanium.proxy.TiViewProxy.toImage [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:404) [ERROR] : TiApplication: at ti.map.ViewProxy.handleAddAnnotation(ViewProxy.java:280) [ERROR] : TiApplication: at ti.map.ViewProxy.handleMessage(ViewProxy.java:96) [ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:95) [ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:176) [ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5317) [ERROR] : TiApplication: at java.lang.reflect.Method.invokeNative(Native Method) [ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Method.java:511) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869) [ERROR] : TiApplication: at dalvik.system.NativeStart.main(Native Method) {code}

    Appcelerator JIRA | 1 year ago | Zoltan Lengyel
    java.lang.NoSuchMethodError: org.appcelerator.titanium.proxy.TiViewProxy.toImage
  2. 0

    From SDK 4.1.0 this code fails: {code:java} var aMView = Ti.UI.createView({ top: 0, zIndex: 10 }); var aMImgView = Ti.UI.createImageView({ top:0, image: 'KS_nav_ui.png' }); aMView.add(aMImgView); ann = MapModule.createAnnotation({ latitude: 47.49, longitude: 19.13, title: 'Text', animate: true, customView: aMView // This is the correct view, but it doesn't affect the problem, still crashing... }); map1.addAnnotation(ann); {code} Error in log: {code:java} [INFO] : dalvikvm: Could not find method org.appcelerator.titanium.proxy.TiViewProxy.toImage, referenced from method ti.map.AnnotationProxy.handleCustomView [WARN] : dalvikvm: VFY: unable to resolve virtual method 42619: Lorg/appcelerator/titanium/proxy/TiViewProxy;.toImage ()Lorg/appcelerator/kroll/KrollDict; [INFO] : I/dalvikvm-heap: Grow heap (frag case) to 16.157MB for 1048592-byte allocation [ERROR] : dalvikvm: adjustAdaptiveCoef max=4194304, min=1048576, ut=568 [WARN] : dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41d84930) [ERROR] : TiApplication: (main) [69192,69192] Sending event: exception on thread: main msg:java.lang.NoSuchMethodError: org.appcelerator.titanium.proxy.TiViewProxy.toImage; Titanium 4.1.0,2015/07/06 11:15,d57aa7d [ERROR] : TiApplication: java.lang.NoSuchMethodError: org.appcelerator.titanium.proxy.TiViewProxy.toImage [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:404) [ERROR] : TiApplication: at ti.map.ViewProxy.handleAddAnnotation(ViewProxy.java:280) [ERROR] : TiApplication: at ti.map.ViewProxy.handleMessage(ViewProxy.java:96) [ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:95) [ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:176) [ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5317) [ERROR] : TiApplication: at java.lang.reflect.Method.invokeNative(Native Method) [ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Method.java:511) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869) [ERROR] : TiApplication: at dalvik.system.NativeStart.main(Native Method) {code}

    Appcelerator JIRA | 1 year ago | Zoltan Lengyel
    java.lang.NoSuchMethodError: org.appcelerator.titanium.proxy.TiViewProxy.toImage
  3. 0

    Android App with Android Studio crashes because of org.json.XML

    Stack Overflow | 2 months ago | GinSonic
    java.lang.IllegalStateException: Could not execute method for android:onClick
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.NoSuchMethodError

    GitHub | 2 months ago | kimalec
    java.lang.NoSuchMethodError: org.json.JSONObject.wrap

    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

      org.appcelerator.titanium.proxy.TiViewProxy.toImage

      at ti.map.AnnotationProxy.handleCustomView()
    2. ti.map
      ViewProxy.handleMessage
      1. ti.map.AnnotationProxy.handleCustomView(AnnotationProxy.java:206)
      2. ti.map.AnnotationProxy.processOptions(AnnotationProxy.java:192)
      3. ti.map.TiUIMapView.addAnnotation(TiUIMapView.java:404)
      4. ti.map.ViewProxy.handleAddAnnotation(ViewProxy.java:280)
      5. ti.map.ViewProxy.handleMessage(ViewProxy.java:96)
      5 frames
    3. Android Platform
      ActivityThread.main
      1. android.os.Handler.dispatchMessage(Handler.java:95)
      2. android.os.Looper.loop(Looper.java:176)
      3. android.app.ActivityThread.main(ActivityThread.java:5317)
      3 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:511)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
      2 frames
    6. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame