Question

2
Replies
206
Views
Annapurna Kongara (konga)
PEGA
Senior Solutions Engineer
Pegasystems Inc.
IN
konga Member since 2014 1 post
PEGA
Posted: July 29, 2019
Last activity: July 31, 2019
Posted: 29 Jul 2019 7:06 EDT
Last activity: 31 Jul 2019 8:41 EDT
Closed

Invalid parameter exception in batch activity

In java method we are calling queueBatchActivity to call child activity asynchronously, recently we are seeing invalid parameter exception in logs for this, please find the stack trace



7-29 05:02:12,631 [ PegaRULES-Batch-5] [ STANDARD] [ ] [ct_Composer_Sample:8] (ernal.async.BatchRequestorTask) ERROR SampleManager - Batch activity "@baseclass.SaveUnionDataRules" threw:


com.pega.pegarules.pub.clipboard.InvalidParameterException: Invalid value for Requestor parameter: HCF773D8PDFQR977Q5LECQG2UGC0VONUFA


at com.pega.pegarules.session.internal.PRSessionProviderImpl.doUnsafeAccessToUnlockedRequestor(PRSessionProviderImpl.java:610) ~[prprivate-session.jar:?]


at com.pega.pegarules.session.internal.PRSessionProviderImpl.doUnsafeAccessToUnlockedRequestor(PRSessionProviderImpl.java:2275) ~[prprivate-session.jar:?]


at com.pega.pegarules.session.internal.PRSessionProviderImpl.getOperatorIdOfRequestor(PRSessionProviderImpl.java:2577) ~[prprivate-session.jar:?]


at com.pega.pegarules.session.internal.mgmt.Executable.<init>(Executable.java:580) ~[prprivate-session.jar:?]


at com.pega.pegarules.session.internal.mgmt.Executable.getInitial(Executable.java:629) ~[prprivate-session.jar:?]


at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:585) ~[prprivate-session.jar:?]


at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivities(ThreadRunner.java:572) ~[prprivate-session.jar:?]

In java method we are calling queueBatchActivity to call child activity asynchronously, recently we are seeing invalid parameter exception in logs for this, please find the stack trace

7-29 05:02:12,631 [ PegaRULES-Batch-5] [ STANDARD] [ ] [ct_Composer_Sample:8] (ernal.async.BatchRequestorTask) ERROR SampleManager - Batch activity "@baseclass.SaveUnionDataRules" threw:

com.pega.pegarules.pub.clipboard.InvalidParameterException: Invalid value for Requestor parameter: HCF773D8PDFQR977Q5LECQG2UGC0VONUFA

at com.pega.pegarules.session.internal.PRSessionProviderImpl.doUnsafeAccessToUnlockedRequestor(PRSessionProviderImpl.java:610) ~[prprivate-session.jar:?]

at com.pega.pegarules.session.internal.PRSessionProviderImpl.doUnsafeAccessToUnlockedRequestor(PRSessionProviderImpl.java:2275) ~[prprivate-session.jar:?]

at com.pega.pegarules.session.internal.PRSessionProviderImpl.getOperatorIdOfRequestor(PRSessionProviderImpl.java:2577) ~[prprivate-session.jar:?]

at com.pega.pegarules.session.internal.mgmt.Executable.<init>(Executable.java:580) ~[prprivate-session.jar:?]

at com.pega.pegarules.session.internal.mgmt.Executable.getInitial(Executable.java:629) ~[prprivate-session.jar:?]

at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:585) ~[prprivate-session.jar:?]

at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivities(ThreadRunner.java:572) ~[prprivate-session.jar:?]

at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.runActivities(PRThreadImpl.java:508) ~[prprivate-session.jar:?]

at com.pega.pegarules.session.internal.async.agent.QueueProcessor.executeBatchTask(QueueProcessor.java:298) ~[prprivate-session.jar:?]

at com.pega.pegarules.session.internal.async.agent.QueueProcessor.execute(QueueProcessor.java:364) ~[prprivate-session.jar:?]

at com.pega.pegarules.session.internal.async.BatchRequestorTask.run(BatchRequestorTask.java:1157) ~[prprivate-session.jar:?]

at com.pega.pegarules.session.internal.PRSessionProviderImpl.performTargetActionWithLock(PRSessionProviderImpl.java:1382) ~[prprivate-session.jar:?]

at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:1125) ~[prprivate-session.jar:?]

at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:1006) ~[prprivate-session.jar:?]

at com.pega.pegarules.session.internal.async.BatchRequestorTask.run(BatchRequestorTask.java:817) ~[prprivate-session.jar:?]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_201]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_201]

we are invoking queueBatchActivity like this

ParameterPage newParamsPage = new ParameterPage();
newParamsPage.putParamValue("WorkId", PropertyInfo.TYPE_TEXT,WorkId);
newParamsPage.putParamValue("ParentRuleKey", PropertyInfo.TYPE_TEXT,tools.findPage("ContractPage").getString("pzInsKey"));

tools.getRequestor().queueBatchActivity("@baseclass","SaveUnionDataRules",newParamsPage);

any thoughts why this exceptions is coming

Enterprise Application Development Dev/Designer Studio Data Integration Java and Activities
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.