geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r505148 - /geronimo/server/branches/1.2/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanInstance.java
Date Fri, 09 Feb 2007 02:50:43 GMT
Author: dain
Date: Thu Feb  8 18:50:42 2007
New Revision: 505148

URL: http://svn.apache.org/viewvc?view=rev&rev=505148
Log:
Write status message before rethrowing exception

Modified:
    geronimo/server/branches/1.2/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanInstance.java

Modified: geronimo/server/branches/1.2/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanInstance.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/1.2/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanInstance.java?view=diff&rev=505148&r1=505147&r2=505148
==============================================================================
--- geronimo/server/branches/1.2/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanInstance.java
(original)
+++ geronimo/server/branches/1.2/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanInstance.java
Thu Feb  8 18:50:42 2007
@@ -936,12 +936,12 @@
                 instance = constructor.newInstance(parameters);
             } catch (InvocationTargetException e) {
                 Throwable targetException = e.getTargetException();
+                stateReason = "the service constructor threw an exception. \n" + printException(e);
                 if (targetException instanceof Exception) {
                     throw (Exception) targetException;
                 } else if (targetException instanceof Error) {
                     throw (Error) targetException;
                 }
-                stateReason = "the service constructor threw an exception. \n" + printException(e);
                 throw e;
             } catch (IllegalArgumentException e) {
                 stateReason = "the service constructor threw an exception due to a parameter
type mismatch. \n" + printException(e);



Mime
View raw message