fix for AMQ-1960

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@704056 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2008-10-13 12:10:29 +00:00
parent d261412058
commit ac2d263e24
1 changed files with 3 additions and 1 deletions

View File

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