[jboss-cvs] JBossAS SVN: r59853 - trunk/system-jmx/src/main/org/jboss/system.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Jan 19 13:39:08 EST 2007


Author: scott.stark at jboss.org
Date: 2007-01-19 13:39:08 -0500 (Fri, 19 Jan 2007)
New Revision: 59853

Modified:
   trunk/system-jmx/src/main/org/jboss/system/ServiceConfigurator.java
Log:
Include the known attribute names in the no attribute... exception

Modified: trunk/system-jmx/src/main/org/jboss/system/ServiceConfigurator.java
===================================================================
--- trunk/system-jmx/src/main/org/jboss/system/ServiceConfigurator.java	2007-01-19 18:31:13 UTC (rev 59852)
+++ trunk/system-jmx/src/main/org/jboss/system/ServiceConfigurator.java	2007-01-19 18:39:08 UTC (rev 59853)
@@ -126,7 +126,10 @@
             throw new DeploymentException("No or empty attribute name for " + objectName);
          MBeanAttributeInfo attributeInfo = attributeMap.get(attributeName);
          if (attributeInfo == null)
-            throw new DeploymentException("No Attribute found with name: " + attributeName + " for " + objectName);
+         {
+            throw new DeploymentException("No Attribute found with name: " + attributeName + " for " + objectName
+                  +", attributes: "+attributeMap.keySet());
+         }
 
          valueContext.setAttributeInfo(attributeInfo);
          Object value = attribute.getValue(valueContext);




More information about the jboss-cvs-commits mailing list