camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lefillastre Alexandre (JIRA)" <>
Subject [jira] [Created] (CAMEL-7586) NotCompliantMBeanException : Attribute MessageHistory has more than one getter
Date Tue, 08 Jul 2014 15:29:05 GMT
Lefillastre Alexandre created CAMEL-7586:

             Summary: NotCompliantMBeanException : Attribute MessageHistory has more than
one getter
                 Key: CAMEL-7586
             Project: Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 2.13.0, 2.12.3
            Reporter: Lefillastre Alexandre

Hello, I wasn't able to subscribe on the mailing list, so I'm posting my issue directly here.

In my project I need to use some ManagedCamelContextMBean, which I am trying to access through
: connection, ObjectName objectName,
Class<?> interfaceClass)

However, it is not working as I'm getting a NotCompliantMBeanException as the attribute MessageHistory
seems to have more than one getter.

I checked the source code of newMBeanProxy, then the JMX 1.4 specification (
), and then Camel's source code, and it appears that ManagedCamelContextMBean is indeed not
respecting the standard MBean.

The problem is that two methods are defined in ManagedCamelContextMBean : isMessageHistory()
and getMessageHistory()
Since the return type is boolean, isMessageHistory is considered to be a getter, which makes
two getter according to the JMX specification and is blocking the newMBeanProxy() method.

This message was sent by Atlassian JIRA

View raw message