geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r542575 - in /geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime: GBeanInstance.java GBeanInstanceState.java
Date Tue, 29 May 2007 16:02:58 GMT
Author: dwoods
Date: Tue May 29 09:02:57 2007
New Revision: 542575

URL: http://svn.apache.org/viewvc?view=rev&rev=542575
Log:
GERONIMO-2598 Deploy tool prints useless message if configuration start fails.  Rakesh, thanks
for the patch.

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

Modified: geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanInstance.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanInstance.java?view=diff&rev=542575&r1=542574&r2=542575
==============================================================================
--- geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanInstance.java
(original)
+++ geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanInstance.java
Tue May 29 09:02:57 2007
@@ -449,6 +449,14 @@
     }
 
     /**
+     * Sets the reason we are in the current state.
+     * @param reason  The reason we are in the current state
+     */
+    public void setStateReason(String reason) {
+        stateReason = reason;
+    }
+    
+    /**
      * The java type of the wrapped gbean instance
      *
      * @return the java type of the gbean

Modified: geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanInstanceState.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanInstanceState.java?view=diff&rev=542575&r1=542574&r2=542575
==============================================================================
--- geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanInstanceState.java
(original)
+++ geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanInstanceState.java
Tue May 29 09:02:57 2007
@@ -213,6 +213,7 @@
                 return;
             }
         } catch (Throwable e) {
+            gbeanInstance.setStateReason(e.getMessage());
             log.warn("Problem in doFail", e);
         }
         setStateInstance(State.FAILED);
@@ -279,6 +280,7 @@
 
             if (t instanceof Exception) {
                 // ignore - we only rethrow errors
+                gbeanInstance.setStateReason(t.getMessage());
                 return;
             } else if (t instanceof Error) {
                 throw (Error) t;
@@ -346,6 +348,7 @@
 
             if (t instanceof Exception) {
                 // ignore - we only rethrow errors
+                gbeanInstance.setStateReason(t.getMessage());
                 return;
             } else if (t instanceof Error) {
                 throw (Error) t;



Mime
View raw message