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

Appcelerator JIRA | Rodolfo Perottoni | 3 months ago
  1. 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 | 3 months ago | Rodolfo Perottoni
    java.lang.NoSuchMethodException: <init> [class org.appcelerator.titanium.TiContext]
  2. 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]
  3. 0

    Inflating Custom Linear Layouts at runtime

    Stack Overflow | 1 year ago | asdec90
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.goldvip.crownit/com.goldvip.crownit.LandingPageActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class com.goldvip.interfaces.LandingPageLinearLayout
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Custom view not working in Android Lollipop

    Stack Overflow | 1 year ago | Gnana Soundari
    java.lang.NoSuchMethodException: <init> [class android.content.Context, interface android.util.AttributeSet]
  6. 0

    Error inflating Binary XML file

    Stack Overflow | 1 year ago | Muhammad
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mibag/com.mibag.PartnerListDetail_Activity}: android.view.InflateException: Binary XML file line #9: Error inflating class com.mibag.utils.LockableScrollView

  1. Riyaz 2 times, last 5 days ago
  2. bmacedo 6 times, last 6 days ago
  3. bluebunnty 1 times, last 2 weeks ago
  4. Aria Pahlavan 1 times, last 3 weeks ago
  5. Alexandru Popa 4 times, last 3 weeks ago
23 more registered users
24 unregistered visitors
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:531)
    2. java.lang.Class.getConstructor(Class.java:495)
    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. Android Platform
    ActivityThread.main
    1. android.os.Handler.dispatchMessage(Handler.java:98)
    2. android.os.Looper.loop(Looper.java:135)
    3. android.app.ActivityThread.main(ActivityThread.java:5254)
    3 frames
  6. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  7. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
    2 frames