aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Dolan (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ARIES-756) Excessive warning if JMXAgentImpl starts before MBeanServer service
Date Wed, 05 Oct 2011 20:44:30 GMT
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

        

Mime
View raw message