You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by anton_dak <ku...@dakosy.de> on 2012/08/01 10:05:47 UTC

SMX 4.4.0: Failed to register MBean: org.apache.activemq:BrokerName ...

Hi all,

we are running our camel application in ServiceMix 4.4.0 with several OSGI
bundles which are connected by ActiveMQ queues. Everything works well but
several times a day I see the following log entry:

09:18:15,758 | WARN  | /127.0.0.1:61616 | FailoverTransport                |
50 - org.apache.activemq.activemq-core - 5.5.1 | Transport
(localhost/127.0.0.1:61616) failed to tcp://localhost:61616 , attempting to
automatically reconnect due to: java.io.EOFException
09:18:15,765 | INFO  | iveMQ Task-18022 | FailoverTransport                |
50 - org.apache.activemq.activemq-core - 5.5.1 | Successfully reconnected to
tcp://localhost:61616
09:18:15,766 | INFO  | /127.0.0.1:37464 | Transport                        |
50 - org.apache.activemq.activemq-core - 5.5.1 | Transport failed:
java.io.EOFException
09:18:18,766 | WARN  | iveMQ Task-18022 | ManagedTransportConnection       |
50 - org.apache.activemq.activemq-core - 5.5.1 | Failed to register MBean:
org.apache.activemq:BrokerName=default,Type=Connection,ConnectorName=openwire,ViewType=address,Name=/127.0.0.1_37465
09:18:18,767 | INFO  | iveMQ Task-18023 | FailoverTransport                |
50 - org.apache.activemq.activemq-core - 5.5.1 | Successfully connected to
tcp://localhost:61616

The camel routes are working but when this failure occurs we have a delay of
round about three seconds. After a lot of google search I'am not sure what
the cause of this problem is.

best regards




--
View this message in context: http://servicemix.396122.n5.nabble.com/SMX-4-4-0-Failed-to-register-MBean-org-apache-activemq-BrokerName-tp5714039.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: SMX 4.4.0: Failed to register MBean: org.apache.activemq:BrokerName ...

Posted by anton_dak <ku...@dakosy.de>.
I'am working with the standard configuration of ServiceMix 4.4.0 except the
jvm parameter.
How can I check which broker are deployed?

best regards



--
View this message in context: http://servicemix.396122.n5.nabble.com/SMX-4-4-0-Failed-to-register-MBean-org-apache-activemq-BrokerName-tp5714039p5714111.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: SMX 4.4.0: Failed to register MBean: org.apache.activemq:BrokerName ...

Posted by "ajs6f@virginia.edu" <aj...@virginia.edu>.
The "javax.management.InstanceAlreadyExistsException" seems to imply that
there is already some kind of broker with the same settings. Is it possible
that you have tried to install a broker twice? Do you have any brokers
deployed besides the one under discussion?

---
A. Soroka
Online Library Environment
the University of Virginia Library

On Thu, Aug 9, 2012 at 7:50 AM, anton_dak <ku...@dakosy.de> wrote:

> Hi all,
>
> I have set createConnector to false, but today I have the same exception.
> What can I do to solve this problem?
>
> 00:18:15,434 | WARN  | iveMQ Task-22535 | ManagedTransportConnection
> |
> 50 - org.apache.activemq.activemq-core - 5.5.1 | Failed to register MBean:
>
> org.apache.activemq:BrokerName=default,Type=Connection,ConnectorName=openwire,ViewType=address,Name=/127.0.0.1_35974
> 00:18:15,434 | DEBUG | iveMQ Task-22535 | ManagedTransportConnection
> |
> 50 - org.apache.activemq.activemq-core - 5.5.1 | Failure reason:
> javax.management.InstanceAlreadyExistsException:
>
> org.apache.activemq:BrokerName=default,Type=Connection,ConnectorName=openwire,ViewType=address,Name=/127.0.0.1_35974
> javax.management.InstanceAlreadyExistsException:
>
> org.apache.activemq:BrokerName=default,Type=Connection,ConnectorName=openwire,ViewType=address,Name=/127.0.0.1_35974
>         at
> com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453)[:1.6.0_25]
>         at
>
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484)[:1.6.0_25]
>         at
>
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963)[:1.6.0_25]
>         at
>
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917)[:1.6.0_25]
>         at
>
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)[:1.6.0_25]
>         at
>
> com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)[:1.6.0_25]
>         at
>
> org.apache.activemq.broker.jmx.ManagementContext.registerMBean(ManagementContext.java:299)[50:org.apache.activemq.activemq-core:5.5.1]
>         at
>
> org.apache.activemq.broker.jmx.AnnotatedMBean.registerMBean(AnnotatedMBean.java:65)[50:org.apache.activemq.activemq-core:5.5.1]
>         at
>
> org.apache.activemq.broker.jmx.ManagedTransportConnection.registerMBean(ManagedTransportConnection.java:99)[50:org.apache.activemq.activemq-core:5.5.1]
>         at
>
> org.apache.activemq.broker.jmx.ManagedTransportConnection.<init>(ManagedTransportConnection.java:57)[50:org.apache.activemq.activemq-core:5.5.1]
>         at
>
> org.apache.activemq.broker.jmx.ManagedTransportConnector.createConnection(ManagedTransportConnector.java:52)[50:org.apache.activemq.activemq-core:5.5.1]
>         at
>
> org.apache.activemq.broker.TransportConnector$1$1.run(TransportConnector.java:220)[50:org.apache.activemq.activemq-core:5.5.1]
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_25]
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_25]
>         at java.lang.Thread.run(Thread.java:662)[:1.6.0_25]
>
>
>
>
> --
> View this message in context:
> http://servicemix.396122.n5.nabble.com/SMX-4-4-0-Failed-to-register-MBean-org-apache-activemq-BrokerName-tp5714039p5714109.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>

Re: SMX 4.4.0: Failed to register MBean: org.apache.activemq:BrokerName ...

Posted by anton_dak <ku...@dakosy.de>.
Hi Freeman,

I have changed the activemq-broker.xml file and after saving this file I saw
a lot of log messages in the servicemix log. I assumed that the change was
hot deployed. I will refresh the bundle manually.

best regards



--
View this message in context: http://servicemix.396122.n5.nabble.com/SMX-4-4-0-Failed-to-register-MBean-org-apache-activemq-BrokerName-tp5714039p5714153.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: SMX 4.4.0: Failed to register MBean: org.apache.activemq:BrokerName ...

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

After you change back createConnector to false, you need  refresh activemq-broker.xml bundle to pick up this configuration change. Or you can simply remove $SMX_HOME/data folder and restart SMX so that you get a clean env and also pick up the changes from etc/activemq-broker.xml

Freeman
-------------
Freeman Fang

FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042

On 2012-8-9, at 下午7:50, anton_dak wrote:

> Hi all,
> 
> I have set createConnector to false, but today I have the same exception.
> What can I do to solve this problem?
> 
> 00:18:15,434 | WARN  | iveMQ Task-22535 | ManagedTransportConnection       |
> 50 - org.apache.activemq.activemq-core - 5.5.1 | Failed to register MBean:
> org.apache.activemq:BrokerName=default,Type=Connection,ConnectorName=openwire,ViewType=address,Name=/127.0.0.1_35974
> 00:18:15,434 | DEBUG | iveMQ Task-22535 | ManagedTransportConnection       |
> 50 - org.apache.activemq.activemq-core - 5.5.1 | Failure reason:
> javax.management.InstanceAlreadyExistsException:
> org.apache.activemq:BrokerName=default,Type=Connection,ConnectorName=openwire,ViewType=address,Name=/127.0.0.1_35974
> javax.management.InstanceAlreadyExistsException:
> org.apache.activemq:BrokerName=default,Type=Connection,ConnectorName=openwire,ViewType=address,Name=/127.0.0.1_35974
> 	at
> com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453)[:1.6.0_25]
> 	at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484)[:1.6.0_25]
> 	at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963)[:1.6.0_25]
> 	at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917)[:1.6.0_25]
> 	at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)[:1.6.0_25]
> 	at
> com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)[:1.6.0_25]
> 	at
> org.apache.activemq.broker.jmx.ManagementContext.registerMBean(ManagementContext.java:299)[50:org.apache.activemq.activemq-core:5.5.1]
> 	at
> org.apache.activemq.broker.jmx.AnnotatedMBean.registerMBean(AnnotatedMBean.java:65)[50:org.apache.activemq.activemq-core:5.5.1]
> 	at
> org.apache.activemq.broker.jmx.ManagedTransportConnection.registerMBean(ManagedTransportConnection.java:99)[50:org.apache.activemq.activemq-core:5.5.1]
> 	at
> org.apache.activemq.broker.jmx.ManagedTransportConnection.<init>(ManagedTransportConnection.java:57)[50:org.apache.activemq.activemq-core:5.5.1]
> 	at
> org.apache.activemq.broker.jmx.ManagedTransportConnector.createConnection(ManagedTransportConnector.java:52)[50:org.apache.activemq.activemq-core:5.5.1]
> 	at
> org.apache.activemq.broker.TransportConnector$1$1.run(TransportConnector.java:220)[50:org.apache.activemq.activemq-core:5.5.1]
> 	at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_25]
> 	at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_25]
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_25]
> 
> 
> 
> 
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/SMX-4-4-0-Failed-to-register-MBean-org-apache-activemq-BrokerName-tp5714039p5714109.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: SMX 4.4.0: Failed to register MBean: org.apache.activemq:BrokerName ...

Posted by anton_dak <ku...@dakosy.de>.
Hi all,

I have set createConnector to false, but today I have the same exception.
What can I do to solve this problem?

00:18:15,434 | WARN  | iveMQ Task-22535 | ManagedTransportConnection       |
50 - org.apache.activemq.activemq-core - 5.5.1 | Failed to register MBean:
org.apache.activemq:BrokerName=default,Type=Connection,ConnectorName=openwire,ViewType=address,Name=/127.0.0.1_35974
00:18:15,434 | DEBUG | iveMQ Task-22535 | ManagedTransportConnection       |
50 - org.apache.activemq.activemq-core - 5.5.1 | Failure reason:
javax.management.InstanceAlreadyExistsException:
org.apache.activemq:BrokerName=default,Type=Connection,ConnectorName=openwire,ViewType=address,Name=/127.0.0.1_35974
javax.management.InstanceAlreadyExistsException:
org.apache.activemq:BrokerName=default,Type=Connection,ConnectorName=openwire,ViewType=address,Name=/127.0.0.1_35974
	at
com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453)[:1.6.0_25]
	at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484)[:1.6.0_25]
	at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963)[:1.6.0_25]
	at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917)[:1.6.0_25]
	at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)[:1.6.0_25]
	at
com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)[:1.6.0_25]
	at
org.apache.activemq.broker.jmx.ManagementContext.registerMBean(ManagementContext.java:299)[50:org.apache.activemq.activemq-core:5.5.1]
	at
org.apache.activemq.broker.jmx.AnnotatedMBean.registerMBean(AnnotatedMBean.java:65)[50:org.apache.activemq.activemq-core:5.5.1]
	at
org.apache.activemq.broker.jmx.ManagedTransportConnection.registerMBean(ManagedTransportConnection.java:99)[50:org.apache.activemq.activemq-core:5.5.1]
	at
org.apache.activemq.broker.jmx.ManagedTransportConnection.<init>(ManagedTransportConnection.java:57)[50:org.apache.activemq.activemq-core:5.5.1]
	at
org.apache.activemq.broker.jmx.ManagedTransportConnector.createConnection(ManagedTransportConnector.java:52)[50:org.apache.activemq.activemq-core:5.5.1]
	at
org.apache.activemq.broker.TransportConnector$1$1.run(TransportConnector.java:220)[50:org.apache.activemq.activemq-core:5.5.1]
	at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_25]
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_25]
	at java.lang.Thread.run(Thread.java:662)[:1.6.0_25]




--
View this message in context: http://servicemix.396122.n5.nabble.com/SMX-4-4-0-Failed-to-register-MBean-org-apache-activemq-BrokerName-tp5714039p5714109.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: SMX 4.4.0: Failed to register MBean: org.apache.activemq:BrokerName ...

Posted by "ajs6f@virginia.edu" <aj...@virginia.edu>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

If you can run jconsole using the same user account on that system, I believe that it should automatically detect any JMX connectors open from your processes.

- ---
A. Soroka
Software & Systems Engineering :: Online Library Environment
the University of Virginia Library

On Aug 3, 2012, at 6:09 AM, anton_dak wrote:

> I could try it. Do you know how can I check which JMX connectors are already
> open? 
> 
> 
> 
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/SMX-4-4-0-Failed-to-register-MBean-org-apache-activemq-BrokerName-tp5714039p5714065.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org

iQEcBAEBAgAGBQJQG9zTAAoJEATpPYSyaoIk8QwIAMQRVr/MSSJG5duA9CSQInEq
wv8eCBNzq4Vs7yXDgzWQJgkSCdGg4U80ZNE+1V2GCeS6WBchVDA2BhkRdRddSHTz
H/sGDW7qK6YCoKO5Fz2sGqwySpxpVAtoeA1gOQJvHai+BsjwWuIgEXXaSqNemfOr
YGcgkg9epXTWfWvgku8zf4pjRbpXPFcRM8B35uiMGcrZScOwEZS978qiKXU1vE+J
8Ccf6ycJIShlPi9wKO67mAU+weLXe7dDzSUvz9fEbnD4hcwKW4++Fz6Nm4gJg9IT
9QtgJ/HpnErg1ZZ8Tntz220SV5w3gwjXCGvWU0hDtXR0TLVwk+fzU7XGc8OIMUE=
=0gtb
-----END PGP SIGNATURE-----

Re: SMX 4.4.0: Failed to register MBean: org.apache.activemq:BrokerName ...

Posted by anton_dak <ku...@dakosy.de>.
I could try it. Do you know how can I check which JMX connectors are already
open? 



--
View this message in context: http://servicemix.396122.n5.nabble.com/SMX-4-4-0-Failed-to-register-MBean-org-apache-activemq-BrokerName-tp5714039p5714065.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: SMX 4.4.0: Failed to register MBean: org.apache.activemq:BrokerName ...

Posted by "ajs6f@virginia.edu" <aj...@virginia.edu>.
I may be totally off base here, but is it possible that you're getting a
conflict between the JMX connector that your broker is trying to open and a
JMX connector that Karaf already has open? Can you try
with createConnector="false"?

---
A. Soroka
Online Library Environment
the University of Virginia Library

On Thu, Aug 2, 2012 at 3:50 AM, anton_dak <ku...@dakosy.de> wrote:

> Hi Jon,
>
> yes it's the standard activemq-broker.xml. The only thing I have changed is
> to set the JMX connector creator to true:
>  <managementContext createConnector="true"/>
>
> I have set the log leve with the following command: log:set TRACE
> org.apache.activemq.broker.jmx
>
> But for now I have no trace logs.
>
>
>
>
>
> --
> View this message in context:
> http://servicemix.396122.n5.nabble.com/SMX-4-4-0-Failed-to-register-MBean-org-apache-activemq-BrokerName-tp5714039p5714059.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>

Re: SMX 4.4.0: Failed to register MBean: org.apache.activemq:BrokerName ...

Posted by anton_dak <ku...@dakosy.de>.
Hi Jon,

yes it's the standard activemq-broker.xml. The only thing I have changed is
to set the JMX connector creator to true:
 <managementContext createConnector="true"/>

I have set the log leve with the following command: log:set TRACE
org.apache.activemq.broker.jmx 

But for now I have no trace logs.





--
View this message in context: http://servicemix.396122.n5.nabble.com/SMX-4-4-0-Failed-to-register-MBean-org-apache-activemq-BrokerName-tp5714039p5714059.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: SMX 4.4.0: Failed to register MBean: org.apache.activemq:BrokerName ...

Posted by Jon Anstey <ja...@gmail.com>.
Hi,

Do you have a modified broker config or the standard one shipped with
ServiceMix 4.4.0? Try setting trace on the broker JMX stuff so we can get a
bit more info (on the ServiceMix console):

log:set TRACE org.apache.activemq.broker.jmx

Cheers,
Jon

On Wed, Aug 1, 2012 at 5:35 AM, anton_dak <ku...@dakosy.de> wrote:

> Hi all,
>
> we are running our camel application in ServiceMix 4.4.0 with several OSGI
> bundles which are connected by ActiveMQ queues. Everything works well but
> several times a day I see the following log entry:
>
> 09:18:15,758 | WARN  | /127.0.0.1:61616 | FailoverTransport
>  |
> 50 - org.apache.activemq.activemq-core - 5.5.1 | Transport
> (localhost/127.0.0.1:61616) failed to tcp://localhost:61616 , attempting
> to
> automatically reconnect due to: java.io.EOFException
> 09:18:15,765 | INFO  | iveMQ Task-18022 | FailoverTransport
>  |
> 50 - org.apache.activemq.activemq-core - 5.5.1 | Successfully reconnected
> to
> tcp://localhost:61616
> 09:18:15,766 | INFO  | /127.0.0.1:37464 | Transport
>  |
> 50 - org.apache.activemq.activemq-core - 5.5.1 | Transport failed:
> java.io.EOFException
> 09:18:18,766 | WARN  | iveMQ Task-18022 | ManagedTransportConnection
> |
> 50 - org.apache.activemq.activemq-core - 5.5.1 | Failed to register MBean:
>
> org.apache.activemq:BrokerName=default,Type=Connection,ConnectorName=openwire,ViewType=address,Name=/127.0.0.1_37465
> 09:18:18,767 | INFO  | iveMQ Task-18023 | FailoverTransport
>  |
> 50 - org.apache.activemq.activemq-core - 5.5.1 | Successfully connected to
> tcp://localhost:61616
>
> The camel routes are working but when this failure occurs we have a delay
> of
> round about three seconds. After a lot of google search I'am not sure what
> the cause of this problem is.
>
> best regards
>
>
>
>
> --
> View this message in context:
> http://servicemix.396122.n5.nabble.com/SMX-4-4-0-Failed-to-register-MBean-org-apache-activemq-BrokerName-tp5714039.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>



-- 
Cheers,
Jon
---------------
FuseSource
Email: jon@fusesource.com
Web: fusesource.com
Twitter: jon_anstey
Blog: http://janstey.blogspot.com
Author of Camel in Action: http://manning.com/ibsen