As part of our software maintenance for PO JMS adaptor, we were upgrading the IBM MQ JMS jars from 8.0.0.2 to 9.3.2.0. i.e., com.ibm.mq.allclient.jar needs to be updated.

After the upgrade, though message processing was successful, we were getting below errors while starting and stopping channels.

  • Could not start communication channel due to an internal error
  • Could not connect to PI component; check trace files in SAP NetWeaver Administrator for additional information

Further check with XPI Inspector trace using Example 50 for the channel, revealed below error.

  • Wrapped remote exception: java.lang.NoClassDefFoundError: org/json/JSONException
Caused by: Wrapped remote exception: java.lang.NoClassDefFoundError: org/json/JSONException
	at com.ibm.msg.client.wmq.internal.WMQConnection.toJson(WMQConnection.java:2756)
	at com.ibm.msg.client.jms.internal.JmsConnectionImpl.toJson(JmsConnectionImpl.java:2787)
	at com.ibm.mq.jms.MQConnection.toString(MQConnection.java:516)
	at java.lang.String.valueOf(String.java:3040)
	at com.sap.aii.adapter.jms.core.connector.ConnectorImpl.closeConnection(ConnectorImpl.java:837)

 

Solution:

Based on SAP ticket, we had to deploy additional one more jar org.json.jar, which fixed our issue.

Also, now Note 747601 is updated by SAP, that integration with IBM MQ 9.2+ would require com.ibm.mq.allclient.jar and org.json.jar.

IBM Jars can be downloaded from https://ibm.biz/mq93javaclient by your JMS partner. Once downloaded 9.3.2.0-IBM-MQ-Install-Java-All.jar, needs to be unzipped to access the necessary jars from wmqJavaSElib location.

Reference:

  • SAP Note 747601
    • https://launchpad.support.sap.com/#/notes/747601
  • IBM MQ classes for Java relocatable JAR files
    • https://www.ibm.com/docs/en/ibm-mq/9.3?topic=java-mq-classes-relocatable-jar-files
  • Obtaining the IBM MQ classes for JMS and IBM MQ classes
    • https://www.ibm.com/docs/en/ibm-mq/9.3?topic=umcjm-obtaining-mq-classes-jms-mq-classes-jakarta-messaging-separately
Sara Sampaio

Sara Sampaio

Author Since: March 10, 2022

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x