Grokbase Groups Camel users June 2015
FAQ
I have a Camel route that listens to a Queue where a C++/MQ client
application publishes messages. The client application sets a parameter on
the destination resulting that results in the following exception as listed
below. Is there a way to get around this? A JMS listener application
processes the same message on the Queue without error.

[org.apache.camel.RuntimeCamelException -
com.ibm.msg.client.jms.DetailedInvalidDestinationException: JMSCMQ0005: The
destination name 'queue://MY.QUEUE?putAsyncAllowed=1' was not valid.
The destination name specified does not conform to published destination
syntax.
Correct the specified destination name and try again.]
                 at
org.apache.camel.component.jms.JmsBinding.extractHeadersFromJms(JmsBinding.java:175)
~[camel-jms-2.12.2.jar:2.12.2]
                 at
org.apache.camel.component.jms.JmsMessage.populateInitialHeaders(JmsMessage.java:222)
~[camel-jms-2.12.2.jar:2.12.2]
                 at
org.apache.camel.impl.DefaultMessage.createHeaders(DefaultMessage.java:196)
~[camel-core-2.12.2.jar:2.12.2]
                 at
org.apache.camel.component.jms.JmsMessage.ensureInitialHeaders(JmsMessage.java:207)
~[camel-jms-2.12.2.jar:2.12.2]
                 at
org.apache.camel.component.jms.JmsMessage.getHeaders(JmsMessage.java:165)
~[camel-jms-2.12.2.jar:2.12.2]
                 at
org.apache.camel.impl.DefaultUnitOfWork.<init>(DefaultUnitOfWork.java:89)
~[camel-core-2.12.2.jar:2.12.2]
                 at
org.apache.camel.impl.DefaultUnitOfWork.<init>(DefaultUnitOfWork.java:71)
~[camel-core-2.12.2.jar:2.12.2]
                 at
org.apache.camel.util.UnitOfWorkHelper.createUoW(UnitOfWorkHelper.java:52)
~[camel-core-2.12.2.jar:2.12.2]
                 at
org.apache.camel.processor.CamelInternalProcessor$UnitOfWorkProcessorAdvice.createUnitOfWork(CamelInternalProcessor.java:618)
~[camel-core-2.12.2.jar:2.12.2]
                 at
org.apache.camel.processor.CamelInternalProcessor$UnitOfWorkProcessorAdvice.before(CamelInternalProcessor.java:600)
~[camel-core-2.12.2.jar:2.12.2]
                 at
org.apache.camel.processor.CamelInternalProcessor$UnitOfWorkProcessorAdvice.before(CamelInternalProcessor.java:581)
~[camel-core-2.12.2.jar:2.12.2]
                 at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:139)
~[camel-core-2.12.2.jar:2.12.2]
                 at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:105)
~[camel-core-2.12.2.jar:2.12.2]
                 at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:87)
~[camel-core-2.12.2.jar:2.12.2]
                 at
org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:103)
~[camel-jms-2.12.2.jar:2.12.2]
                 at
org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:562)
~[spring-jms-3.2.4.RELEASE.jar:3.2.4.RELEASE]
                 at
org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:500)
~[spring-jms-3.2.4.RELEASE.jar:3.2.4.RELEASE]
                 at
org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:468)
~[spring-jms-3.2.4.RELEASE.jar:3.2.4.RELEASE]
                 at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:325)
[spring-jms-3.2.4.RELEASE.jar:3.2.4.RELEASE]
                 at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:263)
[spring-jms-3.2.4.RELEASE.jar:3.2.4.RELEASE]
                 at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1103)
[spring-jms-3.2.4.RELEASE.jar:3.2.4.RELEASE]
                 at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1095)
[spring-jms-3.2.4.RELEASE.jar:3.2.4.RELEASE]
                 at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:992)
[spring-jms-3.2.4.RELEASE.jar:3.2.4.RELEASE]
                 at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[na:1.7.0_45]
                 at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[na:1.7.0_45]
                 at java.lang.Thread.run(Thread.java:744) [na:1.7.0_45]
Caused by: com.ibm.msg.client.jms.DetailedInvalidDestinationException:
JMSCMQ0005: The destination name
'queue://PORTIA.MDS.QUEUE.PROD.2?putAsyncAllowed=1' was not valid.
                 at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
~[na:1.7.0_45]
                 at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
~[na:1.7.0_45]
                 at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
~[na:1.7.0_45]
                 at
java.lang.reflect.Constructor.newInstance(Constructor.java:526)
~[na:1.7.0_45]
                 at
com.ibm.msg.client.commonservices.j2se.NLSServices.createException(NLSServices.java:319)
~[com.ibm.mq.jmqi-7.5.0.0.jar:7.5.0.0 - p000-L120604]
                 at
com.ibm.msg.client.commonservices.nls.NLSServices.createException(NLSServices.java:233)
~[com.ibm.mq.jmqi-7.5.0.0.jar:7.5.0.0 - p000-L120604]
                 at
com.ibm.msg.client.wmq.common.internal.WMQDestinationURIParser.setUri(WMQDestinationURIParser.java:450)
~[com.ibm.mq.jms-7.5.0.0.jar:7.5.0.0 - p000-L120604]
                 at
com.ibm.msg.client.wmq.common.internal.WMQDestination.<init>(WMQDestination.java:3212)
~[com.ibm.mq.jms-7.5.0.0.jar:7.5.0.0 - p000-L120604]
                 at
com.ibm.msg.client.wmq.common.internal.WMQDestination.<init>(WMQDestination.java:3173)
~[com.ibm.mq.jms-7.5.0.0.jar:7.5.0.0 - p000-L120604]
                 at
com.ibm.msg.client.wmq.factories.WMQFactoryFactory.createProviderDestination(WMQFactoryFactory.java:419)
~[com.ibm.mq.jms-7.5.0.0.jar:7.5.0.0 - p000-L120604]
                 at
com.ibm.msg.client.jms.admin.JmsDestinationImpl.setProviderDestination(JmsDestinationImpl.java:332)
~[com.ibm.mq.jms-7.5.0.0.jar:7.5.0.0 - p000-L120604]
                 at
com.ibm.msg.client.jms.admin.JmsDestinationImpl.initialise(JmsDestinationImpl.java:230)
~[com.ibm.mq.jms-7.5.0.0.jar:7.5.0.0 - p000-L120604]
                 at
com.ibm.msg.client.jms.admin.JmsDestinationImpl.<init>(JmsDestinationImpl.java:195)
~[com.ibm.mq.jms-7.5.0.0.jar:7.5.0.0 - p000-L120604]
                 at
com.ibm.msg.client.jms.admin.JmsJndiDestinationImpl.<init>(JmsJndiDestinationImpl.java:134)
~[com.ibm.mq.jms-7.5.0.0.jar:7.5.0.0 - p000-L120604]
                 at
com.ibm.mq.jms.MQDestination.<init>(MQDestination.java:189)
~[com.ibm.mq.jms-7.5.0.0.jar:7.5.0.0 - p000-L120604]
                 at com.ibm.mq.jms.MQQueue.<init>(MQQueue.java:143)
~[com.ibm.mq.jms-7.5.0.0.jar:7.5.0.0 - p000-L120604]
                 at
com.ibm.msg.client.wmq.factories.admin.WMQJmsFactory.createQueue(WMQJmsFactory.java:156)
~[com.ibm.mq.jms-7.5.0.0.jar:7.5.0.0 - p000-L120604]
                 at
com.ibm.msg.client.wmq.factories.admin.WMQJmsFactory.createDestination(WMQJmsFactory.java:122)
~[com.ibm.mq.jms-7.5.0.0.jar:7.5.0.0 - p000-L120604]
                 at
com.ibm.msg.client.jms.internal.JmsMessageImpl.providerDestToJmsDest(JmsMessageImpl.java:2210)
~[com.ibm.mq.jms-7.5.0.0.jar:7.5.0.0 - p000-L120604]
                 at
com.ibm.msg.client.jms.internal.JmsMessageImpl.getJMSDestination(JmsMessageImpl.java:782)
~[com.ibm.mq.jms-7.5.0.0.jar:7.5.0.0 - p000-L120604]
                 at
com.ibm.jms.JMSMessage.getJMSDestination(JMSMessage.java:631)
~[com.ibm.mq.jms-7.5.0.0.jar:7.5.0.0 - p000-L120604]
                 at
org.apache.camel.component.jms.JmsBinding.extractHeadersFromJms(JmsBinding.java:161)
~[camel-jms-2.12.2.jar:2.12.2]
                 ... 25 common frames omitted






--
View this message in context: http://camel.465427.n5.nabble.com/IBM-MQ-putAsyncAllowed-1-is-not-valid-tp5767804.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupusers @
categoriescamel
postedJun 2, '15 at 2:49p
activeJun 2, '15 at 2:49p
posts1
users1
websitecamel.apache.org

1 user in discussion

Infopad: 1 post

People

Translate

site design / logo © 2021 Grokbase