Non-Exception Throwables are not logged
---------------------------------------
Key: AXIS-1928
URL: http://issues.apache.org/jira/browse/AXIS-1928
Project: Axis
Type: Bug
Components: Basic Architecture
Versions: 1.2RC3
Reporter: Thomas Leonard
If an Exception is thrown when processing a SOAP message, Axis logs the fault.
However, Java can also throw other kinds of objects. For example,
NoClassDefFoundError is a subclass of Error, which extends Throwable. Such
errors are not logged and are therefore extremely difficult to track down.
A simple solution would be to change AxisServlet.java, eg:
--- AxisServlet.java.old 2005-03-01 03:41:19.000000000 +0000
+++ AxisServlet.java 2005-04-14 13:59:15.577334088 +0100
@@ -718,7 +718,7 @@
((org.apache.axis.SOAPPart) responseMsg.getSOAPPart()).
getMessage().setMessageContext(msgContext);
}
- } catch (Exception e) {
+ } catch (Throwable e) {
//other exceptions are internal trouble
responseMsg = msgContext.getResponseMessage();
res.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
Thanks,
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira