From e4a8e71847b6a4c16ddeb9c770815ac43a6543a9 Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Mon, 23 Aug 2010 14:35:17 +0000 Subject: [PATCH] removed e.printStackTrace --- .../integration/gateway/AbstractMessagingGateway.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spring-integration-core/src/main/java/org/springframework/integration/gateway/AbstractMessagingGateway.java b/spring-integration-core/src/main/java/org/springframework/integration/gateway/AbstractMessagingGateway.java index fb4e273f07..5a200578eb 100644 --- a/spring-integration-core/src/main/java/org/springframework/integration/gateway/AbstractMessagingGateway.java +++ b/spring-integration-core/src/main/java/org/springframework/integration/gateway/AbstractMessagingGateway.java @@ -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