Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-3073

MBeanServer.createMBean methods that take a classloader don't work

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.1.0.CR1, 8.1.0.Final
    • 8.0.0.Final
    • JMX
    • None

      The MBeanServer.createMBean methods that take an "ObjectName loaderName" argument are completely broken in EAP 6.

      These methods call findDelegate to make sure there is already an existing MBean registered with the given name passed in for the new MBean, or else it throws an exception.
      This is obviously wrong, as there'd be no point in calling createMBean if it already existed.

      javax.management.InstanceNotFoundException: test:service=Test
      at org.jboss.as.jmx.PluggableMBeanServerImpl.findDelegate(PluggableMBeanServerImpl.java:1083)
      at org.jboss.as.jmx.PluggableMBeanServerImpl.createMBean(PluggableMBeanServerImpl.java:253)

              kkhan1@redhat.com Kabir Khan
              sdouglas1@redhat.com Stuart Douglas (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: