You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Thomas Leonard (JIRA)" <ax...@ws.apache.org> on 2005/04/14 15:11:17 UTC
[jira] Created: (AXIS-1928) Non-Exception Throwables are not logged
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
[jira] Resolved: (AXIS-1928) Non-Exception Throwables are not logged
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1928?page=all ]
Davanum Srinivas resolved AXIS-1928:
------------------------------------
Resolution: Fixed
done.
thanks,
dims
> 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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira