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 "Cristian Draghici (JIRA)" <ji...@apache.org> on 2013/09/11 12:30:52 UTC
[jira] [Created] (AXIS2-5605) When a malformed SOAP body is
received (e.g. a xs:string sent in place of a xs:int) server side log is
useless
Cristian Draghici created AXIS2-5605:
----------------------------------------
Summary: When a malformed SOAP body is received (e.g. a xs:string sent in place of a xs:int) server side log is useless
Key: AXIS2-5605
URL: https://issues.apache.org/jira/browse/AXIS2-5605
Project: Axis2
Issue Type: Improvement
Components: transports
Affects Versions: 1.6.2
Reporter: Cristian Draghici
Priority: Minor
In AxisServlet.java, method doPost:
catch (AxisFault e) {
202 setResponseState(msgContext, response);
203 log.debug(e);
204 if (msgContext != null) {
205 processAxisFault(msgContext, response, out, e);
206 } else {
207 throw new ServletException(e);
208 }
In "log.debug(e);" the log level should be changed to info or error.
And the debug method should also receive the AxisFault object, i.e.:
log.info(e, e);
so that log4j/slf4j whatever logging is in place records the stacktrace in the server side log.
In cases where the SOAP input is malformed (e.g. xs:string sent in place of xs:int) the code never exits auto-generated code and this debug line is all there is left in the server log file.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org