activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Valerio VALDEZ Paolini <valerio.paol...@staff.dada.net>
Subject Re: ActiveMQ and Camel
Date Mon, 07 Apr 2008 11:11:00 GMT
Hi James,

thanks for you prompt reply!

On Monday 07 April 2008 12:48:47 James Strachan wrote:
> >  - if Camel inside ActiveMQ works out-of-the-box, why is example found at
> >
> >         http://activemq.apache.org/camel/message-router.html
> >
> >   throwing a Null Pointer exception during startup?
>
> Could you show me the stack trace?

the log is below; let me know of any other piece of information you may need.

Thanks,

	Valerio

---------------------------

ACTIVEMQ_HOME: /opt/amq
ACTIVEMQ_BASE: /opt/amq
Loading message broker from: xbean:activemq.xml
INFO  BrokerService                  - ActiveMQ 5.0.0 JMS Message Broker 
(localhost) is starting
INFO  BrokerService                  - For help or more information please 
see: http://activemq.apache.org/
INFO  AMQPersistenceAdapter          - AMQStore starting using 
directory: /opt/amq/data/localhost
INFO  KahaStore                      - Kaha Store using data 
directory /opt/amq/data/localhost/kr-store/state
INFO  AMQPersistenceAdapter          - Active data files: []
WARN  AMQPersistenceAdapter          - The ReferenceStore is not valid - 
recovering ...
INFO  KahaStore                      - Kaha Store successfully deleted data 
directory /opt/amq/data/localhost/kr-store/data
INFO  KahaPersistenceAdapter         - Recovering subscriber state for durable 
subscriber: SubscriptionInfo {subscribedDestination = topic://ActiveMQ.Agent, 
destination = topic://ActiveMQ.Agent, clientId = 
NC_localhost_inboundlocalhost, subscriptionName = localhost_ActiveMQ.Agent, 
selector = null}
INFO  KahaStore                      - Kaha Store using data 
directory /opt/amq/data/localhost/kr-store/data
INFO  AMQPersistenceAdapter          - Journal Recovery Started from: 
DataManager:(data-)
INFO  AMQPersistenceAdapter          - Recovered 1 operations from redo log in 
0.177 seconds.
INFO  AMQPersistenceAdapter          - Finished recovering the ReferenceStore
INFO  BrokerService                  - Using Persistence Adapter: 
AMQPersistenceAdapter(/opt/amq/data/localhost)
INFO  ManagementContext              - JMX consoles can connect to 
service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
INFO  TransportServerThreadSupport   - Listening for connections at: 
stomp://moto:61613
INFO  TransportConnector             - Connector stomp Started
INFO  BrokerService                  - ActiveMQ JMS Message Broker (localhost, 
ID:moto-37268-1207566407169-0:0) started
ERROR: java.lang.RuntimeException: Failed to execute start task. Reason: 
org.apache.camel.RuntimeCamelException: java.lang.NullPointerException
java.lang.RuntimeException: Failed to execute start task. Reason: 
org.apache.camel.RuntimeCamelException: java.lang.NullPointerException
	at 
org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:99)
	at 
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:51)
	at 
org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:104)
	at 
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:51)
	at 
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:76)
	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 org.apache.activemq.console.Main.runTaskClass(Main.java:222)
	at org.apache.activemq.console.Main.main(Main.java:106)
Caused by: org.apache.camel.RuntimeCamelException: 
java.lang.NullPointerException
	at 
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:98)
	at 
org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:77)
	at 
org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
	at 
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:75)
	at 
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:246)
	at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:355)
	at 
org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
	at 
org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
	at 
org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:91)
	at 
org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:51)
	at 
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
	at 
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
	at 
org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:112)
	at 
org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:74)
	... 10 more
Caused by: java.lang.NullPointerException
	at 
org.apache.camel.model.ExpressionNode.createFilterProcessor(ExpressionNode.java:96)
	at org.apache.camel.model.WhenType.createProcessor(WhenType.java:49)
	at org.apache.camel.model.ChoiceType.createProcessor(ChoiceType.java:61)
	at org.apache.camel.model.ProcessorType.makeProcessor(ProcessorType.java:882)
	at org.apache.camel.model.ProcessorType.addRoutes(ProcessorType.java:87)
	at org.apache.camel.model.RouteType.addRoutes(RouteType.java:182)
	at org.apache.camel.model.RouteType.addRoutes(RouteType.java:80)
	at org.apache.camel.model.RouteType.addRoutes(RouteType.java:71)
	at 
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:449)
	at 
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:441)
	at 
org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:140)
	at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:51)
	at 
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:96)
	... 23 more
ERROR: java.lang.Exception: org.apache.camel.RuntimeCamelException: 
java.lang.NullPointerException
java.lang.Exception: org.apache.camel.RuntimeCamelException: 
java.lang.NullPointerException
	at 
org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:100)
	at 
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:51)
	at 
org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:104)
	at 
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:51)
	at 
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:76)
	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 org.apache.activemq.console.Main.runTaskClass(Main.java:222)
	at org.apache.activemq.console.Main.main(Main.java:106)
Caused by: org.apache.camel.RuntimeCamelException: 
java.lang.NullPointerException
	at 
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:98)
	at 
org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:77)
	at 
org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
	at 
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:75)
	at 
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:246)
	at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:355)
	at 
org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
	at 
org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
	at 
org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:91)
	at 
org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:51)
	at 
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
	at 
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
	at 
org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:112)
	at 
org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:74)
	... 10 more
Caused by: java.lang.NullPointerException
	at 
org.apache.camel.model.ExpressionNode.createFilterProcessor(ExpressionNode.java:96)
	at org.apache.camel.model.WhenType.createProcessor(WhenType.java:49)
	at org.apache.camel.model.ChoiceType.createProcessor(ChoiceType.java:61)
	at org.apache.camel.model.ProcessorType.makeProcessor(ProcessorType.java:882)
	at org.apache.camel.model.ProcessorType.addRoutes(ProcessorType.java:87)
	at org.apache.camel.model.RouteType.addRoutes(RouteType.java:182)
	at org.apache.camel.model.RouteType.addRoutes(RouteType.java:80)
	at org.apache.camel.model.RouteType.addRoutes(RouteType.java:71)
	at 
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:449)
	at 
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:441)
	at 
org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:140)
	at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:51)
	at 
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:96)
	... 23 more


-----------------------------

-- 

Valerio Paolini - valerio.paolini@staff.dada.net
The lyf so short, the craft so long to lerne - Geoffrey Chaucer

Mime
View raw message