-
Notifications
You must be signed in to change notification settings - Fork 615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configured object mapper will be ignored by Spring Cloud Stream 4.1.3 when serialising messages #2977
Comments
Just in case this helps anybody else, I've recently come across the same issue, and after some debugging I realised that the I've managed to work around it by defining my own Bean like this: @Bean
public JsonMessageConverter customJsonMessageConverter(ObjectMapper objectMapper) {
return new JsonMessageConverter(new JacksonMapper(objectMapper));
} That bean came first within the collection of converters automatically injected in |
This has just been resolved in spring-cloud-function - spring-cloud/spring-cloud-function#1162 Give i a shot and let me know so we can close it. |
….1.3 failing to deserialize objects (spring-cloud/spring-cloud-stream#2977) causing pubsub steam dead letter test to fail
….1.3 failing to deserialize objects (spring-cloud/spring-cloud-stream#2977) causing pubsub steam dead letter test to fail
….1.3 failing to deserialize objects (spring-cloud/spring-cloud-stream#2977) causing pubsub functional sample test to fail
…est #3139 (#3145) * fix: Added object mapper bean to fix issue with spring cloud stream 4.1.3 failing to deserialize objects (spring-cloud/spring-cloud-stream#2977) causing pubsub steam dead letter and functional sample test to fail
Describe the issue
Configured object mapper will be ignored when serializing messages leading to a deserialisation error in an integration test.
To Reproduce
Build and test https://github.com/andrashatvani/spring-demo/ before and after setting Spring Cloud 2023.0.3 in the POM.
Version of the framework
Spring Cloud 2023.0.3
Expected behavior
All tests pass.
The text was updated successfully, but these errors were encountered: