java.lang.NoSuchMethodException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

I downgraded to spark-notebook scala 2.10 with hadoop 2.6.0 then it worked. Finally switched to Apache Drill, works like a charm for diverse datasets.


rprp

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • 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.
    via by Rodolfo Perottoni,
  • 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}
    via by Kai De Sutter,
  • Inflating Custom Linear Layouts at runtime
    via Stack Overflow by asdec90
    ,
  • Error inflating Binary XML file
    via Stack Overflow by Muhammad
    ,
  • GitHub comment 65#87628410
    via GitHub by sannies
    ,
  • NG 0.8 FC on Moto X 5.1
    via GitHub by agoston
    ,
    • java.lang.NoSuchMethodException: <init> [class org.appcelerator.titanium.TiContext] at java.lang.Class.getConstructor(Class.java:531) at java.lang.Class.getConstructor(Class.java:495) at org.appcelerator.kroll.KrollProxy.createDeprecatedProxy(KrollProxy.java:161) at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method) at org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:62) at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:918) at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1141) at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:357) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

    Users with the same issue

    Hiren AmaliyarHiren Amaliyar
    2 times, last one,
    Unknown UserUnknown User
    2 times, last one,
    bmacedobmacedo
    6 times, last one,
    filpgamefilpgame
    10 times, last one,
    ajinkya_wajinkya_w
    1 times, last one,
    65 more bugmates