[jboss-jira] [JBoss JIRA] (WFLY-838) Can't get implementing classname for JSR77 MBean

Eduardo Silva (JIRA) jira-events at lists.jboss.org
Thu Nov 21 16:25:05 EST 2013


    [ https://issues.jboss.org/browse/WFLY-838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12925925#comment-12925925 ] 

Eduardo Silva commented on WFLY-838:
------------------------------------

Any thoughts about that?
Shouldn't we just removing the queryObjectNames override, as I commented before? 

private abstract static class J2EEModuleHandler extends J2EEDeployedObjectHandler {
...
 @Override
        Set<ObjectName> queryObjectNames(ModelReader reader, ObjectName name, QueryExp query) {
            throw MESSAGES.shouldNotGetCalled();
        }

                
> Can't get implementing classname for JSR77 MBean
> ------------------------------------------------
>
>                 Key: WFLY-838
>                 URL: https://issues.jboss.org/browse/WFLY-838
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: JMX
>            Reporter: Anders Welen
>            Priority: Minor
>             Fix For: Awaiting Volunteers
>
>
> The following exception are thrown when asking the MBean server for the classname implementing "jboss.jsr77:j2eeType=WebModule,name=MyWar.war,J2EEServer=default".
> It should be a legal call. Why are the code clearly states it's illegal?
>  
> java.lang.IllegalStateException: JBAS019905: Should not get called
>     at org.jboss.as.jsr77.managedobject.J2EEDeployedObjectHandlers$J2EEModuleHandler.queryObjectNames(J2EEDeployedObjectHandlers.java:245)
>     at org.jboss.as.jsr77.managedobject.BaseHandler.getMBeanInfo(BaseHandler.java:64)
>     at org.jboss.as.jsr77.managedobject.J2EEDeployedObjectHandlers.getMBeanInfo(J2EEDeployedObjectHandlers.java:147)
>     at org.jboss.as.jsr77.managedobject.ManagedObjectHandlerRegistry.getMBeanInfo(ManagedObjectHandlerRegistry.java:112)
>     at org.jboss.as.jsr77.subsystem.JSR77ManagementMBeanServer.getMBeanInfo(JSR77ManagementMBeanServer.java:179)
>     at org.jboss.as.jmx.PluggableMBeanServerImpl.getMBeanInfo(PluggableMBeanServerImpl.java:212)
>  
> The error can easily be triggered by using JConsole to browse the same MBean.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list