Question
Accenture
GB
Last activity: 28 Sep 2021 2:17 EDT
pxExecuteAnActivity is sometimes throwing null pointer exception
Hi,
Greetings. I am using RUF pxExecuteAnActivity(EventPage,"ActivityName") where EventPage is a parameter of type Page, but sometimes i get the below error
LegacyModelAspectInvokableRuleContainer.invoke-Exception Encountered a :java.lang.NullPointerException]
I have verified that the EventPage Parameter has a value when the above exception happened.
Any ideas on what's causing this?
Regards,
Bharat
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
AU
Is there a stack trace in the logs that highlights what call stack is when the Null Pointer Exception occurs? For example, whilst the parameter may have a value, if that value doesn't refer to an existing page on the clipboard, then that could be one reason. However the stack trace will be more informative. It will highlight at least whether it started to run the activity or whether the problem occurs before then.
Also, the Tracer can help narrow down in between which steps the issue is occurring.
Updated: 19 Jan 2021 17:43 EST
Accenture
GB
@BraamCLSA - Hi Bram, Thank you. I could not get a tracer output as this happens at random times however i have the stack trace from logs, i have also been printing the pagename in logs before this RUF is being called.
Attached document has screen shots of the DT
Exception in Logs
2021-01-19 16:01:07,445 [tp-apr-8080-exec-223] [ STANDARD] [ ] [ LloydsDA:01.01.01] (elAspectInvokableRuleContainer) ERROR lloyds-chorus-dt4.pegacloud.net|ip-161-32-39-120.eu-west-2.compute.internal Proprietary information hidden - Exception encountered while executing a data transform
java.lang.NullPointerException: null
at com.pegarules.generated.pxExecuteAnActivity_080101_5969683509118130077.pxExecuteAnActivity08_01_01(pxExecuteAnActivity_080101_5969683509118130077.java:115) ~[?:?]
at com.pegarules.generated.pxExecuteAnActivity_080101_5969683509118130077.invoke(pxExecuteAnActivity_080101_5969683509118130077.java:78) ~[?:?]
at com.pega.pegarules.generation.internal.library.LibraryRuntime.resolveAndinvokeFunctionViaReflection(LibraryRuntime.java:232) ~[prprivate-generation.jar:?]
@BraamCLSA - Hi Bram, Thank you. I could not get a tracer output as this happens at random times however i have the stack trace from logs, i have also been printing the pagename in logs before this RUF is being called.
Attached document has screen shots of the DT
Exception in Logs
2021-01-19 16:01:07,445 [tp-apr-8080-exec-223] [ STANDARD] [ ] [ LloydsDA:01.01.01] (elAspectInvokableRuleContainer) ERROR lloyds-chorus-dt4.pegacloud.net|ip-161-32-39-120.eu-west-2.compute.internal Proprietary information hidden - Exception encountered while executing a data transform
java.lang.NullPointerException: null
at com.pegarules.generated.pxExecuteAnActivity_080101_5969683509118130077.pxExecuteAnActivity08_01_01(pxExecuteAnActivity_080101_5969683509118130077.java:115) ~[?:?]
at com.pegarules.generated.pxExecuteAnActivity_080101_5969683509118130077.invoke(pxExecuteAnActivity_080101_5969683509118130077.java:78) ~[?:?]
at com.pega.pegarules.generation.internal.library.LibraryRuntime.resolveAndinvokeFunctionViaReflection(LibraryRuntime.java:232) ~[prprivate-generation.jar:?]
at com.pega.pegarules.generation.internal.library.LibraryRuntime.invokeLibraryRuntime(LibraryRuntime.java:123) ~[prprivate-generation.jar:?]
at com.pega.pegarules.generation.internal.library.LibraryFunctionUtilityImpl.resolveMethodCall(LibraryFunctionUtilityImpl.java:2932) ~[prprivate-generation.jar:?]
at com.pega.pegarules.session.internal.mgmt.Executable.resolveMethodCall(Executable.java:11936) ~[prprivate-session.jar:?]
at com.pegarules.generated.model.ra_model_setmprproperties_b7a3ccafa3560092c1cbdbb49ed9dd31.forEach_1(ra_model_setmprproperties_b7a3ccafa3560092c1cbdbb49ed9dd31.java:576) ~[?:?]
at com.pegarules.generated.model.ra_model_setmprproperties_b7a3ccafa3560092c1cbdbb49ed9dd31.perform(ra_model_setmprproperties_b7a3ccafa3560092c1cbdbb49ed9dd31.java:132) ~[?:?]
at com.pega.platform.executionengine.vtable.containers.internal.LegacyModelAspectInvokableRuleContainer.invoke(LegacyModelAspectInvokableRuleContainer.java:67) ~[execution-engine.jar:?]
at com.pega.platform.executionengine.vtable.internal.RuleDispatcherImpl.invokeModel(RuleDispatcherImpl.java:165) ~[execution-engine.jar:?]
at com.pega.pegarules.session.internal.mgmt.Executable.doDataTransform(Executable.java:4569) ~[prprivate-session.jar:?]
at com.pega.pegarules.session.internal.mgmt.Executable.applyModel(Executable.java:4556) ~[prprivate-session.jar:?]
at com.pegarules.generated.activity.ra_action_loadmprdata_499cc8db34d67334416d5549a0de09eb.step8_circum0(ra_action_loadmprdata_499cc8db34d67334416d5549a0de09eb.java:685) ~[?:?]
at com.pegarules.generated.activity.ra_action_loadmprdata_499cc8db34d67334416d5549a0de09eb.perform(ra_action_loadmprdata_499cc8db34d67334416d5549a0de09eb.java:220) ~[?:?]
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2814) ~[prprivate-session.jar:?]
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:11377) ~[prprivate-session.jar:?]
at com.pegarules.generated.activity.sh_action_loaddca_65ea78f3c6f96a073d30ba30ffb1be8e.step3_1_circum0(sh_action_loaddca_65ea78f3c6f96a073d30ba30ffb1be8e.java:527) ~[?:?]
at com.pegarules.generated.activity.sh_action_loaddca_65ea78f3c6f96a073d30ba30ffb1be8e.step3_0_circum0(sh_action_loaddca_65ea78f3c6f96a073d30ba30ffb1be8e.java:485) ~[?:?]
at com.pegarules.generated.activity.sh_action_loaddca_65ea78f3c6f96a073d30ba30ffb1be8e.perform(sh_action_loaddca_65ea78f3c6f96a073d30ba30ffb1be8e.java:118) ~[?:?]
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2814) ~[prprivate-session.jar:?]
at com.pega.pegarules.session.internal.mgmt.Executable.doAction(Executable.java:2202) ~[prprivate-session.jar:?]
at com.pega.pegarules.session.internal.mgmt.Executable.doAction(Executable.java:2185) ~[prprivate-session.jar:?]
at com.pegarules.generated.activity.ra_action_pyrunrecordexecute_025cb29e81d295d991d37ad8d1e40455.step2_circum0(ra_action_pyrunrecordexecute_025cb29e81d295d991d37ad8d1e40455.java:280) ~[?:?]
at com.pegarules.generated.activity.ra_action_pyrunrecordexecute_025cb29e81d295d991d37ad8d1e40455.perform(ra_action_pyrunrecordexecute_025cb29e81d295d991d37ad8d1e40455.java:94) ~[?:?]
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2814) ~[prprivate-session.jar:?]
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:11377) ~[prprivate-session.jar:?]
at com.pegarules.generated.activity.ra_action_pzrunrecordexecute_46ae077cc50244070fb53e2948cb85e1.step11_circum0(ra_action_pzrunrecordexecute_46ae077cc50244070fb53e2948cb85e1.java:1040) ~[?:?]
at com.pegarules.generated.activity.ra_action_pzrunrecordexecute_46ae077cc50244070fb53e2948cb85e1.perform(ra_action_pzrunrecordexecute_46ae077cc50244070fb53e2948cb85e1.java:252) ~[?:?]
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2814) ~[prprivate-session.jar:?]
at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:653) ~[prprivate-session.jar:?]
at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.runActivitiesAlt(PRThreadImpl.java:520) ~[prprivate-session.jar:?]
at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.runActivities(HttpAPI.java:4109) ~[prprivate-session.jar:?]
at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequestInner(EngineAPI.java:445) ~[prenginext.jar:?]
at sun.reflect.GeneratedMethodAccessor135.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_171]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_171]
at com.pega.pegarules.session.internal.PRSessionProviderImpl.performTargetActionWithLock(PRSessionProviderImpl.java:1408) ~[prprivate-session.jar:?]
at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:1140) ~[prprivate-session.jar:?]
at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:994) ~[prprivate-session.jar:?]
at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequest(EngineAPI.java:368) ~[prenginext.jar:?]
at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.invoke(HttpAPI.java:920) ~[prprivate-session.jar:?]
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl._invokeEngine_privact(EngineImpl.java:338) ~[prprivate-session.jar:?]
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:282) ~[prprivate-session.jar:?]
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:259) ~[prprivate-session.jar:?]
at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngineInner(JNDIEnvironment.java:281) ~[prpublic.jar:?]
at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngine(JNDIEnvironment.java:226) ~[prpublic.jar:?]
at com.pega.pegarules.web.impl.WebStandardImpl.makeEtierRequest(WebStandardImpl.java:767) ~[prwebj2ee.jar:?]
at com.pega.pegarules.web.impl.WebStandardImpl.doPost(WebStandardImpl.java:423) ~[prwebj2ee.jar:?]
at sun.reflect.GeneratedMethodAccessor122.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_171]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_171]
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:385) ~[prbootstrap-8.4.2-561.jar:8.4.2-561]
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:427) ~[prbootstrap-8.4.2-561.jar:8.4.2-561]
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingThrowable(AppServerBridgeToPega.java:225) ~[prbootstrap-api-8.4.2-561.jar:8.4.2-561]
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethod(AppServerBridgeToPega.java:274) ~[prbootstrap-api-8.4.2-561.jar:8.4.2-561]
at com.pega.pegarules.internal.web.servlet.WebStandardBoot.doPost(WebStandardBoot.java:146) ~[prbootstrap-api-8.4.2-561.jar:8.4.2-561]
at com.pega.pegarules.internal.web.servlet.WebStandardBoot.doGet(WebStandardBoot.java:107) ~[prbootstrap-api-8.4.2-561.jar:8.4.2-561]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:624) ~[servlet-api.jar:?]
at com.pega.pegarules.internal.web.servlet.WebStandardBoot.service(WebStandardBoot.java:172) ~[prbootstrap-api-8.4.2-561.jar:8.4.2-561]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) ~[servlet-api.jar:?]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) ~[catalina.jar:7.0.88]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) ~[catalina.jar:7.0.88]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) ~[tomcat7-websocket.jar:7.0.88]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) ~[catalina.jar:7.0.88]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) ~[catalina.jar:7.0.88]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219) ~[catalina.jar:7.0.88]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110) ~[catalina.jar:7.0.88]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:498) ~[catalina.jar:7.0.88]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) ~[catalina.jar:7.0.88]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) ~[catalina.jar:7.0.88]
at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:683) ~[catalina.jar:7.0.88]
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:1025) ~[catalina.jar:7.0.88]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) ~[catalina.jar:7.0.88]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445) ~[catalina.jar:7.0.88]
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1139) ~[tomcat-coyote.jar:7.0.88]
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637) ~[tomcat-coyote.jar:7.0.88]
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2555) ~[tomcat-coyote.jar:7.0.88]
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2544) ~[tomcat-coyote.jar:7.0.88]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_171]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_171]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-coyote.jar:7.0.88]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_171]
2021-01-19 16:01:07,447 [tp-apr-8080-exec-223] [ STANDARD] [ ] [ LloydsDA:01.01.01] (dMPRData.Lloyds_DA_Data.Action) INFO lloyds-chorus-dt4.pegacloud.net|ip-161-32-39-120.eu-west-2.compute.internal Proprietary information hidden - Exception loading MPR Data into MPR Reference Tables*****
java.lang.Throwable: null
at com.pegarules.generated.activity.ra_action_loadmprdata_499cc8db34d67334416d5549a0de09eb.step10_circum0(ra_action_loadmprdata_499cc8db34d67334416d5549a0de09eb.java:749) ~[?:?]
at com.pegarules.generated.activity.ra_action_loadmprdata_499cc8db34d67334416d5549a0de09eb.perform(ra_action_loadmprdata_499cc8db34d67334416d5549a0de09eb.java:240) ~[?:?]
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2814) ~[prprivate-session.jar:?]
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:11377) ~[prprivate-session.jar:?]
at com.pegarules.generated.activity.sh_action_loaddca_65ea78f3c6f96a073d30ba30ffb1be8e.step3_1_circum0(sh_action_loaddca_65ea78f3c6f96a073d30ba30ffb1be8e.java:527) ~[?:?]
at com.pegarules.generated.activity.sh_action_loaddca_65ea78f3c6f96a073d30ba30ffb1be8e.step3_0_circum0(sh_action_loaddca_65ea78f3c6f96a073d30ba30ffb1be8e.java:485) ~[?:?]
at com.pegarules.generated.activity.sh_action_loaddca_65ea78f3c6f96a073d30ba30ffb1be8e.perform(sh_action_loaddca_65ea78f3c6f96a073d30ba30ffb1be8e.java:118) ~[?:?]
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2814) ~[prprivate-session.jar:?]
at com.pega.pegarules.session.internal.mgmt.Executable.doAction(Executable.java:2202) ~[prprivate-session.jar:?]
at com.pega.pegarules.session.internal.mgmt.Executable.doAction(Executable.java:2185) ~[prprivate-session.jar:?]
at com.pegarules.generated.activity.ra_action_pyrunrecordexecute_025cb29e81d295d991d37ad8d1e40455.step2_circum0(ra_action_pyrunrecordexecute_025cb29e81d295d991d37ad8d1e40455.java:280) ~[?:?]
at com.pegarules.generated.activity.ra_action_pyrunrecordexecute_025cb29e81d295d991d37ad8d1e40455.perform(ra_action_pyrunrecordexecute_025cb29e81d295d991d37ad8d1e40455.java:94) ~[?:?]
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2814) ~[prprivate-session.jar:?]
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:11377) ~[prprivate-session.jar:?]
at com.pegarules.generated.activity.ra_action_pzrunrecordexecute_46ae077cc50244070fb53e2948cb85e1.step11_circum0(ra_action_pzrunrecordexecute_46ae077cc50244070fb53e2948cb85e1.java:1040) ~[?:?]
at com.pegarules.generated.activity.ra_action_pzrunrecordexecute_46ae077cc50244070fb53e2948cb85e1.perform(ra_action_pzrunrecordexecute_46ae077cc50244070fb53e2948cb85e1.java:252) ~[?:?]
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2814) ~[prprivate-session.jar:?]
at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:653) ~[prprivate-session.jar:?]
at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.runActivitiesAlt(PRThreadImpl.java:520) ~[prprivate-session.jar:?]
at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.runActivities(HttpAPI.java:4109) ~[prprivate-session.jar:?]
at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequestInner(EngineAPI.java:445) ~[prenginext.jar:?]
at sun.reflect.GeneratedMethodAccessor135.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_171]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_171]
at com.pega.pegarules.session.internal.PRSessionProviderImpl.performTargetActionWithLock(PRSessionProviderImpl.java:1408) ~[prprivate-session.jar:?]
at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:1140) ~[prprivate-session.jar:?]
at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:994) ~[prprivate-session.jar:?]
at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequest(EngineAPI.java:368) ~[prenginext.jar:?]
at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.invoke(HttpAPI.java:920) ~[prprivate-session.jar:?]
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl._invokeEngine_privact(EngineImpl.java:338) ~[prprivate-session.jar:?]
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:282) ~[prprivate-session.jar:?]
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:259) ~[prprivate-session.jar:?]
at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngineInner(JNDIEnvironment.java:281) ~[prpublic.jar:?]
at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngine(JNDIEnvironment.java:226) ~[prpublic.jar:?]
at com.pega.pegarules.web.impl.WebStandardImpl.makeEtierRequest(WebStandardImpl.java:767) ~[prwebj2ee.jar:?]
at com.pega.pegarules.web.impl.WebStandardImpl.doPost(WebStandardImpl.java:423) ~[prwebj2ee.jar:?]
at sun.reflect.GeneratedMethodAccessor122.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_171]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_171]
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:385) ~[prbootstrap-8.4.2-561.jar:8.4.2-561]
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:427) ~[prbootstrap-8.4.2-561.jar:8.4.2-561]
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingThrowable(AppServerBridgeToPega.java:225) ~[prbootstrap-api-8.4.2-561.jar:8.4.2-561]
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethod(AppServerBridgeToPega.java:274) ~[prbootstrap-api-8.4.2-561.jar:8.4.2-561]
at com.pega.pegarules.internal.web.servlet.WebStandardBoot.doPost(WebStandardBoot.java:146) ~[prbootstrap-api-8.4.2-561.jar:8.4.2-561]
at com.pega.pegarules.internal.web.servlet.WebStandardBoot.doGet(WebStandardBoot.java:107) ~[prbootstrap-api-8.4.2-561.jar:8.4.2-561]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:624) ~[servlet-api.jar:?]
at com.pega.pegarules.internal.web.servlet.WebStandardBoot.service(WebStandardBoot.java:172) ~[prbootstrap-api-8.4.2-561.jar:8.4.2-561]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) ~[servlet-api.jar:?]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) ~[catalina.jar:7.0.88]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) ~[catalina.jar:7.0.88]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) ~[tomcat7-websocket.jar:7.0.88]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) ~[catalina.jar:7.0.88]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) ~[catalina.jar:7.0.88]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219) ~[catalina.jar:7.0.88]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110) ~[catalina.jar:7.0.88]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:498) ~[catalina.jar:7.0.88]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) ~[catalina.jar:7.0.88]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) ~[catalina.jar:7.0.88]
at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:683) ~[catalina.jar:7.0.88]
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:1025) ~[catalina.jar:7.0.88]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) ~[catalina.jar:7.0.88]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445) ~[catalina.jar:7.0.88]
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1139) ~[tomcat-coyote.jar:7.0.88]
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637) ~[tomcat-coyote.jar:7.0.88]
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2555) ~[tomcat-coyote.jar:7.0.88]
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2544) ~[tomcat-coyote.jar:7.0.88]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_171]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_171]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-coyote.jar:7.0.88]
Pegasystems Inc.
AU
Thanks for the information.
Firstly, given the name of the activity you are trying to invoke, I encourage you to look into Savable Data Pages. This is the newest technique available in Pega for enqueuing save operations to the system of record, and might avoid the need for you to call an Activity from a Data Transform like you find yourself having some trouble with here.
That said, let's inspect how you've configured your pxExecuteAnActivity call:
@pxExecuteAnActivity(EventPage, "InvokeObjSave")
Some of the steps in the Data Transform - like "Update Page" which expects a Page reference - know that your reference to EventPage actually means the EventPage "Page Name" parameter. Parameters to Function calls may not benefit from this, and you might need to be more explicit that you intend to pass the value of a parameter here, rather than the literal EventPage.
So, try using param.EventPage - instead of just EventPage - given EventPage is actually a parameter to the Data Transform:
Thanks for the information.
Firstly, given the name of the activity you are trying to invoke, I encourage you to look into Savable Data Pages. This is the newest technique available in Pega for enqueuing save operations to the system of record, and might avoid the need for you to call an Activity from a Data Transform like you find yourself having some trouble with here.
That said, let's inspect how you've configured your pxExecuteAnActivity call:
@pxExecuteAnActivity(EventPage, "InvokeObjSave")
Some of the steps in the Data Transform - like "Update Page" which expects a Page reference - know that your reference to EventPage actually means the EventPage "Page Name" parameter. Parameters to Function calls may not benefit from this, and you might need to be more explicit that you intend to pass the value of a parameter here, rather than the literal EventPage.
So, try using param.EventPage - instead of just EventPage - given EventPage is actually a parameter to the Data Transform:
@pxExecuteAnActivity(param.EventPage, "InvokeObjSave")
TIP: Use Actions > View Java in the Data Transform ruleform, and search the resulting Java for pxExecuteAnActivity to get a sense of how Pega is turning your configuration of that step into Java, and what the likely runtime behavior will be. At the moment, it is probably resolving your first parameter to pxExecuteAnActivity as:
tools.findPage("EventPage")
... which searches for a page named EventPage on the clipboard. Such a page likely doesn't exist, causing findPage() to return null, in turn causing the following line in pxExecuteAnActivity to throw the NullPointerException as primaryPage (the reference to the first parameter) is null:
keys.putString("pyClassName", primaryPage.getClassName());
You would rather View Java showed that the first parameter to pxExecuteAnActivity looked something like:
tools.findPage(tools.getParamValue("EventPage"))
... which first gets the value of the EventPage parameter, and searches the clipboard for a page matching the parameter value.
Please share back your findings as you won't be the first person to have had this issue, nor the last.
-
Siva kumar Samudrala Vikash Kumar Jha
Aaseya IT Services Pvt Ltd
AE
@KOMARINA , I also Faced same issue. But, After initializing Page Name ( in your case its EventPage) its got resolved.
-
surendra donthu
Wipro
AU
@SivakumarS3537 Thanks Siva. I too faced same issue today and its resolved after page initialization.