axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r332039 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/HTTPWorker.java
Date Wed, 09 Nov 2005 14:29:38 GMT
Author: dims
Date: Wed Nov  9 06:29:35 2005
New Revision: 332039

URL: http://svn.apache.org/viewcvs?rev=332039&view=rev
Log:
ensure that simple http server logs the exceptions


Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/HTTPWorker.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/HTTPWorker.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/HTTPWorker.java?rev=332039&r1=332038&r2=332039&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/HTTPWorker.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/HTTPWorker.java
Wed Nov  9 06:29:35 2005
@@ -169,6 +169,8 @@
                     baos.toByteArray().length);
             conn.writeResponse(response);
         } catch (Throwable e) {
+            e.printStackTrace();
+            log.info(e.getMessage(), e);
             try {
                 AxisEngine engine = new AxisEngine(configurationContext);
                 if (msgContext != null) {
@@ -179,13 +181,10 @@
                     response.setBody(new ByteArrayInputStream(baos.toByteArray()));
                     setResponseHeaders(conn, request, response,baos.toByteArray().length);
                     conn.writeResponse(response);
-                } else {
-                    log.error(e, e);
-                }
+                } 
             } catch (Exception e1) {
-                log.error(e1.getMessage(), e1);
+                log.info(e1.getMessage(), e1);
             }
-            log.error(e.getMessage(), e);
         }
         return true;
     }



Mime
View raw message