Support Article
NullPointerException - updateopencoveredtasks
SA-30566
Summary
User gets NullPointerException error when the declare trigger UpdateCoveredTasks is triggered which calls the activity updateopencoveredtasks .
There is an article on this which suggests to fix this issue by applying the HFix-22196.
The article is https://pdn.pega.com/support-articles/getting-nullpointerexception-updateopencoveredtasks.
The fix is suggested for the version Pega 7.1.6 and user needs advise whether the same Hotfix is applicable for the version Pega 7.1.5 as well.
Error Messages
12 hits for " - Exception caught while evaluating when java.lang.NullPointerException"
2016-09-19 08:18:30,202 [.PRPCWorkManager : 9] [ STANDARD] [Application] (overedTasks.Work_Cover_.Action) ERROR Operator-Id- Exception caught while evaluating when
java.lang.NullPointerException
at com.pegarules.generated.hasMessages_071001_g2iWXetIUVd_Afo_MBZwOw.hasMessages07_10_01(hasMessages_071001_g2iWXetIUVd_Afo_MBZwOw.java:110)
at com.pegarules.generated.hasMessages_071001_g2iWXetIUVd_Afo_MBZwOw.invoke(hasMessages_071001_g2iWXetIUVd_Afo_MBZwOw.java:84)
at com.pega.pegarules.generation.internal.library.LibraryRuntime.resolveAndinvokeFunctionViaReflection(LibraryRuntime.java:133)
at com.pega.pegarules.generation.internal.library.LibraryRuntime.invokeLibraryRuntime(LibraryRuntime.java:110)
at com.pega.pegarules.session.internal.mgmt.Executable.invokeLibraryRuntime(Executable.java:8545)
at com.pega.pegarules.priv.generator.LibrarySupport.resolveAndInvokeFunctionViaReflection(LibrarySupport.java:181)
at com.pegarules.generated.pega_rules_default.hasMessages(pega_rules_default.java:2147)
at com.pegarules.generated.activity.ra_action_updateopencoveredtasks_33c1b1bfe0ab243c2a37babced6a9934.step4_circum0(ra_action_updateopencoveredtasks_33c1b1bfe0ab243c2a37babced6a9934.java:736)
at com.pegarules.generated.activity.ra_action_updateopencoveredtasks_33c1b1bfe0ab243c2a37babced6a9934.perform(ra_action_updateopencoveredtasks_33c1b1bfe0ab243c2a37babced6a9934.java:134)
Steps to Reproduce
Found in log file and has been given below. This has been happening multiple times.
Root Cause
This is a known defect that was fixed with HFix-22196 in a later version.
Resolution
User was encouraged to upgrade if they wished to use the hotfix, or apply a local change.
User applied the following local change :
add "@(Pega-RULES:Default).PageExists(TempWorkPage, tools) && @hasMessages(TempWorkPage)" in transition step 4 of the activity.
Published November 24, 2016 - 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.