geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r950160 - /geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/basic/BasicRegistry.java
Date Tue, 01 Jun 2010 16:54:11 GMT
Author: djencks
Date: Tue Jun  1 16:54:11 2010
New Revision: 950160

URL: http://svn.apache.org/viewvc?rev=950160&view=rev
Log:
Better exception message

Modified:
    geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/basic/BasicRegistry.java

Modified: geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/basic/BasicRegistry.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/basic/BasicRegistry.java?rev=950160&r1=950159&r2=950160&view=diff
==============================================================================
--- geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/basic/BasicRegistry.java
(original)
+++ geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/basic/BasicRegistry.java
Tue Jun  1 16:54:11 2010
@@ -85,7 +85,7 @@ public class BasicRegistry implements In
     public synchronized void register(GBeanInstance gbeanInstance) throws GBeanAlreadyExistsException
{
         ObjectName name = normalizeObjectName(gbeanInstance.getObjectNameObject());
         if (objectNameRegistry.containsKey(name)) {
-            throw new GBeanAlreadyExistsException("GBean already registered: " + name);
+            throw new GBeanAlreadyExistsException("Cannot register GBean with abstract name:
" + gbeanInstance.getAbstractName() + ", GBean with abstract name: " + objectNameRegistry.get(name).getAbstractName()
+ " already registered under ObjectName: " + name);
         }
         objectNameRegistry.put(name, gbeanInstance);
         infoRegistry.put(gbeanInstance.getAbstractName(), gbeanInstance);



Mime
View raw message