camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] [Assigned] (CAMEL-7586) NotCompliantMBeanException : Attribute MessageHistory has more than one getter
Date Sat, 19 Jul 2014 16:04:38 GMT


Claus Ibsen reassigned CAMEL-7586:

    Assignee: Claus Ibsen

> NotCompliantMBeanException : Attribute MessageHistory has more than one getter
> ------------------------------------------------------------------------------
>                 Key: CAMEL-7586
>                 URL:
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core, jmx
>    Affects Versions: 2.12.3, 2.13.0
>            Reporter: Lefillastre Alexandre
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.12.5, 2.13.3, 2.14.0
> Hello, I wasn't able to subscribe on the mailing list, so I'm posting my issue directly
> In my project I need to use some _ManagedCamelContextMBean_, which I am trying to access
through [JMX.newMBeanProxy|]
> However, it is not working as I'm getting a *NotCompliantMBeanException* because the
attribute _MessageHistory_ is said 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