You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by dman83 <de...@gs.com> on 2007/08/29 22:28:23 UTC
ExportException (ObjID already in use) when creating Connection
Hi,
I get the following exception when my code tries to create an
XATopicConnection:
Aug 29, 2007 3:50:44 PM org.apache.activemq.broker.jmx.ManagementContext
createConnector
FINE: Failed to create local registry
java.rmi.server.ExportException: internal error: ObjID already in use
at sun.rmi.transport.ObjectTable.putTarget(Unknown Source)
at sun.rmi.transport.Transport.exportObject(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.exportObject(Unknown Source)
at sun.rmi.transport.tcp.TCPEndpoint.exportObject(Unknown Source)
at sun.rmi.transport.LiveRef.exportObject(Unknown Source)
at sun.rmi.server.UnicastServerRef.exportObject(Unknown Source)
at sun.rmi.registry.RegistryImpl.setup(Unknown Source)
at sun.rmi.registry.RegistryImpl.<init>(Unknown Source)
at java.rmi.registry.LocateRegistry.createRegistry(Unknown Source)
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.jmx.ManagementContext.start(ManagementContext.java:78)
at org.apache.activemq.broker.BrokerService.start(BrokerService.java:391)
at
org.apache.activemq.transport.vm.VMTransportFactory.doCompositeConnect(VMTransportFactory.java:113)
at
org.apache.activemq.transport.vm.VMTransportFactory.doConnect(VMTransportFactory.java:52)
at
org.apache.activemq.transport.TransportFactory.doConnect(TransportFactory.java:43)
at
org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:77)
at
org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:230)
at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:245)
at
org.apache.activemq.ActiveMQXAConnectionFactory.createXATopicConnection(ActiveMQXAConnectionFactory.java:80)
at
com.gs.fw.aig.jms.GsXATopicConnectionFactory.createXATopicConnection(GsXATopicConnectionFactory.java:86)
at XATopicPubSub$XATopicPub.run(XATopicPubSub.java:333)
at java.lang.Thread.run(Unknown Source)
Aug 29, 2007 3:50:44 PM JMXConnectorServerFactory getConnectorAsService
FINER: URL[service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi] Service
provider exception java.net.MalformedURLException: Wrong protocol rmi for
provider mx4j.remote.provider.iiop.ServerProvider@497934
Aug 29, 2007 3:50:44 PM Repository retrieve
FINER: name=naming:type=rmiregistry
Aug 29, 2007 3:50:44 PM StandardMetaDataImpl invoke
FINEST: MBean Class is class mx4j.tools.naming.NamingService
Aug 29, 2007 3:50:44 PM StandardMetaDataImpl invoke
FINEST: MBean Interface is interface mx4j.tools.naming.NamingServiceMBean
Aug 29, 2007 3:50:44 PM StandardMetaDataImpl invoke
FINER: Invoking start
Aug 29, 2007 3:50:44 PM sun.rmi.transport.WeakRef pin
FINER: Thread-1: strongRef = RegistryImpl[UnicastServerRef [liveRef:
[endpoint:[154.4.76.185:1099](local),objID:[0:0:0, 0]]]]
Aug 29, 2007 3:50:44 PM sun.rmi.transport.ObjectTable putTarget
FINER: Thread-1: add object [0:0:0, 0]
Aug 29, 2007 3:50:44 PM StandardMetaDataImpl invoke
FINEST: Exception caught in invoke(): java.rmi.server.ExportException:
internal error: ObjID already in use
Aug 29, 2007 3:50:44 PM StandardMetaDataImpl invoke
FINEST: java.rmi.server.ExportException: internal error: ObjID already in
use
at sun.rmi.transport.ObjectTable.putTarget(Unknown Source)
at sun.rmi.transport.Transport.exportObject(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.exportObject(Unknown Source)
at sun.rmi.transport.tcp.TCPEndpoint.exportObject(Unknown Source)
at sun.rmi.transport.LiveRef.exportObject(Unknown Source)
at sun.rmi.server.UnicastServerRef.exportObject(Unknown Source)
at sun.rmi.registry.RegistryImpl.setup(Unknown Source)
at sun.rmi.registry.RegistryImpl.<init>(Unknown Source)
at java.rmi.registry.LocateRegistry.createRegistry(Unknown Source)
at mx4j.tools.naming.NamingService.start(NamingService.java:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown
Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
at
org.apache.activemq.broker.jmx.ManagementContext.start(ManagementContext.java:81)
at org.apache.activemq.broker.BrokerService.start(BrokerService.java:391)
at
org.apache.activemq.transport.vm.VMTransportFactory.doCompositeConnect(VMTransportFactory.java:113)
at
org.apache.activemq.transport.vm.VMTransportFactory.doConnect(VMTransportFactory.java:52)
at
org.apache.activemq.transport.TransportFactory.doConnect(TransportFactory.java:43)
at
org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:77)
at
org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:230)
at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:245)
at
org.apache.activemq.ActiveMQXAConnectionFactory.createXATopicConnection(ActiveMQXAConnectionFactory.java:80)
at
com.gs.fw.aig.jms.GsXATopicConnectionFactory.createXATopicConnection(GsXATopicConnectionFactory.java:86)
at XATopicPubSub$XATopicPub.run(XATopicPubSub.java:333)
at java.lang.Thread.run(Unknown Source)
What could be the cause of this? This is not hampering the program's
functionality but would like to get rid of this exception nonetheless.
--
View this message in context: http://www.nabble.com/ExportException-%28ObjID-already-in-use%29-when-creating-Connection-tf4350180s2354.html#a12395129
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: ExportException (ObjID already in use) when creating Connection
Posted by hbruch <ho...@isb-ag.de>.
Hi,
I encountered the same exception. Seems to me that the implementation of
ManagementContext.createMBeanServer() should not call createConnector, since
this done in findMBeanServer() as well...
Regards, Holger
dman83 wrote:
>
> Hi,
>
> I get the following exception when my code tries to create an
> XATopicConnection:
>
> Aug 29, 2007 3:50:44 PM org.apache.activemq.broker.jmx.ManagementContext
> createConnector
> FINE: Failed to create local registry
> java.rmi.server.ExportException: internal error: ObjID already in use
> at sun.rmi.transport.ObjectTable.putTarget(Unknown Source)
> at sun.rmi.transport.Transport.exportObject(Unknown Source)
> at sun.rmi.transport.tcp.TCPTransport.exportObject(Unknown Source)
> at sun.rmi.transport.tcp.TCPEndpoint.exportObject(Unknown Source)
> at sun.rmi.transport.LiveRef.exportObject(Unknown Source)
> at sun.rmi.server.UnicastServerRef.exportObject(Unknown Source)
> at sun.rmi.registry.RegistryImpl.setup(Unknown Source)
> at sun.rmi.registry.RegistryImpl.<init>(Unknown Source)
> at java.rmi.registry.LocateRegistry.createRegistry(Unknown Source)
> 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.jmx.ManagementContext.start(ManagementContext.java:78)
> at org.apache.activemq.broker.BrokerService.start(BrokerService.java:391)
> ...
> What could be the cause of this? This is not hampering the program's
> functionality but would like to get rid of this exception nonetheless.
>
>
>
>
--
View this message in context: http://www.nabble.com/ExportException-%28ObjID-already-in-use%29-when-creating-Connection-tf4350180s2354.html#a13791005
Sent from the ActiveMQ - User mailing list archive at Nabble.com.