Rest API failing to respond for variables that contain LocalDateTime


First of all, we are currently running Camunda Platform 7.16 with Spring-boot.

We have been struggling a lot with Java 8 LocalDate and LocalDateTime.

Our latest issue is, that when we try to view any object from cockpit with localDateTime in it, we get a http 400.

It appears to originate from the rest API which repsonds to the variable query with:

Java 8 date/time type java.time.LocalDateTime not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling (through reference chain:["value"]->actual.classpathHidden.SomeRandomDto["creationTime"])

We already have in our pom.xml (well, the super-pom to be precise):

<!-- Time OUT/IN JSON handling-->

jackson-version is 2.13.0 if it matters.

This does the trick so that our Java code in the delegates can handle to LocalDates and LocaDateTimes, but rest api is still failing to present them.

Can someone help us understand what we are missing?

Hello @JussiL ,

do you have SPIN for data serialization?
If yes, do you use dataformat-all?
If yes, change it to dataformat-jackson-json.

The problem is that dataformat-all uses shaded jackson which is (as I see it) not able to be extended.

This is why you need dataformat-jackson-json if you want to extend it engine-wise.

I hope this helps.


Hi Jonathan!

Thanks for the reply. I will definetly try it.