Support Article

Compiler error while generating library

SA-30650

Summary



Pega instance has been upgraded from PRPC 6.3 to Pega 7.2.1 version. In Pega 7.2.1 user is facing an exception when clicking on generate library button in the custom function.

Error Messages



Error(s) detected while generating java.

Compiler reported: ---------- 1. ERROR in /com/pegarules/generated/mhmprpfw_plattsprpclib.java (at line 46) import de.odysseus.staxon.json.JsonXMLConfig; ^^^^^^^^^^^ The import de.odysseus cannot be resolved ---------- 2. ERROR in /com/pegarules/generated/mhmprpfw_plattsprpclib.java (at line 47) import de.odysseus.staxon.json.JsonXMLConfigBuilder; ^^^^^^^^^^^ The import de.odysseus cannot be resolved ----------


Steps to Reproduce



1. Log into designer.
2. Click Records.
3. Click Technical.
4. Click Function.
5. Select function and try clicking on Compile or Generate Library.
6. Observe an error gets thrown.


Root Cause



A defect or configuration issue in the operating environment:

The third party jars are not available at runtime and hence the error is getting thrown.

Resolution



Perform the following local-change:

DSS setting
compiler/DefaultPath is configured, however the actual jars were missing at the defined locations.

Follow these steps :

1. Define DSS setting compiler/DefaultPath.
2. Create directory structure with the jars.
3. Restart the server.
 

Published November 22, 2016 - Updated November 25, 2016


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.