added check for IllegalStateException on unexpected exception thrown from method invcation

This commit is contained in:
Mark Fisher
2011-08-24 21:03:18 -04:00
parent f81c9e1d7b
commit bdc5dd9f85

View File

@@ -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();