java.lang.ClassCastException: org.apache.activemq.ActiveMQConnectionFactory cannot be cast to javax.jms.XAConnectionFactory

Stack Overflow | fipries | 4 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    WSO2 ESB 5.0.0 + ActiveMQ 5.10.0

    Stack Overflow | 4 months ago | fipries
    java.lang.ClassCastException: org.apache.activemq.ActiveMQConnectionFactory cannot be cast to javax.jms.XAConnectionFactory
  2. 0

    Issue with WSO2 ESB using JMS transport with IBM WMQ8

    Stack Overflow | 1 year ago | Gaurav
    java.lang.ClassCastException: com.ibm.mq.jms.MQSession cannot be cast to javax.jms.QueueSession

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.apache.activemq.ActiveMQConnectionFactory cannot be cast to javax.jms.XAConnectionFactory

      at org.apache.axis2.transport.jms.JMSOutTransportInfo.createJMSSender()
    2. Apache Axis2 - Transport - JMS
      JMSSender.sendMessage
      1. org.apache.axis2.transport.jms.JMSOutTransportInfo.createJMSSender(JMSOutTransportInfo.java:377)
      2. org.apache.axis2.transport.jms.JMSSender.sendMessage(JMSSender.java:135)
      2 frames
    3. Apache Axis2 - Transport - Base
      AbstractTransportSender.invoke
      1. org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:112)
      1 frame
    4. org.apache.axis2
      OperationClient.execute
      1. org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
      2. org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutOnlyAxisOperation.java:297)
      3. org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
      3 frames
    5. Apache Synapse - Core
      SynapseCallbackReceiver.receive
      1. org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:581)
      2. org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:78)
      3. org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:512)
      4. org.apache.synapse.endpoints.AbstractEndpoint.send(AbstractEndpoint.java:382)
      5. org.apache.synapse.endpoints.AddressEndpoint.send(AddressEndpoint.java:65)
      6. org.apache.synapse.endpoints.TemplateEndpoint.sendMessage(TemplateEndpoint.java:74)
      7. org.apache.synapse.endpoints.TemplateEndpoint.send(TemplateEndpoint.java:66)
      8. org.apache.synapse.endpoints.ResolvingEndpoint.sendMessage(ResolvingEndpoint.java:74)
      9. org.apache.synapse.endpoints.ResolvingEndpoint.send(ResolvingEndpoint.java:58)
      10. org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:121)
      11. org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:97)
      12. org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:59)
      13. org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:158)
      14. org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:330)
      15. org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:554)
      16. org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:188)
      16 frames
    6. org.apache.axis2
      AxisEngine.receive
      1. org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
      1 frame
    7. org.apache.synapse
      ClientWorker.run
      1. org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:261)
      1 frame
    8. Apache Axis2 - Transport - Base
      NativeWorkerPool$1.run
      1. org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
      1 frame
    9. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames