Support Article
Null pointer exception while creating RAP export
SA-34798
Summary
When attempting to create an export archive from a RAP, an error indicating null (NullPointerException) is encountered.
Error Messages
(In PegaRULES logfile):
2017-03-06 15:21:57,400 [ PegaRULES-Batch-4] [ STANDARD] [ ] [your_app:01.01.01] (File.Rule_Admin_Product.Action) ERROR your_user - ExportZipFile: Encountered the following error: null
(In application server logfile):
java.lang.NullPointerException
at com.pega.pegarules.priv.rulemgmt.ABVRulesetContext.<init>(ABVRulesetContext.java:55)
at com.pega.pegarules.deploy.internal.PRRuleMgmtUtilsImpl.getABVRuleSetAppContext(PRRuleMgmtUtilsImpl.java:1016)
at com.pega.pegarules.deploy.internal.PRRuleMgmtUtilsImpl.updateABVRulesetAppContext(PRRuleMgmtUtilsImpl.java:916)
at com.pegarules.generated.activity.ra_action_createzipfile_c493da1a635ebb094928fe3658ef2140.step9_circum0(ra_action_createzipfile_c493da1a635ebb094928fe3658ef2140.java:1007)
at com.pegarules.generated.activity.ra_action_createzipfile_c493da1a635ebb094928fe3658ef2140.perform(ra_action_createzipfile_c493da1a635ebb094928fe3658ef2140.java:232)
Steps to Reproduce
Attempt to create an export file from a RAP record.
Root Cause
A defect in Pegasystems’ code or rules: This issue occurs when one or more of the rulesets referenced on the RAP record refer to a ruleset that utilizes application validation but does NOT have the application context information properly validated on the RAP record (the field is blank).
Resolution
Perform the following local-change: Revalidate all the ruleset references on the RAP record to ensure they have proper application context references. It may also be necessary to resave some of the rulesets referenced to ensure the application context references are valid.
Published March 10, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.