Uploaded image for project: 'JBoss A-MQ'
  1. JBoss A-MQ
  2. ENTMQ-1999

ClassCastException using OriginalDestinationPropagateStrategy with WMQ

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JBoss A-MQ 6.3.x
    • JBoss A-MQ 6.3
    • camel

      Using OriginalDestinationPropagateStrategy with WMQ leads to a ClassCastException

      2016-11-01 14:37:07,757 | ERROR | .REQUEST.DEV.01] | 01                               | 150 - org.apache.camel.camel-core - 2.17.0.redhat-630187 
      Internal Server Error: java.lang.ClassCastException: com.ibm.jms.JMSTextMessage cannot be cast to org.apache.activemq.command.ActiveMQMessage
              at org.apache.activemq.camel.component.OriginalDestinationPropagateStrategy.onMessageCreated(OriginalDestinationPropagateStrategy.java:44)
              at org.apache.camel.component.jms.JmsBinding.makeJmsMessage(JmsBinding.java:309)
              at org.apache.camel.component.jms.JmsProducer$1.createMessage(JmsProducer.java:211)
              at org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate.doSendToDestination(JmsConfiguration.java:498)
              at org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate.access$100(JmsConfiguration.java:441)
              at org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate$1.doInJms(JmsConfiguration.java:455)
              at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:466)
              at org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate.send(JmsConfiguration.java:452)
              at org.apache.camel.component.jms.JmsProducer.doSend(JmsProducer.java:410)
              at org.apache.camel.component.jms.JmsProducer.processInOut(JmsProducer.java:240)
              at org.apache.camel.component.jms.JmsProducer.process(JmsProducer.java:151)
              at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:145)
              at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)
              at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468)
              at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)
              at org.apache.camel.processor.Pipeline.process(Pipeline.java:121)
              at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)
              at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)
              at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62)
              at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:145)
              at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)
              at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468)
              at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)
              at org.apache.camel.processor.loadbalancer.QueueLoadBalancer.process(QueueLoadBalancer.java:44)
              at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)
              at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468)
              at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)
              at org.apache.camel.processor.Pipeline.process(Pipeline.java:121)
              at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)
              at org.apache.camel.processor.Throttler.process(Throttler.java:164)
              at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)
              at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468)
              at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)
              at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:196)
              at org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:123)
              at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:555)
              at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:515)
              at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:485)
              at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:325)
              at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:263)
              at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1103)
              at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:997)
              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)
      

              gtully@redhat.com Gary Tully
              rhn-support-mrobson Matt Robson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: