added check for IllegalStateException on unexpected exception thrown from method invcation
This commit is contained in:
@@ -315,8 +315,10 @@ public class GatewayProxyFactoryBean extends AbstractEndpoint implements Trackab
|
||||
throw t;
|
||||
}
|
||||
}
|
||||
if ((t instanceof RuntimeException) &&
|
||||
!(t instanceof MessagingException) && !(t instanceof UndeclaredThrowableException)) {
|
||||
if (t instanceof RuntimeException
|
||||
&& !(t instanceof MessagingException)
|
||||
&& !(t instanceof UndeclaredThrowableException)
|
||||
&& !(t instanceof IllegalStateException && ("Unexpected exception thrown").equals(t.getMessage()))) {
|
||||
throw t;
|
||||
}
|
||||
t = t.getCause();
|
||||
|
||||
Reference in New Issue
Block a user