[jboss-jira] [JBoss JIRA] Closed: (JBAS-5933) JMX operations eat underlying exception
Dimitris Andreadis (JIRA)
jira-events at lists.jboss.org
Tue Sep 9 03:54:38 EDT 2008
[ https://jira.jboss.org/jira/browse/JBAS-5933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dimitris Andreadis closed JBAS-5933.
------------------------------------
Fix Version/s: JBossAS-5.0.0.CR2
Resolution: Done
Ok, fixed in Branch_4_2 and trunk, thanks.
> JMX operations eat underlying exception
> ---------------------------------------
>
> Key: JBAS-5933
> URL: https://jira.jboss.org/jira/browse/JBAS-5933
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: JMX
> Affects Versions: JBossAS-4.2.3.GA
> Reporter: Jay Howell
> Assignee: Dimitris Andreadis
> Fix For: JBossAS-5.0.0.CR2, JBossAS-4.2.4.GA
>
>
> 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
> {
> this.info = getMBeanInfo();
> }
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list