java.lang.NoSuchMethodException: <init> [class org.appcelerator.titanium.TiContext]

Appcelerator JIRA | Kai De Sutter | 3 months ago
  1. 0

    When requiring any kind of Android library, native or 3th party, in any of my apps (even vanilla), I receive an "Error creating proxy" error: {code} [ERROR] KrollProxy: (main) [14293,19746] Error creating proxy [ERROR] KrollProxy: java.lang.NoSuchMethodException: <init> [class org.appcelerator.titanium.TiContext] [ERROR] KrollProxy: at java.lang.Class.getConstructor(Class.java:528) [ERROR] KrollProxy: at java.lang.Class.getConstructor(Class.java:492) [ERROR] KrollProxy: at org.appcelerator.kroll.KrollProxy.createDeprecatedProxy(KrollProxy.java:161) [ERROR] KrollProxy: at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method) [ERROR] KrollProxy: at org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:62) [ERROR] KrollProxy: at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:918) [ERROR] KrollProxy: at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1141) [ERROR] KrollProxy: at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:357) [ERROR] KrollProxy: at ti.modules.titanium.ui.widget.listview.ListViewProxy.handleMessage(ListViewProxy.java:312) [ERROR] KrollProxy: at android.os.Handler.dispatchMessage(Handler.java:98) [ERROR] KrollProxy: at android.os.Looper.loop(Looper.java:234) [ERROR] KrollProxy: at android.app.ActivityThread.main(ActivityThread.java:5526) [ERROR] KrollProxy: at java.lang.reflect.Method.invoke(Native Method) [ERROR] KrollProxy: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) [ERROR] KrollProxy: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) {code} For example: {code:javascript} var SipManager = require("android.net.sip.SipManager"); {code}

    Appcelerator JIRA | 3 months ago | Kai De Sutter
    java.lang.NoSuchMethodException: <init> [class org.appcelerator.titanium.TiContext]
  2. 0

    I'm getting an exception when requiring an native class inside an *.aar* file with HyperLoop. This is the lib: [AppIntro|https://github.com/PaoloRotolo/AppIntro]. I'm just requiring the module, like this: {code:java} var test = require('com.github.paolorotolo.appintro.AppIntro'); {code} Then an exception followed by a huge JNI error is thrown: {code:java} [ERROR] KrollProxy: (main) [2229,8139] Error creating proxy [ERROR] KrollProxy: java.lang.NoSuchMethodException: <init> [class org.appcelerator.titanium.TiContext] [ERROR] KrollProxy: at java.lang.Class.getConstructor(Class.java:531) [ERROR] KrollProxy: at java.lang.Class.getConstructor(Class.java:495) [ERROR] KrollProxy: at org.appcelerator.kroll.KrollProxy.createDeprecatedProxy(KrollProxy.java:161) [ERROR] KrollProxy: at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method) [ERROR] KrollProxy: at org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:62) [ERROR] KrollProxy: at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:918) [ERROR] KrollProxy: at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1141) [ERROR] KrollProxy: at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:357) [ERROR] KrollProxy: at android.os.Handler.dispatchMessage(Handler.java:98) [ERROR] KrollProxy: at android.os.Looper.loop(Looper.java:135) [ERROR] KrollProxy: at android.app.ActivityThread.main(ActivityThread.java:5254) [ERROR] KrollProxy: at java.lang.reflect.Method.invoke(Native Method) [ERROR] KrollProxy: at java.lang.reflect.Method.invoke(Method.java:372) [ERROR] KrollProxy: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) [ERROR] KrollProxy: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) {code} Full JNI error is attached. This error only happens if i use HyperLoop 1.2.6. Tried using both 5.4.0.GA and 5.5.0 Beta SDKS, but it doesn't seem to be interfering with the error. Tried setting use-jscore-framework to false/true, but it also doesn't seem to be the cause of the problem.

    Appcelerator JIRA | 4 months ago | Rodolfo Perottoni
    java.lang.NoSuchMethodException: <init> [class org.appcelerator.titanium.TiContext]
  3. 0

    GitHub comment 55#171979940

    GitHub | 11 months ago | jariz
    java.lang.NoSuchMethodException: <init> [class android.content.Context]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 129#205118811

    GitHub | 8 months ago | vxhviet
    java.lang.RuntimeException: java.lang.NoSuchMethodException: <init> [class org.jcodec.containers.mp4.boxes.Header]
  6. 0

    Authentication work only in debug but not release mode

    Stack Overflow | 5 months ago | Simon Ho
    java.lang.RuntimeException: java.lang.NoSuchMethodException: <init> [class android.view.View]
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.NoSuchMethodException

    <init> [class org.appcelerator.titanium.TiContext]

    at java.lang.Class.getConstructor()
  2. Java RT
    Class.getConstructor
    1. java.lang.Class.getConstructor(Class.java:528)
    2. java.lang.Class.getConstructor(Class.java:492)
    2 frames
  3. org.appcelerator.kroll
    KrollProxy.handleMessage
    1. org.appcelerator.kroll.KrollProxy.createDeprecatedProxy(KrollProxy.java:161)
    2. org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)
    3. org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:62)
    4. org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:918)
    5. org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1141)
    5 frames
  4. org.appcelerator.titanium
    TiViewProxy.handleMessage
    1. org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:357)
    1 frame
  5. ti.modules.titanium
    ListViewProxy.handleMessage
    1. ti.modules.titanium.ui.widget.listview.ListViewProxy.handleMessage(ListViewProxy.java:312)
    1 frame
  6. Android Platform
    ActivityThread.main
    1. android.os.Handler.dispatchMessage(Handler.java:98)
    2. android.os.Looper.loop(Looper.java:234)
    3. android.app.ActivityThread.main(ActivityThread.java:5526)
    3 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  8. 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