removed e.printStackTrace

This commit is contained in:
Mark Fisher
2010-08-23 14:35:17 +00:00
parent 67b415c991
commit e4a8e71847

View File

@@ -196,14 +196,13 @@ public abstract class AbstractMessagingGateway extends AbstractEndpoint {
reply = this.messagingTemplate.sendAndReceive(this.requestChannel, message);
if (reply instanceof ErrorMessage) {
error = ((ErrorMessage) reply).getPayload();
}
}
}
catch (Exception e) {
e.printStackTrace();
logger.warn("failure occurred in gateway sendAndReceive.", e);
error = e;
}
if (error != null && this.exceptionMapper != null) {
try {
// create a reply message from the error