camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sambardar <sanjay_ambar...@yahoo.com>
Subject Re: Apache >> Camel >> ActiveMq
Date Tue, 20 Mar 2012 18:09:05 GMT
Camel Version 2.9.0. I am trying to run these routes for first time and i am
getting this exception at the start of the routes itself. Everything is
configured in the xml file. I am pasting full xml file followed by complete
stack trace:


<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:camel="http://camel.apache.org/schema/spring"
       xmlns:broker="http://activemq.apache.org/schema/core"
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
       http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd
       http://activemq.apache.org/schema/core
http://activemq.apache.org/schema/core/activemq-core-5.5.0.xsd">

  <camelContext  id="camel" xmlns="http://camel.apache.org/schema/spring">
   
   
   
   		<route>
   			<from uri = "netty:tcp://localhost:1556?textline=true" />
   				<process ref="perProcessor" />
			<to uri = "bean:perParserBean" />
				<multicast>
						<to uri = "bean:kpiGeneratorBean" />
						<pipeline>
							<to uri = "activeMq:queue:internal" />
							<to uri = "bean:xdrWriterBean" />
						</pipeline>
				</multicast>
   		</route>
   		
   		
   		<route>
   		   	<from uri = "bean:kpiGeneratorBean" />   
   			<to uri = "activeMq:queue:internal"/>
   			<to uri = "bean:xdrWriterBean"/>
   		</route>
  </camelContext>
  
  
  <broker:broker id="broker" useJmx="true" persistent="false"
brokerName="localhost">
    <broker:transportConnectors>
      <broker:transportConnector name="tcp" uri="tcp://localhost:61616"/>
    </broker:transportConnectors>
  </broker:broker>
  
  <bean id="activeMq"
class="org.apache.activemq.camel.component.ActiveMQComponent">
  	<property name="brokerURL" value="tcp://localhost:61616" />
  </bean>

  <bean id="perProcessor" class="com.xih.mediation.PerProcessor" />
  <bean id="kpiGeneratorBean" class="com.xih.mediation.KpiGeneratorBean" />
  <bean id="perParserBean" class="com.xih.mediation.PerParserBean" />
  <bean id="xdrWriterBean" class="com.xih.mediation.XdrWriterBean" />

</beans>


=============================================================================
STACK TRACE
==============================================================================

2 - bean://kpiGeneratorBean] TemporaryQueueReplyManager     WARN  ReplyTo
destination was not set and timeout occurred
2 - bean://kpiGeneratorBean] DefaultErrorHandler            ERROR Failed
delivery for exchangeId: ID-NCPC5MTVC91-4021-1332260165476-0-6. Exhausted
after delivery attempt: 1 caught: org.apache.camel.RuntimeExchangeException:
Failed to resolve replyTo destination on the exchange: Exchange[Message:
>From kpi generator]
apache.camel.RuntimeExchangeException: Failed to resolve replyTo destination
on the exchange: Exchange[Message: From kpi generator]
    at
org.apache.camel.component.jms.JmsProducer$1.createMessage(JmsProducer.java:149)[camel-jms-2.7.0.jar:2.7.0]
    at
org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate.doSendToDestination(JmsConfiguration.java:196)[camel-jms-2.7.0.jar:2.7.0]
    at
org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate.access$100(JmsConfiguration.java:139)[camel-jms-2.7.0.jar:2.7.0]
    at
org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate$1.doInJms(JmsConfiguration.java:153)[camel-jms-2.7.0.jar:2.7.0]
    at
org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:466)[spring-jms-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    at
org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate.send(JmsConfiguration.java:150)[camel-jms-2.7.0.jar:2.7.0]
    at
org.apache.camel.component.jms.JmsProducer.doSend(JmsProducer.java:351)[camel-jms-2.7.0.jar:2.7.0]
    at
org.apache.camel.component.jms.JmsProducer.processInOut(JmsProducer.java:161)[camel-jms-2.7.0.jar:2.7.0]
    at
org.apache.camel.component.jms.JmsProducer.process(JmsProducer.java:96)[camel-jms-2.7.0.jar:2.7.0]
    at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:115)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:285)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.processor.SendProcessor.process(SendProcessor.java:110)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:71)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:91)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:322)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:213)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:45)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:303)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.processor.Pipeline.process(Pipeline.java:117)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:45)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:150)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:117)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:71)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:86)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.impl.DefaultScheduledPollConsumer.poll(DefaultScheduledPollConsumer.java:64)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:140)[camel-core-2.9.0.jar:2.9.0]
    at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:92)[camel-core-2.9.0.jar:2.9.0]
    at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_27]
    at
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)[:1.6.0_27]
    at
java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)[:1.6.0_27]
    at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)[:1.6.0_27]
    at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)[:1.6.0_27]
    at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)[:1.6.0_27]
    at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_27]
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_27]
    at java.lang.Thread.run(Thread.java:662)[:1.6.0_27]




 

--
View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-ActiveMq-tp5580552p5580801.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message