camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Ländle (JIRA) <j...@apache.org>
Subject [jira] [Reopened] (CAMEL-10961) ZookeeperRoutingPolicy - Error setting up election node
Date Fri, 10 Mar 2017 10:59:04 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-10961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andreas Ländle reopened CAMEL-10961:
------------------------------------

Sorry, I fear this was a misunderstanding. I didn't want to have all the new features regarding
curator included. I just wanted to ask to inlcude the three lines in the ZooKeeperProducer
to avoid the NPE:

       if (connection == null) {
            connection = this.zkm.getConnection();
        }

Not more not less. Maybe you want to consider this.

> ZookeeperRoutingPolicy - Error setting up election node
> -------------------------------------------------------
>
>                 Key: CAMEL-10961
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10961
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-zookeeper
>    Affects Versions: 2.18.2
>         Environment: Windows; Java 1.8
>            Reporter: Andreas Ländle
>            Assignee: Claus Ibsen
>             Fix For: 2.19.0
>
>
> {code}
> 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) [?:?]
> {code}
> 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). 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message