Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-756

Excessive warning if JMXAgentImpl starts before MBeanServer service

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.3
    • None
    • JMX
    • None
    • Karaf 2.2.2, Talend Service Factory 2.4.2.0

    Description

      In my Karaf container, the MBeanServer is registered with the OSGi framework via org.apache.karaf.management. The default configuration has that bundle and org.apache.aries.jmx starting at the same startlevel. Sometimes the Aries JMXAgentImpl boots first and sometimes the MBeanServer boots first. When JMXAgentImpl boots first, I get ominous messages like the following:

      2011-10-05 15:31:12,995 WARN [Logger.java:52] There are no MBean servers registred, can't register MBeans - org.apache.aries.jmx

      Really, this message is harmless because a moment later the MBeanServer is registered and the JMXAgentImpl.registerMBeans() method registers all of the beans. So I recommend that this warning be downgraded to a debug message or just deleted. Perhaps the message should be changed to:

      There are no MBean servers registered yet, will register all beans when a server is discovered.

      (note that "registered" is misspelled as "registred" in the code right now)

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            cdolan Chris Dolan
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: