- Unable to stage an MQ test case on a remote simulator.
- Executing the same test case in ITR mode and staging in local simulator is working fine.
- Only when the same test case is staged on a remote simulator, it failed with the below stack trace:
============================================================================
| Exception Executing Messaging/ESB Step: java.lang.reflect.InvocationTargetException
============================================================================
| Step: MQ_Publish_UAT
----------------------------------------------------------------------------
| Trapped Exception: null
| Trapped Message: java.lang.reflect.InvocationTargetException
----------------------------------------------------------------------------
STACK TRACE
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.itko.lisa.jms.mq.MQUtilities.getTCPMQQueueConnection(MQUtilities.java:94)
at com.itko.lisa.jms.mq.MQJMSQueueEngine.setUpConnectionFactory(MQJMSQueueEngine.java:122)
at com.itko.lisa.jms.JMSQueueEngine.getSession(JMSQueueEngine.java:321)
at com.itko.lisa.jms.JMSQueueEngine.prepare(JMSQueueEngine.java:120)
at com.itko.lisa.jms.JMSNode.openExec(JMSNode.java:1634)
at com.itko.lisa.jms.JMSNode.execute(JMSNode.java:1897)
at com.itko.lisa.test.TestNode.executeNode(TestNode.java:981)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1280)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1195)
at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1180)
at com.itko.lisa.test.TestCase.executeTest(TestCase.java:1124)
at com.itko.lisa.coordinator.Instance.run(Instance.java:204)
Caused by: com.ibm.msg.client.jms.DetailedIllegalStateException: JMSWMQ0018: Failed to connect to queue manager 'MQ1ABCD' with connection mode 'Client' and host name 'mq1a-server.com(6232)'. Check the queue manager is started and if running in client mode, check there is a listener running. Please see the linked exception for more information.
at com.ibm.msg.client.wmq.common.internal.Reason.reasonToException(Reason.java:496)
at com.ibm.msg.client.wmq.common.internal.Reason.createException(Reason.java:236)
at com.ibm.msg.client.wmq.internal.WMQConnection.<init>(WMQConnection.java:451)
at com.ibm.msg.client.wmq.factories.WMQConnectionFactory.createV7ProviderConnection(WMQConnectionFactory.java:7188)
at com.ibm.msg.client.wmq.factories.WMQConnectionFactory.createProviderConnection(WMQConnectionFactory.java:6579)
at com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl.createConnection(JmsConnectionFactoryImpl.java:295)
at com.ibm.mq.jms.MQConnectionFactory.createCommonConnection(MQConnectionFactory.java:6232)
at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:115)
... 16 more
Caused by: com.ibm.mq.MQException: JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2059' ('MQRC_Q_MGR_NOT_AVAILABLE').
at com.ibm.msg.client.wmq.common.internal.Reason.createException(Reason.java:223)
All supported DevTest releases.
MQ version 7
The below property was enabled in the Simulators vmoptions file on the remote server where it failed to execute. This property was preventing the user to stage the test case to the same channel which worked in local environment.
-Dcom.ibm.mq.cfg.useIBMCipherMappings=false
Disable the property “-Dcom.ibm.mq.cfg.useIBMCipherMappings=false” by commenting it in the simulator’s vmoptions file.