Skip to content

I am at Camel 2.9.0. I am able to view the MBean data(routes, processors, etc) for running processes in JConsole.

I need to display the same in our user interface. While I try to fetch the attribute values, I get the following error.

Note – Attribute “EndpointUri” is fetching the right value.

Problem is with “FirstExchangeCompletionTime”. So I am concluding that there might not be any possible problem revolving the server connection. When we were at Camel.1.6.4, the same line of code for the attribute “FirstExchangeCompletedTimestamp” used to work fine. Had there been any change in JMX set up after Camel 1.6.4?

We are using the following properties for our JMX setup:


Error: getAttribute failed: ModelMBeanAttributeInfo not found for FirstExchangeCompletionTime
>        at
>        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(
>        at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(
>        at
>        at$200(
>        at$
>        at Method)
>        at
>        at
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>        at java.lang.reflect.Method.invoke(
>        at sun.rmi.server.UnicastServerRef.dispatch(
>        at sun.rmi.transport.Transport$
>        at Method)
>        at sun.rmi.transport.Transport.serviceCall(
>        at sun.rmi.transport.tcp.TCPTransport.handleMessages(
>        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(
>        at sun.rmi.transport.tcp.TCPTransport$
>        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
>        at java.util.concurrent.ThreadPoolExecutor$
>        at
>        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(
>        at sun.rmi.transport.StreamRemoteCall.executeCall(
>        at sun.rmi.server.UnicastRef.invoke(
>        at com.sun.jmx.remote.internal.PRef.invoke(Unknown Source)
>        at Source)
>        at$RemoteMBeanServerConnection.getAttribute(

We are fetching the values through MBeanServerConnection::getAttribute("X") method. I went through the Camel source code where these attributes are obtained through

I tried (non-static way) –

MBeanServerConnection::getAttribute(qName, "org.apache.camel.firstExchangeCompletedTimestamp")
MBeanServerConnection::getAttribute(qName, "firstExchangeCompletedTimestamp")

But none seems to be working. Please help.



make sure you are checking for the correct attribute value, your errors says “FirstExchangeCompletionTime “, but the attribute is called “FirstExchangeCompletedTimestamp”

see this unit test for more info: