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 di...@apache.org on 2006/09/26 16:33:33 UTC

svn commit: r450062 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/DependencyManager.java

Author: dims
Date: Tue Sep 26 07:33:32 2006
New Revision: 450062

URL: http://svn.apache.org/viewvc?view=rev&rev=450062
Log:
Fix for AXIS2-1228 - startUp() ignores exceptions

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/DependencyManager.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/DependencyManager.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/DependencyManager.java?view=diff&rev=450062&r1=450061&r2=450062
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/DependencyManager.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/DependencyManager.java Tue Sep 26 07:33:32 2006
@@ -28,6 +28,8 @@
 import org.apache.axis2.description.AxisServiceGroup;
 import org.apache.axis2.description.Parameter;
 import org.apache.axis2.i18n.Messages;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 
 import java.lang.reflect.InvocationTargetException;
 import java.lang.reflect.Method;
@@ -38,6 +40,7 @@
  * the DependencyManager calls the init method with appropriate parameters.
  */
 public class DependencyManager {
+    private static final Log log = LogFactory.getLog(DependencyManager.class);
     public final static String MESSAGE_CONTEXT_INJECTION_METHOD = "setOperationContext";
     public final static String SERVICE_INIT_METHOD = "init";
     public final static String SERVICE_START_METHOD = "startUp";
@@ -70,12 +73,16 @@
                 }
             }
         } catch (SecurityException e) {
+            log.info("Exception trying to call " + MESSAGE_CONTEXT_INJECTION_METHOD, e);
             throw new AxisFault(e);
         } catch (IllegalArgumentException e) {
+            log.info("Exception trying to call " + MESSAGE_CONTEXT_INJECTION_METHOD, e);
             throw new AxisFault(e);
         } catch (IllegalAccessException e) {
+            log.info("Exception trying to call " + MESSAGE_CONTEXT_INJECTION_METHOD, e);
             throw new AxisFault(e);
         } catch (InvocationTargetException e) {
+            log.info("Exception trying to call " + MESSAGE_CONTEXT_INJECTION_METHOD, e);
             throw new AxisFault(e);
         }
     }
@@ -103,12 +110,16 @@
                 }
             }
         } catch (SecurityException e) {
+            log.info("Exception trying to call " + SERVICE_INIT_METHOD, e);
             throw new AxisFault(e);
         } catch (IllegalArgumentException e) {
+            log.info("Exception trying to call " + SERVICE_INIT_METHOD, e);
             throw new AxisFault(e);
         } catch (IllegalAccessException e) {
+            log.info("Exception trying to call " + SERVICE_INIT_METHOD, e);
             throw new AxisFault(e);
         } catch (InvocationTargetException e) {
+            log.info("Exception trying to call " + SERVICE_INIT_METHOD, e);
             throw new AxisFault(e);
         }
     }
@@ -174,6 +185,7 @@
                     }
                 }
             } catch (Exception e) {
+                log.info("Exception trying to call " + SERVICE_START_METHOD, e);
                 new AxisFault(e);
             }
         }
@@ -204,12 +216,16 @@
                 }
             }
         } catch (SecurityException e) {
+            log.info("Exception trying to call " + SERVICE_DESTROY_METHOD, e);
             throw new AxisFault(e);
         } catch (IllegalArgumentException e) {
+            log.info("Exception trying to call " + SERVICE_DESTROY_METHOD, e);
             throw new AxisFault(e);
         } catch (IllegalAccessException e) {
+            log.info("Exception trying to call " + SERVICE_DESTROY_METHOD, e);
             throw new AxisFault(e);
         } catch (InvocationTargetException e) {
+            log.info("Exception trying to call " + SERVICE_DESTROY_METHOD, e);
             throw new AxisFault(e);
         }
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org