https://kotlinlang.org logo
Title
p

Paulien van Alst

05/04/2021, 10:59 AM
Hey guys, I am introducing http4k in a project at work and I somehow get an error when serializing with Jackson in my http client:
java.lang.NoSuchMethodError: com.fasterxml.jackson.module.kotlin.KotlinModule
I am using versio
2.10.2
of
com.fasterxml.jaclson.module
and version
4.8.0.0
of http4k. How can I fix this?
nvm upgrading to 2.12.1 was fixing it….
d

dave

05/04/2021, 11:21 AM
🙂
One other thing - you don't actually need to import Jackson separately as it's transitive on the Jackson module.
p

Paulien van Alst

05/06/2021, 6:19 AM
I know that, but I try to integrate it in a project where jackson was already present ..
d

dave

05/06/2021, 8:48 AM
aha - ok. 🙂 . Jackson does tend to have incompatibilities which end up with this type of thing. Also worthy of caution is when the version of Kotlin-reflect JAR varies because that also affects things. And playing with a Kotlin 1.5.0 upgrade yesterday also threw up a few potentially worrying bits around this.. 🙄
@Paulien van Alst if you get any other weird behaviours, just yell and we'll see if we can help. 🙂
p

Paulien van Alst

05/06/2021, 8:49 AM
haha I can imagine! If I see weird things I will pop-up again! Thank you for your help