Support Article

Not able to submit adjustments

SA-31194

Summary



User imported a set of client MQ libraries after which, started seeing the following ERROR when calling connect-mq.

Error Messages



Caused by: 
com.ibm.mq.jmqi.JmqiException: CC=2;RC=2538;AMQ9204: Connection to host 'localhost(1414)' rejected. [1=com.ibm.mq.jmqi.JmqiException[CC=2;RC=2538;AMQ9213: A communications error for 'TCP' occurred. [1=java.net.ConnectException[A remote host refused an attempted connect operation.],3=connnectUsingLocalAddress,4=TCP,5=Socket.connect]],3=localhost(1414),5=RemoteTCPConnection.connnectUsingLocalAddress]
    at com.ibm.mq.jmqi.remote.api.RemoteFAP.jmqiConnect(RemoteFAP.java:2098)
    at com.ibm.mq.jmqi.remote.api.RemoteFAP.jmqiConnect(RemoteFAP.java:1347)
    at com.ibm.mq.MQSESSION.MQCONNX_j(MQSESSION.java:924)
    at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:221)

 

Steps to Reproduce



Invoke the flow and wait for the Agent execution to call the connect-mq.

Root Cause



A third-party product issue. 

During our troubleshooting session, Pega identified that the issue is because of the change in client MQ libraries the MQQueManager is no longer, reading the following keys set in the propMap Hashtable.
  • com.ibm.mq.MQEnvironment.hostname     
  • com.ibm.mq.MQEnvironment.port
  • com.ibm.mq.MQEnvironment.channel 
  • com.ibm.mq.MQEnvironment.userID 
  • com.ibm.mq.MQEnvironment.password 
 

Resolution



Make the following change to the operating environment:
 

Override the InvokeMQConnector Activity rule into the application ruleset making the following modifications.

After making these modifications the ERROR has been resolved.

                    
              com.ibm.mq.MQEnvironment.hostname = hostname;    
              com.ibm.mq.MQEnvironment.port = port;
              com.ibm.mq.MQEnvironment.channel = channel;
              com.ibm.mq.MQEnvironment.userID = userID;
              com.ibm.mq.MQEnvironment.password = password;
                
             
              propMap.put(com.ibm.mq.MQC.TRANSPORT_PROPERTY,com.ibm.mq.MQC.TRANSPORT_MQSERIES_CLIENT);
                /*
                  propMap.put(com.ibm.mq.MQEnvironment.hostname, hostname);
                propMap.put(com.ibm.mq.MQEnvironment.port, port);
                propMap.put(com.ibm.mq.MQEnvironment.channel, channel);
                propMap.put(com.ibm.mq.MQEnvironment.userID, userID);
                propMap.put(com.ibm.mq.MQEnvironment.password, password);*/
       
            }

 

Published December 8, 2016 - Updated December 20, 2016

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.