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
- Log in to Access Admin Portal (a custom composite portal).
- 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
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.

Resolution
Perform the following local change:
- In the Access Role Name: Operator ID Administrator record, for the Read Rules privilege, specify a value of 5.
- 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 '\';
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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.