cancel
Showing results for 
Search instead for 
Did you mean: 

MQ JMS Issue in PO 7.4 AEX

0 Kudos

We prepared com.sap.aii.adapter.lib.sda as per SAP notes ( adding jar files to lib folder and changing provider.xml file ) and deployed successfully . Server bounced and stil lwe are receing error in comm channel saying "error connecting due to missing class com.ibm.mq.jms.MQQueueConenctionFactory"

property PreloadClasses has been added accoring to note 1751177

Does anyone had same issue and appreciate any input.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

pvishnuvardan_reddy
Active Contributor
0 Kudos

Hi Sreenivas,

From the error log, we could say that there is some issue with the class file. Can you cross check whether the relevant class has been loaded in to PI correctly or not.

Also, refer the below blog which might help you.

1138877 - How to Deploy External Drivers JDBC/JMS Adapters


SAP note 1751177 PI JMS adapter with MQ client library 7.1 and 7.5

0 Kudos

We deployed JMS Drivers successfully.  Sender channel still has an error

"java.lang.ClassCastException: Canonot cast class com.ibm.mq.jms.MQQueueConnectionFactory to interface javax.jms.TopicConnectionFactory at com.sap.aii.adapter.jms.core.connector.ConnectorImpl.getTopicCF (ConnectorImpl.java:608)..."

Any ideas?


Former Member
0 Kudos

Dear Sreenivas,

Open Sender Channel, go to "Adapter-Specific" tab, go to "Source" sub tab and un-check the "Enable Topic Support" option.

This should resolve this exception.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Sreenivas,

The class not found error comes when the driver is not installed properly. To check if the driver jar files installed properly or not, check following two things:

1. Open the jar file with winzip to check if the required Connection Factory class (in your case it's com.ibm.mq.jms.MQQueueConenctionFactory) is really in the jar file or not.

2. Log in to the SAP PI Server OS and Check the folder /usr/sap/<SAPPI_SYSTEM>/J<INSTANCE_NO>/j2ee/cluster/bin/ext/com.sap.aii.adapter.lib/lib if the jar file which you installed using com.sap.aii.adapter.lib.sda is present or not. In the installation is successful, the jar file should be found here.

The driver file doesn't get install even with small configuration mismatch.

0 Kudos

Hi shreyansh,

1. which jar file should have class com.ibmmq.jms.MQQueueConnectionFactory Class? and How do you open .jar file ?

2. Yes. /lib directory has all the jar files required for MQ7.5 as per SAP Note.

Former Member
0 Kudos

Hi Sreenivas,

The jar com.ibm.mqjms.jar has the class com.ibm.mq.jms.MQQueueConenctionFactory. To open a jar file, just save it on local window desktop, rename it to .zip e.g com.ibm.mqjms.zip and open it with winzip or other available software. You should see the file MQQueueConenctionFactory.class with package /com/ibm/mq/jms.

In your last reply, you had mentioned class name as - "com.ibmmq.jms.MQQueueConnectionFactory". Here one dot (".") is missing, the name should be "com.ibm.mq.jms.MQQueueConnectionFactory". Check if the class name is put properly in the channel configuration.

Former Member
0 Kudos

Hello Sreenivas,

Kindly add the missing class in the field something like "Queue connection factory".

Note :

     - If it is a sender channel, then you need to add it in source tab.

     - If it is a receiver channel. then you need to add it in target tab.

The above settings apply only to JMS-MQ channel.

Just for information, this class acts as library class which connects MQ with PI through JMS Queue.

For every connection of PI with MQ you use this library class, and route them through different folders in MQ which we call JMS Queue.

Kind Regards,

Souvik

asdasd_asdasd
Active Participant
0 Kudos