activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mjparme <mjparme...@west.com>
Subject Exception during embedded broker startup
Date Thu, 19 Apr 2007 19:14:01 GMT

I get the following exception when I startup my app that has an embedded
broker in it. The exception is non-fatal as I am still able to receive/send
messages; however, I would like to get rid of the exception. Here is my
embedded broker configuration:

BrokerService broker = new BrokerService();
broker.setPersistent(false);
broker.setUseJmx(true);
broker.addConnector(messageBrokerUrl);

And the exception (maybe related to
http://issues.apache.org/activemq/browse/AMQ-415;jsessionid=C46DD341A1063A87F0348067C98FEC71?page=com.atlassian.jira.plugin.system.issuetabpanels:changehistory-tabpanel):

14:03:00,657 [Thread.main] ManagementContext                        DEBUG :
Failed to create local registry 
java.lang.ClassNotFoundException: mx4j.tools.naming.NamingService
	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:169)
	at
org.apache.activemq.broker.jmx.ManagementContext.createConnector(ManagementContext.java:386)
	at
org.apache.activemq.broker.jmx.ManagementContext.createMBeanServer(ManagementContext.java:367)
	at
org.apache.activemq.broker.jmx.ManagementContext.findMBeanServer(ManagementContext.java:297)
	at
org.apache.activemq.broker.jmx.ManagementContext.getMBeanServer(ManagementContext.java:154)
	at
org.apache.activemq.broker.BrokerService.createRegionBroker(BrokerService.java:1265)
	at
org.apache.activemq.broker.BrokerService.createBroker(BrokerService.java:1209)
	at
org.apache.activemq.broker.BrokerService.getBroker(BrokerService.java:508)
	at
org.apache.activemq.broker.BrokerService.addConnector(BrokerService.java:163)
	at
org.apache.activemq.broker.BrokerService.addConnector(BrokerService.java:153)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
14:03:00,673 [Thread.main] ManagementContext                        DEBUG :
Failed to create local registry 
java.rmi.server.ExportException: internal error: ObjID already in use
	at sun.rmi.transport.ObjectTable.putTarget(ObjectTable.java:169)
	at sun.rmi.transport.Transport.exportObject(Transport.java:74)
	at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:229)
	at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:393)
	at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:129)
	at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:190)
	at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:92)
	at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:78)
	at java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:186)
	at
org.apache.activemq.broker.jmx.ManagementContext.createConnector(ManagementContext.java:382)
	at
org.apache.activemq.broker.jmx.ManagementContext.findMBeanServer(ManagementContext.java:301)
	at
org.apache.activemq.broker.jmx.ManagementContext.getMBeanServer(ManagementContext.java:154)
	at
org.apache.activemq.broker.BrokerService.createRegionBroker(BrokerService.java:1265)
	at
org.apache.activemq.broker.BrokerService.createBroker(BrokerService.java:1209)
	at
org.apache.activemq.broker.BrokerService.getBroker(BrokerService.java:508)
	at
org.apache.activemq.broker.BrokerService.addConnector(BrokerService.java:163)
	at
org.apache.activemq.broker.BrokerService.addConnector(BrokerService.java:153)
-- 
View this message in context: http://www.nabble.com/Exception-during-embedded-broker-startup-tf3609187s2354.html#a10084952
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message