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

NullPointerException for pzAssemblePreprocess on portal

SA-19159

Summary



Application users are working with a  custom composite portal. One specific tab always displays an error message on the screen. This error seems to occur only in the pre-production environment. 


Error Messages



pzSectionBody_1(); /* Problem executing pzAssemblePreprocess for RULE-HTML-SECTION DATA-ADMIN-OPERATOR-ID MYTESTSECTION #20151120T063332.507 GMT java.lang.NullPointerException */


 


Steps to Reproduce

  1. Log in to Access Admin Portal (a custom composite portal).
  2. From lthe left navigation menu, click  Modify Operator.
    See the error on the wide area instead of seeing the expected section.


Root Cause



The PegaRULES logs show an exception with a corresponding stack trace:

2015-12-14 01:39:36,833 [] [ STANDARD] [ ] [ ] (.stream.StreamBuilderAssembler) ERROR  - Problem executing pzAssemblePreprocess for RULE-HTML-SECTION DATA-ADMIN-OPERATOR-ID MYTESTSECTION #20151120T063332.507 GMT
Will attempt to continue assembly...
java.lang.NullPointerException
at com.pegarules.generated.GenerateGridLayoutAsSection_071001_eCdgb1bm9YjhBYY6_uoPrQ.GenerateGridLayoutAsSection07_10_01(GenerateGridLayoutAsSection_071001_eCdgb1bm9YjhBYY6_uoPrQ.java:163)
Analysis of the portal showed that both the configuration and the generated Java were correct.
Setting DEBUG level on the following classes yielded nothing of significance to explain the cause of the problem:
  •      com.pega.pegarules.session.internal.authorization.access.AccessEvaluator.java 
  •      com.pega.pegarules.exec.internal.basic.dictionary.AccessInfoConclusion.java
A diagnostic hotfix (HFix-25373) revealed that the associated DEBUG logs identified an issue with the Access Role configuration of the users.   
Users working with the portal had a single Access Group and this Access Group had a single Access Role. 
As shown in the image below of the Access Role Name: Operator ID Administrator record, the Read Rules privilege for @baseclass is not  sufficient to correctly work with pzAssemblePreProcess.

Access Role Name Operator ID Administrator incorrect





Resolution



Perform the following local change:
  1. In the Access Role Name: Operator ID Administrator record, for the Read Rules privilege, specify a value of 5.
  2. Delete the caches entries using the following queries:
delete from pr_sys_appcache_shortcut where pzimplementationkey like 'html\_section.ra\_stream\_mytestsection\_%' escape '\';
delete from pr_sys_appcache_entry where pzimplementationkey like 'html\_section.ra\_stream\_mytestsection\_%' escape '\';
delete from pr_sys_appcache_dep where pzimplementationkey like 'html\_section.ra\_stream\_mytestsection\_%' escape '\';



 

 

Published October 8, 2020

Was this useful?

100% 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