Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

InvokeMQConnector in Pega 7.2.1 is throwing NullPointerException



User has upgraded from Pega 6.3 SP1 to Pega 7.2.1. They are receiving "NullPointerException" in InvokeMQConnector activity while trigerring MQ calls. But when they do private check out of the same rule from Pega 6.3 it is working fine. The issue is occurring due to propMap.put used in the following code:

propMap.put(, null);
propMap.put(, userID);
propMap.put(, password);

It looks like the MQ queue manager is unable to read the values set in propMap hashtable. They are not getting the exception when using the below instead:,; = null; = userID; = password;

The exceptions are not occurring any more after overriding the InvokeMQConnector activity to include the above change as present in 07-10-17 version of the InvokeMQConnector activity. 

Error Messages Caught unhandled exception: java.lang.NullPointerException
at com.pegarules.generated.activity.ra_action_invokemqconnector_2f79d050addbedeea18aa4ebf0e662e9.step1_circum0(
at com.pegarules.generated.activity.ra_action_invokemqconnector_2f79d050addbedeea18aa4ebf0e662e9.perform(
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(
at com.pegarules.generated.activity.ra_action_invoke_c18413a90dfc740df584259376dd4aa9.step4_circum0(
at com.pegarules.generated.activity.ra_action_invoke_c18413a90dfc740df584259376dd4aa9.perform(
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(
at com.pegarules.generated.activity.sh_action_getcustomer_8c5d31a351750b0da48a28a3fcea5c70.step7_circum0(
at com.pegarules.generated.activity.sh_action_getcustomer_8c5d31a351750b0da48a28a3fcea5c70.perform(
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(

Steps to Reproduce

1. Invoking of any MQ Connector throws the exception.

Root Cause

A defect in Pegasystems' code or rules is identified as root cause of this issue.


Apply HFix-31386.


Suggest Edit

Published January 18, 2017 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us