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

"Queue" activity method throws NullPointerException



Calling an activity through the "Queue" method in another activity results in a NullPointerException.

The same activity runs without issue when called through a "Call" method.

Error Messages

2017-06-07 15:25:48,285 [ PegaRULES-Batch-43] [ STANDARD] [ ] [ App:01.01.01] (ernal.async.BatchRequestorTask) ERROR user - Batch activity "ORG-DSM-Work.CallRealTimeAccInfo" threw: PRRuntimeError
at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(
at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivities(
at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.runActivities(
at com.pega.pegarules.session.internal.async.agent.QueueProcessor.executeBatchTask(
at com.pega.pegarules.session.internal.async.agent.QueueProcessor.execute(
at com.pega.pegarules.session.internal.PRSessionProviderImpl.performTargetActionWithLock(
at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(
at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(
Caused by: java.lang.NullPointerException
at com.pegarules.generated.activity.ra_action_getrealtimeacctinfo_test_1654d8b6b5dd9f7208ffa8a213738624.step6_circum0(
at com.pegarules.generated.activity.ra_action_getrealtimeacctinfo_test_1654d8b6b5dd9f7208ffa8a213738624.perform(
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(
at com.pegarules.generated.activity.ra_action_callrealtimeaccinfo_91b35ff302c60b417c8ffc1e444db0aa.step2_circum0(
at com.pegarules.generated.activity.ra_action_callrealtimeaccinfo_91b35ff302c60b417c8ffc1e444db0aa.perform(
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(
at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(
... 12 more

Steps to Reproduce

Use Queue method to fire another activity.

Root Cause

An issue in the custom application code or rules

The queued activity makes use of the Primary page, for example, there is a reference in it to, and the Help for the Queue command states:

The activity does not receive a step page or a primary page.


Perform the following local-change:

Instead of referencing Primary.Foo in the called activity, put the value of Foo into a parameter call PFoo, and pass PFoo to the queued activity.

Published August 16, 2017 - Updated October 8, 2020

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