IBM Support


Connecting to WebSphere MQ leads JMS error in Sterling Order Management

Troubleshooting


Problem

Attempts to connect to WebSphere MQ from IBM Sterling Order Management leads to the error java.lang.reflect.InvocationTargetException.

Symptom

Following error message can be seen in the application server logs:


[10/20/16 22:28:17:370 IST] 00000233 SystemOut     O 2016-10-20 22:28:17,368:ERRORDTL:WebContainer : 5: [1476982697368]java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:613)
.
Caused by: java.lang.NoSuchMethodError: com/ibm/mq/jmqi/handles/Hconn.getQmgrSplCapability()Lcom/ibm/mq/constants/QmgrSplCapability;
at com.ibm.mq.ese.jmqi.InterceptedJmqiImpl.jmqiConnect(InterceptedJmqiImpl.java:313)
at com.ibm.mq.ese.jmqi.ESEJMQI.jmqiConnect(ESEJMQI.java:337)

Cause

WMQ jars are bundled as part of the SSFS ear.

Diagnosing The Problem

SSFS application when launched in WebSphere Application Server (WAS), throws JMS connectivity error while attempting to connect to WebSphere MQ (WMQ) for reading or writing messages. A possible scenario when such error can occur is when there are services containing JMS components to connect to WMQ which gets triggered as events.While deploying application in WAS, WMQ jars should not be bundled along the ear. WAS already has pre-defined WMQ jars used for connectivity.

Resolving The Problem

Steps to resolve:

  1. Remove WMQ jars from the APPDynamicclasspath.cfg and re-build the ear,


  2. Add the following jars to the WAS classpath: providerutil.jar and fscontext.jar.

[{"Product":{"code":"SS6PEW","label":"Sterling Order Management"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Installation","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.5;9.4;9.3;9.2.1;9.2;9.1;9.0","Edition":"All Editions","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
16 June 2018

UID

swg21992891