Camel extensions for Quarkus: REST endpoint fails with "java.time.LocalDate not supported by default"

Solution Verified - Updated -

Issue

A REST endpoint in a Camel route on Quarkus throws this exception when Jackson tries to convert a JSON data field to a Java date/time type:

"Java 8 date/time type `java.time.LocalDate` not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310"

Adding the dependency for jackson-datatype-jsr310 does not help.

Environment

  • Red Hat Camel Extensions for Quarkus
    • 2.10.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content