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)

            [WFLY-3073] MBeanServer.createMBean methods that take a classloader don't work

            Kabir Khan added a comment -

            Bulk closing issues resolved against old releases

            Kabir Khan added a comment - Bulk closing issues resolved against old releases

            mark yarborough <myarboro@redhat.com> changed the Status of bug 1073106 from VERIFIED to CLOSED

            RH Bugzilla Integration added a comment - mark yarborough <myarboro@redhat.com> changed the Status of bug 1073106 from VERIFIED to CLOSED

            Jan Martiska <jmartisk@redhat.com> changed the Status of bug 1073106 from ON_QA to VERIFIED

            RH Bugzilla Integration added a comment - Jan Martiska <jmartisk@redhat.com> changed the Status of bug 1073106 from ON_QA to VERIFIED

            Paul Gier <pgier@redhat.com> changed the Status of bug 1073106 from MODIFIED to ON_QA

            RH Bugzilla Integration added a comment - Paul Gier <pgier@redhat.com> changed the Status of bug 1073106 from MODIFIED to ON_QA

            Kabir Khan <kkhan@redhat.com> changed the Status of bug 1073106 from NEW to MODIFIED

            RH Bugzilla Integration added a comment - Kabir Khan <kkhan@redhat.com> changed the Status of bug 1073106 from NEW to MODIFIED

            Kabir Khan added a comment -

            Never mind, your fix looks fine

            Kabir Khan added a comment - Never mind, your fix looks fine

            Kabir Khan added a comment -

            These should probably pass in the loaderName rather than the name of the mbean to create to findDelegate()?

            Kabir Khan added a comment - These should probably pass in the loaderName rather than the name of the mbean to create to findDelegate()?

              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: