Question
National Australia Bank
IN
Last activity: 1 May 2023 4:29 EDT
java.lang.NullPointerException triggered by ApplicationSetup OOTB activity
Hi, we have observed in our log files, that lot of EXCP0001 alerts are being logged .
On further analysis we have found out that a Null pointer exception is occurring from ApplicationSetup OOTB activity .
Can anyone help me out when this "ApplicationSetup" rule will be triggered and what could be the reason behind Null pointer exception.
Thank you!!
PFB sample log
Hi, we have observed in our log files, that lot of EXCP0001 alerts are being logged .
On further analysis we have found out that a Null pointer exception is occurring from ApplicationSetup OOTB activity .
Can anyone help me out when this "ApplicationSetup" rule will be triggered and what could be the reason behind Null pointer exception.
Thank you!!
PFB sample log
2023-04-26 08:34:29,620 GMT*8*EXCP0001*0*0*329b50b0447d90526ba831a9a7985e07*NA*NA*BG2ZFN58WZFVHSWYTB8AO6NCGD9L0FSUFA**NAB-UWF-Work*NUWFAPP:03.01.01*345d41a035f33ce6991cedd580ce24fb*Y*1*BG2ZFN58WZFVHSWYTB8AO6NCGD9L0FSUFA*6565*PegaRULES-Batch-94*STANDARD*com.pega.pegarules.session.internal.mgmt.Executable*NA*PegaSocial-Message.pyPublishUpdates*Rule-Obj-Activity:ApplicationSetup*CODE-SECURITY APPLICATIONSETUP #20190618T110028.910 GMT Step: 2 Circum: 0*NA****NA*NA*NA*NA*NA*NA*doActivity Rule-Obj-Activity:ApplicationSetup;initial Executable;0 additional frames in stack;*NA*[MSG][Exception][STACK][java.lang.NullPointerException<CR> at com.pega.pegarules.session.internal.authorization.SessionAuthorization.setShrinkJavaScriptEnabled(SessionAuthorization.java:1142)<CR> at com.pega.pegarules.session.internal.authorization.Authorization.setShrinkJavaScriptEnabled(Authorization.java:1680)<CR> at com.pega.pegarules.exec.internal.PRExecThreadStateImpl.setShrinkJavaScriptEnabled(PRExecThreadStateImpl.java:641)<CR> at com.pega.pegarules.exec.internal.PRExecThreadStateImpl.setShrinkJavaScriptEnabled(PRExecThreadStateImpl.java:630)<CR> at com.pega.pegarules.session.internal.mgmt.PRThreadBase.setShrinkJavaScriptEnabled(PRThreadBase.java:802)<CR> at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.setShrinkJavaScriptEnabled(PRThreadImpl.java:1845)<CR> at com.pega.pegarules.exec.internal.basic.staticcontent.StaticContentUtilsImpl.setShrinkJavaScriptEnabled(StaticContentUtilsImpl.java:1971)<CR> at com.pegarules.generated.activity.ra_action_applicationsetup_728c6cf2e3b3b3389581b32afc6ce7ce.step2_circum0(ra_action_applicationsetup_728c6cf2e3b3b3389581b32afc6ce7ce.java:467)<CR> at com.pegarules.generated.activity.ra_action_applicationsetup_728c6cf2e3b3b3389581b32afc6ce7ce.perform(ra_action_applicationsetup_728c6cf2e3b3b3389581b32afc6ce7ce.java:93)<CR> at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2814)<CR> at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:653)<CR> at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivities(ThreadRunner.java:580)<CR> at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.runActivities(PRThreadImpl.java:511)<CR> at com.pega.pegarules.session.internal.async.agent.QueueProcessor.executeBatchTask(QueueProcessor.java:304)<CR> at com.pega.pegarules.session.internal.async.agent.QueueProcessor.execute(QueueProcessor.java:360)<CR> at com.pega.pegarules.session.internal.async.BatchRequestorTask.run(BatchRequestorTask.java:1158)<CR> at com.pega.pegarules.session.internal.PRSessionProviderImpl.performTargetActionWithLock(PRSessionProviderImpl.java:1397)<CR> at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:1140)<CR> at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:1021)<CR> at com.pega.pegarules.session.internal.async.BatchRequestorTask.run(BatchRequestorTask.java:818)<CR> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)<CR> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)<CR> at java.lang.Thread.run(Thread.java:750)<CR>]*
@AkhilReddyP16751743Looking at the history tab of the rule, there are two scenario's:
So if you trace the ApplicationSetup activity (possibly a remote trace when switching applications, not sure how the trace handles this from the same requestor), I would start with verifying if and which one of these two log the NullPointerExceptione error. The stack trace indicates an issue with the java code being executed, so you could perhaps add some log statements to the java step.
If you have some sort of Sandbox application available or are willing to test with a Pega Platform access group, do see if the same errors are logged when replaying the scenario's. That will make sure that it's an issue with the local system / configuration instead of a platform issue.