You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Chris Dolan (Created) (JIRA)" <ji...@apache.org> on 2011/10/05 22:44:30 UTC

[jira] [Created] (ARIES-756) Excessive warning if JMXAgentImpl starts before MBeanServer service

Excessive warning if JMXAgentImpl starts before MBeanServer service
-------------------------------------------------------------------

                 Key: ARIES-756
                 URL: https://issues.apache.org/jira/browse/ARIES-756
             Project: Aries
          Issue Type: Bug
          Components: JMX
    Affects Versions: 0.3
         Environment: Karaf 2.2.2, Talend Service Factory 2.4.2.0
            Reporter: Chris Dolan
            Priority: Minor


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)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira