Hi I suggest to report the NPE to the ActiveMQ mailing list or their JIRA as its a bug in their project
On Sat, Jan 28, 2017 at 12:35 AM, darek <[email protected]> wrote: > I wonder if you have solved this problem, if so I'd like to know how. > What version of activemq are you using? I'm upgrading from 5.10.2 to 5.13.4 > and have similar issue. It seems to be caused by PooledConnectionFactory. > When I replace the activemq-jms-pool jar file with 5.10.2 the issue goes > away. I had the same problem with non-camel components, had to change to > regular connection factory to make it work. > 2017-01-27 15:44:58,875 [Service.uplinkCommsHubConfig.queue]] WARN > ultJmsMessageListenerContainer - Could not refresh JMS Connection for > destination > 'CommsHubConfigService.uplinkCommsHubConfig.queue?consumer.prefetchSize=0' - > retrying in 5000 ms. Cause: Error while attempting to add new Connection to > the pool > javax.jms.JMSException: Error while attempting to add new Connection to the > pool > at > org.apache.activemq.jms.pool.PooledConnectionFactory.createJmsException(PooledConnectionFactory.java:266) > at > org.apache.activemq.jms.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:225) > at > org.apache.activemq.jms.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:204) > at > org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:184) > at > org.springframework.jms.listener.AbstractJmsListeningContainer.createSharedConnection(AbstractJmsListeningContainer.java:404) > at > org.springframework.jms.listener.AbstractJmsListeningContainer.refreshSharedConnection(AbstractJmsListeningContainer.java:389) > at > org.springframework.jms.listener.DefaultMessageListenerContainer.refreshConnectionUntilSuccessful(DefaultMessageListenerContainer.java:869) > at > org.springframework.jms.listener.DefaultMessageListenerContainer.recoverAfterListenerSetupFailure(DefaultMessageListenerContainer.java:851) > at > org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:982) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.lang.NullPointerException > at > org.apache.activemq.jms.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:223) > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/NullPointer-org-apache-camel-component-jms-DefaultJmsMessageListenerContainer-tp5788071p5793140.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2
