This is an automated email from the ASF dual-hosted git repository. robertlazarski pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git
commit 57c32e791bc248958ecd2bf67a687fbd86070f0f Author: Robert Lazarski <robertlazar...@gmail.com> AuthorDate: Wed May 12 12:14:09 2021 -0400 AXIS2-5999 Return HTTP 404 instead 500 on 'The service cannot be found' --- .../http/src/org/apache/axis2/transport/http/AxisServlet.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/transport/http/src/org/apache/axis2/transport/http/AxisServlet.java b/modules/transport/http/src/org/apache/axis2/transport/http/AxisServlet.java index 603ec95..c33db35 100644 --- a/modules/transport/http/src/org/apache/axis2/transport/http/AxisServlet.java +++ b/modules/transport/http/src/org/apache/axis2/transport/http/AxisServlet.java @@ -392,10 +392,10 @@ public class AxisServlet extends HttpServlet { String status = (String) msgContext.getProperty(Constants.HTTP_RESPONSE_STATE); if (status == null) { - log.error("processAxisFault() found null HTTP status from the MessageContext instance, setting HttpServletResponse status to: " + Constants.HTTP_RESPONSE_STATE); + log.error("processAxisFault() found a null HTTP status from the MessageContext instance, setting HttpServletResponse status to: " + Constants.HTTP_RESPONSE_STATE); res.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); } else { - log.error("processAxisFault() found HTTP status from the MessageContext instance, setting HttpServletResponse status to: " + status); + log.error("processAxisFault() found an HTTP status from the MessageContext instance, setting HttpServletResponse status to: " + status); res.setStatus(Integer.parseInt(status)); return; }