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

Segment with Property from associated customer class throws NPE

SA-23090

Summary



When adding a Property from a class associated with the customer class, a NullPointerException occurs under createjoincriterialistforsave Activity.

Error Messages



Segment save failed: [object Object]

java.lang.NullPointerException
at com.pegarules.generated.activity.ra_action_createjoincriterialistforsave_2b9786ced1b9fc179a247f9cbfdba66a.step4_5_circum0(ra_action_createjoincriterialistforsave_2b9786ced1b9fc179a247f9cbfdba66a.java:827)
at com.pegarules.generated.activity.ra_action_createjoincriterialistforsave_2b9786ced1b9fc179a247f9cbfdba66a.step4_0_circum0(ra_action_createjoincriterialistforsave_2b9786ced1b9fc179a247f9cbfdba66a.java:503)
at com.pegarules.generated.activity.ra_action_createjoincriterialistforsave_2b9786ced1b9fc179a247f9cbfdba66a.perform(ra_action_createjoincriterialistforsave_2b9786ced1b9fc179a247f9cbfdba66a.java:137)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3510)
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10587)
at com.pegarules.generated.activity.ra_action_savesegmentrequest_99f27e1aa03c044f7cf72df7e4e96182.step20_2_5_circum0(ra_action_savesegmentrequest_99f27e1aa03c044f7cf72df7e4e96182.java:2877)
at com.pegarules.generated.activity.ra_action_savesegmentrequest_99f27e1aa03c044f7cf72df7e4e96182.step20_2_0_circum0(ra_action_savesegmentrequest_99f27e1aa03c044f7cf72df7e4e96182.java:2274)
at com.pegarules.generated.activity.ra_action_savesegmentrequest_99f27e1aa03c044f7cf72df7e4e96182.step20_0_circum0(ra_action_savesegmentrequest_99f27e1aa03c044f7cf72df7e4e96182.java:1699)
at com.pegarules.generated.activity.ra_action_savesegmentrequest_99f27e1aa03c044f7cf72df7e4e96182.perform(ra_action_savesegmentrequest_99f27e1aa03c044f7cf72df7e4e96182.java:452)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3510)
at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:646)
at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.runActivitiesAlt(PRThreadImpl.java:466)
at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.runActivities(HttpAPI.java:3093)
at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequestInner(EngineAPI.java:390)


Steps to Reproduce


  1. Create a class associated with the customer class.
  2. Create a Segment rule.
  3. Add a Property from the associated class.


Root Cause



In the Association rule that was created, the pages and classes were not defined.

Resolution



Define the pages and classes in the Association rule with the Page name same as the Prefix.

Published August 23, 2017 - Updated December 2, 2021

Was this useful?

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.

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