camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles Moulliard (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAMEL-1026) Failed to create local registry - java.rmi.server.ExportException: internal error: ObjID already in use
Date Fri, 24 Oct 2008 14:24:52 GMT

    [ https://issues.apache.org/activemq/browse/CAMEL-1026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46826#action_46826
] 

Charles Moulliard commented on CAMEL-1026:
------------------------------------------

The error is not generated when I disable the jmx agent in camel context :
<!-- <jmxAgent id="agent" createConnector="true" /> -->

> Failed to create local registry - java.rmi.server.ExportException: internal error: ObjID
already in use
> -------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1026
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1026
>             Project: Apache Camel
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>            Reporter: Charles Moulliard
>             Fix For: 1.5.0
>
>
> Here is the non-blocking error appearing on the console in debug mode of Camel 1.4
> 2008-10-24 12:18:59,449 [00&period=60000] DEBUG ManagementContext              -
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:365)
> 	at org.apache.activemq.broker.jmx.ManagementContext.findMBeanServer(ManagementContext.java:293)
> 	at org.apache.activemq.broker.jmx.ManagementContext.getMBeanServer(ManagementContext.java:148)
> 	at org.apache.activemq.broker.jmx.ManagementContext.start(ManagementContext.java:77)
> 	at org.apache.activemq.broker.BrokerService.start(BrokerService.java:441)
> 	at org.apache.activemq.transport.vm.VMTransportFactory.doCompositeConnect(VMTransportFactory.java:119)
> 	at org.apache.activemq.transport.vm.VMTransportFactory.doConnect(VMTransportFactory.java:53)
> 	at org.apache.activemq.transport.TransportFactory.doConnect(TransportFactory.java:47)
> 	at org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:76)
> 	at org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:235)
> 	at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:250)
> 	at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:222)
> 	at org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:170)
> 	at org.apache.activemq.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:125)
> 	at org.apache.activemq.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:110)
> 	at org.apache.activemq.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:86)
> 	at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:184)
> 	at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:461)
> 	at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:548)
> 	at org.apache.camel.component.jms.JmsProducer.process(JmsProducer.java:227)
> 	at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:190)
> 	at org.apache.camel.processor.RecipientList.sendToRecipientList(RecipientList.java:75)
> 	at org.apache.camel.processor.RecipientList.process(RecipientList.java:59)
> 	at org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:50)
> 	at org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:79)
> 	at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:84)
> 	at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)
> 	at org.apache.camel.processor.Pipeline.process(Pipeline.java:115)
> 	at org.apache.camel.processor.Pipeline.process(Pipeline.java:89)
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:41)
> 	at org.apache.camel.processor.Pipeline.process(Pipeline.java:57)
> 	at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:190)
> 	at org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:50)
> 	at org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:79)
> 	at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:84)
> 	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:75)
> 	at org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:172)
> 	at org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:93)
> 	at org.apache.camel.processor.Pipeline.process(Pipeline.java:115)
> 	at org.apache.camel.processor.Pipeline.process(Pipeline.java:89)
> 	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:63)
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:41)
> 	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:50)
> 	at org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:50)
> 	at org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:79)
> 	at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:84)
> 	at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)
> 	at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:47)
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:41)
> 	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:66)
> 	at org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:98)
> 	at org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:49)
> 	at java.util.TimerThread.mainLoop(Unknown Source)
> 	at java.util.TimerThread.run(Unknown Source)
> Here is the route 
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
> 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
> 	xsi:schemaLocation="
>        http://www.springframework.org/schema/beans 
>        http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
>        http://www.springframework.org/schema/context 
>        http://www.springframework.org/schema/context/spring-context-2.5.xsd
>        http://activemq.apache.org/camel/schema/spring 
>        http://activemq.apache.org/camel/schema/spring/camel-spring.xsd">
> 	<!--  ActiveMQ brokerURL using VM protocol -->
> 	<bean id="jms" class="org.apache.activemq.camel.component.ActiveMQComponent">
> 		<property name="brokerURL" value="vm://localhost:61616?broker.persistent=false"
/>
> 	</bean>
> 	<bean id="camelTracer" class="org.apache.camel.processor.interceptor.Tracer">
> 		<property name="traceExceptions" value="false" />
> 		<property name="traceInterceptors" value="true" />
> 		<property name="logLevel" value="DEBUG" />
> 		<property name="logName" value="com.xpectis.tracker" />
> 	</bean>
> 	<bean id="traceFormatter" class="org.apache.camel.processor.interceptor.TraceFormatter">
> 		<property name="showBody" value="true" />
> 		<property name="showHeaders" value="true" />
> 		<property name="showBodyType" value="false" />
> 		<property name="showBreadCrumb" value="false" />
> 	</bean>
> 	<bean id="myXstreamDataFormat" class="com.xpectis.model.Formatter"
> 		factory-method="createInstance">
> 		<constructor-arg value="com.xpectis.model.StockPrice" />
> 	</bean>
> 	<bean id="stockPriceGenerator" class="com.xpectis.service.common.impl.StockPriceGenerator"
/>
> 	<camelContext id="camel" trace="true"
> 		xmlns="http://activemq.apache.org/camel/schema/spring">
> 		<jmxAgent id="agent" createConnector="true" />
> 		<route>
> 			<from uri="timer:generateStockPrice?fixedRate=true&amp;delay=100&amp;period=60000"
/>
> 			<to uri="bean:stockPriceGenerator" />
> 			<marshal ref="myXstreamDataFormat" />
> 			<splitter>
> 				<xpath>//price</xpath>
> 				<setHeader headerName="stock">
> 					<xpath>//price/@stock</xpath>
> 				</setHeader>
> 				<recipientList>
> 					<simple>jms:topic:STOCK.${in.header.stock}</simple>
> 				</recipientList>
> 			</splitter>
> 		</route>
> 	</camelContext>
> </beans>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message