[
https://issues.apache.org/jira/browse/CAMEL-14033?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-14033.
---------------------------------
Fix Version/s: 3.0.0
Assignee: Claus Ibsen
Resolution: Fixed
Fixed the NPE and update the docs to say to use queues
> multiple consumers for namedReplyTo results in a cryptic nullPointer
> --------------------------------------------------------------------
>
> Key: CAMEL-14033
> URL: https://issues.apache.org/jira/browse/CAMEL-14033
> Project: Camel
> Issue Type: Bug
> Components: camel-sjms
> Affects Versions: 3.0.0.RC1
> Reporter: Ryan Yeats
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 3.0.0
>
>
> Per
> [https://camel.apache.org/components/latest/sjms-component.html#_clustering]
> you should not have multiple inOut producerEndpoints using the same replyTo
> address but if you do it results in a cryptic null pointer exception it would
> be nice to have a better error message of some sort directing you to use a
> unique replyTo address or temporary queue. Additionally if the replyTo is a
> topic then I don't believe it should result in an error and it may be better
> to actually use a message selector for this case.
> java.lang.NullPointerException: nulljava.lang.NullPointerException: null at
> org.apache.camel.component.sjms.producer.InOutProducer$MessageConsumerResourcesFactory$1.onMessage(InOutProducer.java:103)
> ~[?:?] at
> org.apache.activemq.artemis.jms.client.JMSMessageListenerWrapper.onMessage(JMSMessageListenerWrapper.java:110)
> ~[254:org.apache.activemq.artemis-server-osgi:2.8.1] at
> org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl.callOnMessage(ClientConsumerImpl.java:1031)
> ~[?:?] at
> org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl.access$400(ClientConsumerImpl.java:50)
> ~[?:?] at
> org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl$Runner.run(ClientConsumerImpl.java:1154)
> ~[?:?] at
> org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:42)
> ~[?:?] at
> org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:31)
> ~[?:?] at
> org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:66)
> ~[?:?] at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> [?:?] at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> [?:?]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)