Hello!

How to get managed with such problem?

I need to unmarshall incoming from Kafka data into POJO having one field of LocalDateTime type.

I have the route:

        from(parametersProvider.getEventsListeningEndpoint())
                .unmarshal().json(EventDto.class)

And it produces the exception:

com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Java 8 date/time type `java.time.LocalDateTime` not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling

I have these dependencies

    implementation group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310', version: '2.12.4'

    implementation group: 'org.apache.camel.springboot', name: 'camel-jackson-starter', version: '3.15.0'

    implementation group: 'org.apache.camel', name: 'camel-jackson', version: '3.15.0'     implementation group: 'org.apache.camel', name: 'camel-jacksonxml', version: '3.15.0'

but they seem don't work in this case.

How to deal with it?

--
Vyacheslav Boyko
mailto:mail4...@gmail.com

Reply via email to