geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r106786 - /geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/kernel/Kernel.java
Date Sun, 28 Nov 2004 04:56:23 GMT
Author: adc
Date: Sat Nov 27 20:56:21 2004
New Revision: 106786

URL: http://svn.apache.org/viewcvs?view=rev&rev=106786
Log:
Temporary work around.
Modified:
   geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/kernel/Kernel.java

Modified: geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/kernel/Kernel.java
Url: http://svn.apache.org/viewcvs/geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/kernel/Kernel.java?view=diff&rev=106786&p1=geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/kernel/Kernel.java&r1=106785&p2=geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/kernel/Kernel.java&r2=106786
==============================================================================
--- geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/kernel/Kernel.java	(original)
+++ geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/kernel/Kernel.java	Sat Nov
27 20:56:21 2004
@@ -411,6 +411,8 @@
             invoke(name, "start");
         } catch (InstanceNotFoundException e) {
             throw e;
+        } catch (GBeanNotFoundException e) {
+            throw new InstanceNotFoundException("No instance found: " + name);
         } catch (Exception e) {
             throw new InvalidConfigException("Invalid GBean configuration for " + name, unwrapJMException(e));
         }
@@ -421,6 +423,8 @@
             invoke(name, "startRecursive");
         } catch (InstanceNotFoundException e) {
             throw e;
+        } catch (GBeanNotFoundException e) {
+            throw new InstanceNotFoundException("No instance found: " + name);
         } catch (Exception e) {
             throw new InvalidConfigException("Invalid GBean configuration for " + name, e);
         }
@@ -431,6 +435,8 @@
             invoke(name, "stop");
         } catch (InstanceNotFoundException e) {
             throw e;
+        } catch (GBeanNotFoundException e) {
+            throw new InstanceNotFoundException("No instance found: " + name);
         } catch (Exception e) {
             throw new InvalidConfigException("Invalid GBean configuration for " + name, e);
         }

Mime
View raw message