-
Bug
-
Resolution: Done
-
Major
-
JBossAS-4.2.3.GA
-
None
Inside of both MBeanSeverImpl and the RawDynamicInvoker, exceptions are being eaten, when the getMBeanInfo method is being called. The only thing thrown is the NotCompliantMBeanException with a canned exception message. The underlying exception can be anything from a classloader issue, to just a plain old CNF Exception. This code needs to be changed so that the underlying exception is propagated out to be seen in the log.
the code is...
try
catch (Exception e)
{ throw new NotCompliantMBeanException("Cannot obtain MBeanInfo, for: " + oname); }
which just eats the underlying Exception.
This should be
try
{ this.info = getMBeanInfo(); }
catch (Exception e)
{ throw new NotCompliantMBeanException("Cannot obtain MBeanInfo, for: " + oname, e); }And NotCompliantMBeanException should be chaned to take the nested exception.
- blocks
-
JBPAPP-1170 JMX operations eat underlying exception.
- Closed