Skip to content

Conversation

@fvolz
Copy link
Contributor

@fvolz fvolz commented Jan 30, 2026

When publishing events, serializing to OffsetDateTime fails

com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Java 8 date/time type java.time.OffsetDateTime not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling (or disable MapperFeature.REQUIRE_HANDLERS_FOR_JAVA8_TIMES) (through reference chain: de.fraunhofer.iosb.ilt.faaast.service.model.messagebus.event.change.ValueChangeEventMessage["oldValue"]->de.fraunhofer.iosb.ilt.faaast.service.model.value.PropertyValue["value"])

This fixes the exception throw by registering the jsr310 module in the Jackson Mapper

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants