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

First use assembly compile error on MQ libraries

SA-39483

Summary



First use assembly compile error on MQ libraries with Smart Investigate for Payments 7.11.

Error currently occurs in Pega 7 sandbox environment.


Error Messages




Caused by: com.pega.pegarules.pub.generator.FirstUseAssemblerException: Failed to compile generated Java com.pegarules.generated.activity.ra_action_invoke_9f9c983cd426a34878ce5eec5bb6e670: ----------
1. ERROR in /com/pegarules/generated/activity/ra_action_invoke_9f9c983cd426a34878ce5eec5bb6e670.java (at line 421)
com.ibm.mq.MQQueueManager qmRequest = null;
^^^^^^^^^^
com.ibm.mq cannot be resolved to a type


Steps to Reproduce



Try to put a message to MQ and observe the first use assembly error.

MQ connectivity test on the other hand is successful so the issue seems to affect only compile time.


Root Cause



The defaultPaths were not set correctly.

Paths specified are unix paths, but the separtor used is a semi colom (;).

This is incorrect in Unix environment path separator for Unix is a colon (:) also the last path in the set must not have anything at the end for unix in windows this does not matter.

Resolution



Use the following example procedure to resolve the issue:

Procedure

1. In the Compiler landing page system>settings >compiler.

2. Under defaultPaths enter your library paths like below:
u01/ninjainst/weblogic/domains/smarti-dev02/lib/com.ibm.mq.jmqi.jar:
u01/ninjainst/weblogic/domains/smarti-dev02/lib/com.ibm.mq.pcf.jar:
u01/ninjainst/weblogic/domains/smarti-dev02/lib/com.ibm.mq.headers.jar:
u01/ninjainst/weblogic/domains/smarti-dev02/lib/com.ibm.mq.commonservices.jar

3. After this, click the submit button the DSS should change to reflect this new defaultPaths.

Published August 17, 2017 - Updated December 2, 2021

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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