Jackson cannot access com.fasterxml.jackson.core.ObjectCodec
When I had this problem I had the jackson-annotations and jackson-databind jars in my classpath, but not jackson-core.
Adding jackson-core to the classpath solved it for me.
I was having a similar issue, it turned out to be an IntelliJ issue.
This helped me to resolve the issue:
Try File > Invalidate Caches > Invalidate and Restart
.
If it doesn't help, delete .idea
directory and reimport from pom/gradle build file.
Also double check that all your Jackson dependencies use the same version like below :
implementation 'com.fasterxml.jackson.core:jackson-core:2.10.1'implementation 'com.fasterxml.jackson.core:jackson-annotations:2.10.1'implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.10.1'implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.10.1'
I previously had jackson-core:2.11.0
and this was the issue.