Support Article
Deferred save fails with a null pointer exception
Summary
Deferred save fails with a null pointer exception, in the RecalculateAndSave activity during the flow processing.
Error Messages
489 [WebContainer:146][TABTHREAD0][SWLPIApp:](internal.mgmt.Executable)ERROR my.machine.test.group - Exception
java.lang.NullPointerException
at data.internal.access.Indexer$Updates.write(Indexer.java:1520)
at data.internal.access.Indexer.calulateIndexesIncrementallyForInstance(Indexer.java:457)
at data.internal.access.Indexer.updateIndexes(Indexer.java:400)
at data.internal.access.Saver.doIndexing(Saver.java:1405)
at data.internal.access.Saver.saveDeferred(Saver.java:372)
at data.internal.access.DatabaseImpl.saveDeferred(DatabaseImpl.java:5089)
at data.internal.access.DatabaseImpl.saveDeferred(DatabaseImpl.java:5073)
at generated.activity.ra_action_newdefaults_step5_circum0(ra_action_newdefaults_java:1279)
Steps to Reproduce
- Create an item with an index configured to write though the source properties are empty
- Configure a custom agent to invoke the PerformFlowAction activity on the item. Error displays in the logs
Root Cause
A defect in Pegasystems’ code or rules.
Resolution
Apply HFix-50480.
Published March 19, 2019 - 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.