Failing in Deserializing Object having java.time.OffsetDateTime using spinjar

Hi,

COdeis failing with below Exception while deserializing a Json object having java.time.OffsetDateTime I am using spinjar which uses spinjar.com.fasterxml.jackson.databind.ObjectMapper

Caused by: spinjar.com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of java.time.OffsetDateTime (no Creators, like default construct, exist): no String-argument constructor/factory method to deserialize from String value (‘2019-01-18T08:36:12.179Z’)
at [Source: UNKNOWN; line: -1, column: -1] (through reference chain: com.camunda.tutorial.twitterqa.models.FlowContext[“dateTime”])

How can I configure ObjectMapper
I saw this https://github.com/camunda/camunda-bpm-
examples/tree/master/spin/dataformat-configuration-global
but still not able to Configure ObjectMapper

1 Like

@Amit_keshri Could you please fix your link :slight_smile: :point_down:

So many views but no answer?!
Would be nice to have a solution for this issue :pray: :confounded: