-
Notifications
You must be signed in to change notification settings - Fork 626
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
@sendTo does not work with errorHandler #1021
Comments
Yes, it's a bug; it works if the incoming message has a |
Hi Gary, Is it not possible to fix it 2.1.6 ? is it already prepared to ship. |
Yes, Gary has marked it to be fixed in the upcoming And yes: a contribution is more than welcome! Please, consider to raise PR against Thank you! |
It turns out this is only a problem on class-level I went ahead and fixed it because we need to release tomorrow. |
spring-projects#1021 Sending the result from a `RabbitListenerErrorHandler` was broken for class-level `@RabbitListener` because the send to expression was lost. **cherry-pick to 2.1.x**
spring-projects#1021 Sending the result from a `RabbitListenerErrorHandler` was broken for class-level `@RabbitListener` because the send to expression was lost. **cherry-pick to 2.1.x**
Fixes #1021 Sending the result from a `RabbitListenerErrorHandler` was broken for class-level `@RabbitListener` because the send to expression was lost. **cherry-pick to 2.1.x** * * Also capture the generic return type after the error is handled # Conflicts: # spring-rabbit/src/test/java/org/springframework/amqp/rabbit/annotation/EnableRabbitIntegrationTests.java
Affects Version(s): 2.1.5
Question
I am using @sendto annotation with RabbitListenerErrorHandler errorHandler().
But I am getting following error:
Bug report
When debugged in detail I found out that MessagingMessageListenerAdapter.onMessage() function always create the InvocationResult with null sendTo and null Type; while calling the handleResult().
Well according to documentation mentioned here https://docs.spring.io/spring-amqp/docs/2.1.5.RELEASE/api/ in Interface RabbitListenerErrorHandler
"Handle the error. If an exception is not thrown, the return value is returned to the sender using normal replyTo/@sendto semantics."
I think we can fix the bug by createing InvocationResult with different Expression value or something.
The text was updated successfully, but these errors were encountered: