[JBoss JIRA] Created: (JBAS-5933) JMX operations eat underlying exception
by Jay Howell (JIRA)
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
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
17 years, 10 months
[JBoss JIRA] Created: (JBDEPLOY-89) ManagedObject tests are failing
by Adrian Brock (JIRA)
ManagedObject tests are failing
-------------------------------
Key: JBDEPLOY-89
URL: https://jira.jboss.org/jira/browse/JBDEPLOY-89
Project: JBoss Deployers
Issue Type: Bug
Components: tests
Reporter: Adrian Brock
Fix For: JBDEPLOY-2.0.0.CR1
The managed object tests are failing in deployers after updating to latest jboss-man and jbossmc
deployers-impl:
junit.framework.AssertionFailedError: expected:<runtime-name-1> but was:<null>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:277)
at junit.framework.Assert.assertEquals(Assert.java:64)
at junit.framework.Assert.assertEquals(Assert.java:71)
at org.jboss.test.deployers.managed.test.DeployerManagedDeploymentUnitTestCase.testComponentNameAndSetValue(DeployerManagedDeploymentUnitTestCase.java:157)
deployers-vfs
junit.framework.AssertionFailedError: expected:<FromObjectRuntime> but was:<runtime>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:277)
at junit.framework.Assert.assertEquals(Assert.java:64)
at junit.framework.Assert.assertEquals(Assert.java:71)
at org.jboss.test.deployers.vfs.managed.test.BeanMetaDataICFTestCase.testICF(BeanMetaDataICFTestCase.java:69)
--
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
17 years, 10 months