You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GH-1339: Fix NPEs with returns after conversion ex
Resolves#1339
Previous fix calls the error handler after a conversion exception, but
sending a reply returned by the eh (or returning the exception) caused
NPEs because the return logic referenced the inbound converted message.
**cherry-pick to 2.2.x**
Copy file name to clipboardExpand all lines: spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/adapter/AbstractAdaptableMessageListener.java
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2014-2020 the original author or authors.
2
+
* Copyright 2014-2021 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -176,9 +176,11 @@ public void setResponseExchange(String responseExchange) {
176
176
* that return result objects, which will be wrapped in
177
177
* a response message and sent to a response destination.
178
178
* <p>
179
+
* It is parsed in {@link Address} so should be of the form exchange/rk.
180
+
* <p>
179
181
* It can be a string surrounded by "!{...}" in which case the expression is
180
182
* evaluated at runtime; see the reference manual for more information.
Copy file name to clipboardExpand all lines: spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/adapter/MessagingMessageListenerAdapter.java
Copy file name to clipboardExpand all lines: spring-rabbit/src/test/java/org/springframework/amqp/rabbit/listener/adapter/MessagingMessageListenerAdapterTests.java
0 commit comments