Support Article

Failed to compile generated Java error is getting thrown

SA-37490

Summary



'Failed to compile generated Java' error is getting thrown during runtime. User has imported the application from one node to the another, and after that the error is being observed.

Error Messages



Caused by: com.pega.pegarules.pub.generator.FirstUseAssemblerException: Failed to compile generated Java

com.pegarules.generated.activity.ra_action_makecio_4eb9f03e9df63dbf69b0fed52a9c8f12: ----------
1. ERROR in com/pegarules/generated/activity/ra_action_makecio_4eb9f03e9df63dbf69b0fed52a9c8f12.java (at line 828)
YOUR_CLASS_PKG.prpcwrapper.bfCHC_ELIGwrappedCio =
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
YOUR_CLASS_PKG.prpcwrapper.bfCHC_ELIG cannot be resolved to a type
----------
2. ERROR in com/pegarules/generated/activity/ra_action_makecio_4eb9f03e9df63dbf69b0fed52a9c8f12.java (at line 829)
new YOUR_CLASS_PKG.prpcwrapper.bfCHC_ELIG(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
YOUR_CLASS_PKG.prpcwrapper.bfCHC_ELIG cannot be resolved to a type
----------
2 problems (2 errors)


Steps to Reproduce



Not Applicable


Root Cause



A defect or configuration issue in the operating environment
From the logs, it looks like the runtime dependency is not getting resolved. DSS settings compiler/defaultClasses or compiler/defaultPathsare missing.

Resolution



Perform the following local-change:

Use
compiler/defaultClasses or compiler/defaultPathsDSS settings to set the external classes in the PRPC classpath. This will make these classes available at runtime.

Published May 4, 2017 - Updated May 5, 2017

Have a question? Get answers now.

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