Symptom
While trying to connect to IIB MQ using the JMS Adapter at receiver end there is an error,
Error: A channel error occurred. Detailed error (if any) : java.lang.ClassCastException: com.ibm.mq.jms.MQQueueConnectionFactory (loaded by library:com.sap.aii.adapter.lib.jms20@99803 com.sap.engine.boot.loader.ResourceMultiParentClassLoader) cannot be cast to javax.jms.TopicConnectionFactory (loaded by library:jms_api@99517 com.sap.engine.boot.loader.ResourceMultiParentClassLoader)
In the XPI example 50 trace the below error got captured,
[EXCEPTION]
java.lang.ClassCastException: com.ibm.mq.jms.MQQueueConnectionFactory (loaded by library:com.sap.aii.adapter.lib.jms20@99796 com.sap.engine.boot.loader.ResourceMultiParentClassLoader) cannot be cast to javax.jms.TopicConnectionFactory (loaded by library:jms_api@99510 com.sap.engine.boot.loader.ResourceMultiParentClassLoader)
at com.sap.aii.adapter.jms.core.connector.ConnectorImpl.getTopicCF(ConnectorImpl.java:557)
at com.sap.aii.adapter.jms.core.connector.ConnectorImpl.createConnection(ConnectorImpl.java:454)
[EXCEPTION]
com.sap.aii.af.lib.mp.module.ModuleException: Temporary error: JMS Adapter call failed. Reason: com.ibm.mq.jms.MQQueueConnectionFactory (loaded by library:com.sap.aii.adapter.lib.jms20@99796 com.sap.engine.boot.loader.ResourceMultiParentClassLoader) cannot be cast to javax.jms.TopicConnectionFactory (loaded by library:jms_api@99510 com.sap.engine.boot.loader.ResourceMultiParentClassLoader)
at com.sap.aii.adapter.jms.core.channel.AdapterImpl.send(AdapterImpl.java:1399)
at com.sap.aii.adapter.jms.core.service.AdapterServiceFrameImpl.sendToAdapter(AdapterServiceFrameImpl.java:235)
at com.sap.aii.adapter.jms.ejb.SendBinarytoXIJMSService.sendToAdapter(SendBinarytoXIJMSService.java:83)
Read more...
Environment
- SAP NetWeaver 7.5
- SAP Process Integration
Product
Keywords
com.ibm.mq.jms.MQQueueConnectionFactory, IIB MQ, QueueConnectionFactory , KBA , BC-XI-CON-JMS , JMS Adapter , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.