Closed yoku0206 closed 1 year ago
Without more information on how to reproduce the problem, no one knows what happened... :-D
// build.gradle.kts
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.14.0")
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.0")
implementation("com.fasterxml.jackson.core:jackson-databind:2.14.0")
val mapper = ObjectMapper(YAMLFactory()).registerKotlinModule()
This is my code, i saw this code form Usage and use it, but it only give me this error
That is not code showing any failure, it's just initialization. Closing for now; may be reopened with reproduction.
@yoku0206 I also hit the same error in my project with apache pulsar. In my case, the problem was the order of class loading. Pulsar was bringing the kotlin-stdlib
1.4.32 where as Jackson wanted the higher version of kotlin-stdlib
. See if that is the case for you also. Some of your libraries might have a dependency on a different version of kotlin-stdlib
and that might be getting loaded first and that version is different than the one Jackson requires.
I don't know what happend