axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cristian Draghici (JIRA)" <j...@apache.org>
Subject [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
Date Wed, 11 Sep 2013 10:30:52 GMT
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


Mime
View raw message