Support Article
Batch activity "System-Queue-.ProcessBatch" threw: com.pega.pega
SA-10239
Summary
When running the NBAM programs, system administrator is seeing lots of NullPointerException in the pega logs.
These exceptions are very frequent as the number of programs executed every day is large.
Error Messages
2015-04-15 09:25:32,792 [ PegaRULES-Batch-2] [ STANDARD] [ PegaNBAM:06.03] (ernal.async.BatchRequestorTask) ERROR - Batch activity "System-Queue-.ProcessBatch" threw:
com.pega.pegarules.pub.PRRuntimeError: PRRuntimeError
at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:683)
at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivities(ThreadRunner.java:545)
at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.runActivities(PRThreadImpl.java:585)
at com.pega.pegarules.session.internal.async.agent.QueueProcessor.executeBatchTask(QueueProcessor.java:253)
at com.pega.pegarules.session.internal.async.agent.QueueProcessor.execute(QueueProcessor.java:316)
at com.pega.pegarules.session.internal.async.BatchRequestorTask.run(BatchRequestorTask.java:838)
at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:1081)
at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:812)
at com.pega.pegarules.session.internal.async.BatchRequestorTask.run(BatchRequestorTask.java:587)
at com.pega.jsr166backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:991)
at com.pega.jsr166backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:532)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
at com.pegarules.generated.activity.ra_action_applicationsetup_20d0ee9e7f9348066b05272952a72b00.step1_circum0(ra_action_applicationsetup_20d0ee9e7f9348066b05272952a72b00.java:512)
at com.pegarules.generated.activity.ra_action_applicationsetup_20d0ee9e7f9348066b05272952a72b00.perform(ra_action_applicationsetup_20d0ee9e7f9348066b05272952a72b00.java:75)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3098)
at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:617)
... 11 more
Steps to Reproduce
Run an NBAM program.
Check the Pega log files.
Root Cause
The root cause of this problem is a defect in Pegasystems’ code/rules. The issue was observed after the installation of hot fix HFix-6308. This hot fix introduces a prConfig variable: <env name="initialization/childrequestors/uselightweightauth" value="false" />
If the new setting is set to ‘false’ it causes the requestor to perform a full-fledged authorization. Since the execution of the program run is performed by a batch agent with child requestors created to process offers, the Operator information will not be available and hence we get the NullPointerException.
Resolution
This issue is resolved by hotfix item Hfix-21886.
Published June 12, 2015 - 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.