[jboss-cvs] JBossAS SVN: r78209 - branches/Branch_4_2/jmx/src/main/org/jboss/mx/server.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Sep 8 17:07:53 EDT 2008


Author: dimitris at jboss.org
Date: 2008-09-08 17:07:53 -0400 (Mon, 08 Sep 2008)
New Revision: 78209

Modified:
   branches/Branch_4_2/jmx/src/main/org/jboss/mx/server/RawDynamicInvoker.java
Log:
JBAS-5933, include the cause of the exception when throwing NotCompliantMBeanException

Modified: branches/Branch_4_2/jmx/src/main/org/jboss/mx/server/RawDynamicInvoker.java
===================================================================
--- branches/Branch_4_2/jmx/src/main/org/jboss/mx/server/RawDynamicInvoker.java	2008-09-08 20:42:06 UTC (rev 78208)
+++ branches/Branch_4_2/jmx/src/main/org/jboss/mx/server/RawDynamicInvoker.java	2008-09-08 21:07:53 UTC (rev 78209)
@@ -206,7 +206,10 @@
       }
       catch (Exception e)
       {
-         throw new NotCompliantMBeanException("Cannot obtain MBeanInfo, for: " + oname);
+         // turn into a NotCompliantMBeanException
+         Exception ncmbe = new NotCompliantMBeanException("Cannot obtain MBeanInfo for: " + oname);
+         ncmbe.initCause(e);
+         throw ncmbe;
       }
 
       ClassLoader mbeanTCL = resourceEntry.getClassLoader();




More information about the jboss-cvs-commits mailing list