-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.NoSuchMethodError: No direct method <init>(IZZILkotlin/jvm/internal/DefaultConstructorMarker;)V in class Lcom/fasterxml/jackson/module/kotlin/KotlinModule; or its super classes (declaration of 'com.fasterxml.jackson.module.kotlin.KotlinModule #282
Comments
Duplicate of #279 |
Dup as per above: fix will be in 2.10.2 thanks to patch by @frost13it |
Had the same problem with 2.11.3. Switching to version 2.10.2 fixed the issue. |
Had the same issue with 2.12.1 with a kotlin library that was being imported into a java spring boot app. Downgrading to 2.10.2 fixed it |
This should be reopened as this is still a problem in 2.12.3 and 2.12.4 @cowtowncoder
|
@patrykkrawczyk I think you'll find that your application has multiple Jackson versions that are being hoisted by the build system. Look at the This isn't a bug in jackson-module-kotlin 2.12.3 or 2.12.4, but rather an API change triggered in j-m-k 2.12, so a library built against a version prior to 2.12 but run with 2.12 or greater won't be able to find the method that it was built against. |
@dinomite , could you point at exactly what was the breaking change in that module? |
Hi,
Android Studio : 3.5.3
One of my project library is using, registerModules(KotlinModule()) as
using latest version of jackson-kotlin-module -2.10.1 from maven repository
After addition of above piece, my application crash on launch spitting in logcat as ,
Process: com.potreromed.accurynmonitor, PID: 1859
java.lang.NoSuchMethodError: No direct method (IZZILkotlin/jvm/internal/DefaultConstructorMarker;)V in class Lcom/fasterxml/jackson/module/kotlin/KotlinModule; or its super classes (declaration of 'com.fasterxml.jackson.module.kotlin.KotlinModule' appears in /data/app/com.potreromed.accurynmonitor-2/base.apk)
at com.potreromed.phg.client.PhgClient$Builder.(PhgClient.kt:63)
at com.potreromed.accurynmonitor.data.net.AcmMqtt.getMqttClient(AcmMqtt.kt:66)
at com.potreromed.accurynmonitor.AccurynApplication$initPhgClient$1.run(AccurynApplication.kt:119)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
function added in the library for json support,
Tried googling, cleaned cache, rebuilding .... checking gradle app dependencies for the library conflict. So far nothing worked for me.
Regards,
Praween
The text was updated successfully, but these errors were encountered: