Util.getMBeanServer tries to find the JBoss MBean server, and if it isn't found, it returns the first one found. This can lead to situations where Util.getMBeanServer returns null if the platform MBean server hasn't been created/registered.
Util.getMBeanServer tries to find the JBoss MBean server, and if it isn't found, it returns the first one found. This can lead to situations where Util.getMBeanServer returns null if the platform MBean server hasn't been created/registered.