Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ADEDD11315 for ; Sat, 19 Jul 2014 16:04:38 +0000 (UTC) Received: (qmail 20611 invoked by uid 500); 19 Jul 2014 16:04:38 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 20580 invoked by uid 500); 19 Jul 2014 16:04:38 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 20570 invoked by uid 99); 19 Jul 2014 16:04:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Jul 2014 16:04:38 +0000 Date: Sat, 19 Jul 2014 16:04:38 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAMEL-7586) NotCompliantMBeanException : Attribute MessageHistory has more than one getter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-7586?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen updated CAMEL-7586: ------------------------------- Priority: Minor (was: Major) > NotCompliantMBeanException : Attribute MessageHistory has more than one getter > ------------------------------------------------------------------------------ > > Key: CAMEL-7586 > URL: https://issues.apache.org/jira/browse/CAMEL-7586 > Project: Camel > Issue Type: Bug > Components: camel-core, jmx > Affects Versions: 2.12.3, 2.13.0 > Reporter: Lefillastre Alexandre > 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 here. > In my project I need to use some _ManagedCamelContextMBean_, which I am trying to access through [JMX.newMBeanProxy|http://docs.oracle.com/javase/8/docs/api/javax/management/JMX.html#newMBeanProxy-javax.management.MBeanServerConnection-javax.management.ObjectName-java.lang.Class-] > 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|http://docs.oracle.com/javase/8/docs/technotes/guides/jmx/JMX_1_4_specification.pdf], 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 (v6.2#6252)