Hey guys, I am introducing http4k in a project at...
# http4k
p
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
🙂
One other thing - you don't actually need to import Jackson separately as it's transitive on the Jackson module.
p
I know that, but I try to integrate it in a project where jackson was already present ..
d
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
haha I can imagine! If I see weird things I will pop-up again! Thank you for your help