Closed marcosscriven closed 6 years ago
You have library version incompatibility somewhere: probably older (minor version of) jackson-databind
and newer (minor version of) jackson-datatype-jsr310
. While patch versions need not match (although it is preferable they do), minor versions must match in that version being depended on is not lower (that is, minor version of jackson-databind
has to be at least that of datatype libraries). Some mismatched version do work but not all.
Thanks @cowtowncoder - you are correct. It seems jackson-core
was being downgraded by importing the spring boot dependencies pom http://central.maven.org/maven2/org/springframework/boot/spring-boot-dependencies/1.5.7.RELEASE/spring-boot-dependencies-1.5.7.RELEASE.pom
@marcosscriven Ok good that you were able to figure this out -- such problems are sometimes tricky to solve.
I'm currently using 2.9.6 and just enabled the Jdk8Module
Deserialising Optionals results in the trace below. Downgrading just the Jdk8Module artifact to the latest 2.8.x version fixes the issue.