Default configuration of AbstractMessageChannelMessagingSendingTemplate leads to Jackson error: "Could not write JSON: Java 8 date/time type java.time.Instant not supported by default" #407
Labels
component: sns
SNS integration related issue
status: waiting-for-feedback
Waiting for feedback from issuer
type: question
Further information is requested
Type: Bug
Component: SNS
Describe the bug
Using Spring Cloud AWS 2.4.1, Spring Cloud 2021.0.2, and Spring Boot 2.7.0.
This issue is similar to a previous issue with SQS (#217) but occurs when trying to send SNS messages (NotificationMessagingTemplate.convertAndSend) that contains fields of Java date/time types. It leads to the following Jackson error:
"Could not write JSON: Java 8 date/time type java.time.Instant not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling". Adding JSR310 dependency to the classpath does not resolve this issue.
The text was updated successfully, but these errors were encountered: