axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/transport/http AxisServlet.java
Date Sat, 23 Apr 2005 01:46:20 GMT
dims        2005/04/22 18:46:20

  Modified:    java/src/org/apache/axis/transport/http AxisServlet.java
  Log:
  Fix for AXIS-1928 - Non-Exception Throwables are not logged
  
  Revision  Changes    Path
  1.190     +8 -0      ws-axis/java/src/org/apache/axis/transport/http/AxisServlet.java
  
  Index: AxisServlet.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/transport/http/AxisServlet.java,v
  retrieving revision 1.189
  retrieving revision 1.190
  diff -u -r1.189 -r1.190
  --- AxisServlet.java	20 Apr 2005 23:55:18 -0000	1.189
  +++ AxisServlet.java	23 Apr 2005 01:46:20 -0000	1.190
  @@ -727,6 +727,14 @@
                   responseMsg = convertExceptionToAxisFault(e, responseMsg);
                   ((org.apache.axis.SOAPPart) responseMsg.getSOAPPart()).
                           getMessage().setMessageContext(msgContext);
  +            } catch (Throwable t) {
  +                logException(t);
  +                //other exceptions are internal trouble
  +                responseMsg = msgContext.getResponseMessage();
  +                res.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
  +                responseMsg = new Message(new AxisFault(t.toString(),t));
  +                ((org.apache.axis.SOAPPart) responseMsg.getSOAPPart()).
  +                        getMessage().setMessageContext(msgContext);
               }
           } catch (AxisFault fault) {
               processAxisFault(fault);
  
  
  

Mime
View raw message