Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.18.2
-
None
-
Windows; Java 1.8
-
Unknown
Description
2017-03-08T07:28:43,282 | INFO | Camel (jms-context) thread #0 - JmsConsumer[QUEPOSTDATA] | ZooKeeperElection | 84 - org.apache.camel.camel-zookeeper - 2.18.2 | Initializing ZookeeperElection with uri 'zookeeper:localhost:2181,localhost:2182,localhost:2183/aq-um-bridge/master' 2017-03-08T07:28:43,329 | WARN | Camel (jms-context) thread #0 - JmsConsumer[QUEPOSTDATA] | ZooKeeperElection | 84 - org.apache.camel.camel-zookeeper - 2.18.2 | Error setting up election node /aq-um-bridge/master/BH5PMD2H-4a1cc867-94ec-409c-8bbf-a36e4fc8966e java.lang.NullPointerException at org.apache.camel.component.zookeeper.operations.SetDataOperation.getResult(SetDataOperation.java:42) [84:org.apache.camel.camel-zookeeper:2.18.2] at org.apache.camel.component.zookeeper.operations.ZooKeeperOperation.get(ZooKeeperOperation.java:70) [84:org.apache.camel.camel-zookeeper:2.18.2] at org.apache.camel.component.zookeeper.ZooKeeperProducer.synchronouslySetData(ZooKeeperProducer.java:234) [84:org.apache.camel.camel-zookeeper:2.18.2] at org.apache.camel.component.zookeeper.ZooKeeperProducer.process(ZooKeeperProducer.java:88) [84:org.apache.camel.camel-zookeeper:2.18.2] at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) [56:org.apache.camel.camel-core:2.18.2] at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:197) [56:org.apache.camel.camel-core:2.18.2] at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:97) [56:org.apache.camel.camel-core:2.18.2] at org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:529) [56:org.apache.camel.camel-core:2.18.2] at org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:497) [56:org.apache.camel.camel-core:2.18.2] at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:365) [56:org.apache.camel.camel-core:2.18.2] at org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:497) [56:org.apache.camel.camel-core:2.18.2] at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:209) [56:org.apache.camel.camel-core:2.18.2] at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:139) [56:org.apache.camel.camel-core:2.18.2] at org.apache.camel.component.zookeeper.policy.ZooKeeperElection.createCandidateNode(ZooKeeperElection.java:146) [84:org.apache.camel.camel-zookeeper:2.18.2] at org.apache.camel.component.zookeeper.policy.ZooKeeperElection.testAndCreateCandidateNode(ZooKeeperElection.java:116) [84:org.apache.camel.camel-zookeeper:2.18.2] at org.apache.camel.component.zookeeper.policy.ZooKeeperElection.isMaster(ZooKeeperElection.java:92) [84:org.apache.camel.camel-zookeeper:2.18.2] at org.apache.camel.component.zookeeper.policy.ZooKeeperRoutePolicy.onExchangeBegin(ZooKeeperRoutePolicy.java:79) [84:org.apache.camel.camel-zookeeper:2.18.2] at org.apache.camel.processor.CamelInternalProcessor$RoutePolicyAdvice.before(CamelInternalProcessor.java:490) [56:org.apache.camel.camel-core:2.18.2] at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:145) [56:org.apache.camel.camel-core:2.18.2] at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:97) [56:org.apache.camel.camel-core:2.18.2] at org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:112) [61:org.apache.camel.camel-jms:2.18.2] at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:721) [72:org.apache.servicemix.bundles.spring-jms:4.3.5.RELEASE_1] at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:681) [72:org.apache.servicemix.bundles.spring-jms:4.3.5.RELEASE_1] at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:651) [72:org.apache.servicemix.bundles.spring-jms:4.3.5.RELEASE_1] at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:317) [72:org.apache.servicemix.bundles.spring-jms:4.3.5.RELEASE_1] at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:235) [72:org.apache.servicemix.bundles.spring-jms:4.3.5.RELEASE_1] at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1166) [72:org.apache.servicemix.bundles.spring-jms:4.3.5.RELEASE_1] at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1158) [72:org.apache.servicemix.bundles.spring-jms:4.3.5.RELEASE_1] at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:1055) [72:org.apache.servicemix.bundles.spring-jms:4.3.5.RELEASE_1] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?] at java.lang.Thread.run(Unknown Source) [?:?]
Please let me know what other information I should contribute. My guess is that this is just a timing problem; because the zookeeper instances were up and running (on the same server).
Also I noticed that there was no election-rote created after this error - so my guess is that routes in this state would never run, effectivly leading to a dead-node (failover to this node would never happen).
Attachments
Issue Links
- links to