From ac2d263e245353f7c7c1f0e1a8a7bf612f3f009e Mon Sep 17 00:00:00 2001 From: Bosanac Dejan Date: Mon, 13 Oct 2008 12:10:29 +0000 Subject: [PATCH] fix for AMQ-1960 git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@704056 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/activemq/web/MessageServlet.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/activemq-web/src/main/java/org/apache/activemq/web/MessageServlet.java b/activemq-web/src/main/java/org/apache/activemq/web/MessageServlet.java index a2354e22bf..051bfe646d 100644 --- a/activemq-web/src/main/java/org/apache/activemq/web/MessageServlet.java +++ b/activemq-web/src/main/java/org/apache/activemq/web/MessageServlet.java @@ -123,7 +123,9 @@ public class MessageServlet extends MessageServletSupport { answer.setText(body); writeMessageResponse(response.getWriter(), answer); } catch (Exception e) { - throw new IOException(e); + IOException ex = new IOException(); + ex.initCause(e); + throw ex; } } else { appendParametersToMessage(request, message);