activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r704056 - /activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServlet.java
Date Mon, 13 Oct 2008 12:10:29 GMT
Author: dejanb
Date: Mon Oct 13 05:10:29 2008
New Revision: 704056

URL: http://svn.apache.org/viewvc?rev=704056&view=rev
Log:
fix for AMQ-1960

Modified:
    activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServlet.java

Modified: activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServlet.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServlet.java?rev=704056&r1=704055&r2=704056&view=diff
==============================================================================
--- activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServlet.java
(original)
+++ activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServlet.java
Mon Oct 13 05:10:29 2008
@@ -123,7 +123,9 @@
                    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);



Mime
View raw message