Skip to content
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

stream bridge consumer class not consuming on 2023.0.3 #2993

Closed
SanzarRehman opened this issue Aug 21, 2024 · 3 comments
Closed

stream bridge consumer class not consuming on 2023.0.3 #2993

SanzarRehman opened this issue Aug 21, 2024 · 3 comments
Labels

Comments

@SanzarRehman
Copy link

Describe the bug
Serialization is not working on 2023.0.3 , same code working on 2023.0.2

Sample
Getting this error

stream bridge consumer class [B cannot be cast to class com.b.notificatoin.client.SmsNotification ([B is in module java.base of loader 'bootstrap'; com.b.notificatoin.client.SmsNotification is in unnamed module of loader 'app')

@Bean public Consumer<SmsNotification> sms() { return sms -> { log.debug("[SMS Consumer]: " + sms.getKey()); }; }

@olegz
Copy link
Contributor

olegz commented Aug 21, 2024

There is not enough information for us to diagnose especially since StreamBridge is sending message out to a messaging destination and your consumer is retrieving it from such destination. So effectively your consumer has nothing to do with StreamBridge.
Please provide a sample test/application that reproduces the issue you are describing

@SanzarRehman
Copy link
Author

similar issue found #2977

@Bean public JsonMessageConverter customJsonMessageConverter(ObjectMapper objectMapper) { return new JsonMessageConverter(new JacksonMapper(objectMapper)); }

Working with this bean . There is nothing wrong with producer . 

@olegz
Copy link
Contributor

olegz commented Aug 21, 2024

And if you read last comment on that issue, that particular issue has been addressed and I am just waiting for the user to confirm so I can close it
That said, neither of the issues has anything to do with StreamBridge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants