Rest service throwing nullPointer exception in Pega 8.2
Hi Team,
I am currently running Rest service via simulation mode in Pega 8.2. But while doing so I am getting nullPointer exception. But the same service is working fine in Pega 7. I am getting below stack trace. So, can anyone please suggest about what might be the reason for same.
Thanks,
Hemant
Hi Team,
I am currently running Rest service via simulation mode in Pega 8.2. But while doing so I am getting nullPointer exception. But the same service is working fine in Pega 7. I am getting below stack trace. So, can anyone please suggest about what might be the reason for same.
Thanks,
Hemant
2019-08-22 04:43:08,702 GMT*8*EXCP0001*0*0*9f4171f5d1916dbada1ee1d263202a58*NA*NA*H1L2XEYYMNFFQJ1QQK794OZLM82KGTGJZA*311799373*RBC-WM-CWM-SIP0-Work*SIP0:02.01.01*08429b4738194551e448af6eb6fea072*Y*44*H1L2XEYYMNFFQJ1QQK794OZLM82KGTGJZA*2585*WebContainer : 10*STANDARD*com.pega.pegarules.integration.engine.internal.services.ServiceAPI*uapg2aq10.saifg.rbc.com|zmj4943r.fg.rbc.com*NA*Rule-Obj-Activity:CreateCaseWS*RBC-WM-CWM-SIP0-WORK PROCESSCREATECASEREQUEST #20190626T114116.153 GMT Step: 1 Circum: 0*3****NA*NA*Data-Admin-IS-ClientSimulation*pySimulationDataPage*Data-Admin-IS-ClientSimulation*pySimulationDataPage*Java;RULE-OBJ-ACTIVITY DATA-ADMIN-IS-CLIENTSIMULATION EXECUTE #20180713T131810.681 GMT Step: 7 Circum: 0;doActivity Rule-Obj-Activity:Execute;Call Execute;RULE-OBJ-ACTIVITY DATA-ADMIN-IS-CLIENTSIMULATION RUNRULEEXECUTE #20180713T131810.696 GMT Step: 12 Circum: 0;2 additional frames in stack;*pyUseFastJSONProcessing=[removed];ServicePage=[removed];*[MSG][REST service [RBCWMCWMSIP0WebService][Services][CreateCaseWS] failed::java.lang.NullPointerException<CR> at com.pegarules.generated.activity.ra_action_processcreatecaserequest_ae4636563aaa16aafd3efaa6bd317df2.perform(ra_action_processcreatecaserequest_ae4636563aaa16aafd3efaa6bd317df2.java:89)<CR> at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2695)<CR> at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10961)<CR> at com.pegarules.generated.activity.ra_action_createcasews_3db30645bb8a1ca7bce5f3cbf68ce562.step2_circum0(ra_action_createcasews_3db30645bb8a1ca7bce5f3cbf68ce562.java:236)<CR> at com.pegarules.generated.activity.ra_action_createcasews_3db30645bb8a1ca7bce5f3cbf68ce562.perform(ra_action_createcasews_3db30645bb8a1ca7bce5f3cbf68ce562.java:95)<CR> at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2695)<CR> at com.pega.pegarules.integration.engine.internal.services.ServiceAPI.runSimulationActivity(ServiceAPI.java:2785)<CR> at com.pega.pegarules.integration.engine.internal.services.ServiceAPI.processSimulation(ServiceAPI.java:2453)<CR> at com.pega.pegarules.integration.engine.internal.services.ServiceSimulator.processServiceSimulation(ServiceSimulator.java:690)<CR> at com.pega.pegarules.integration.engine.internal.services.ServiceSimulator.invokeServiceHTTP(ServiceSimulator.java:368)<CR> at com.pega.pegarules.integration.engine.internal.services.ServiceSimulator.execute(ServiceSimulator.java:169)<CR> at com.pega.pegarules.integration.engine.internal.util.PRServiceUtils.executeServiceSimulation(PRServiceUtils.java:1930)<CR> at com.pegarules.generated.activity.ra_action_execute_1357bca89cda1fd986e6fbf36a933f2c.step7_circum0(ra_action_execute_1357bca89cda1fd986e6fbf36a933f2c.java:703)<CR> at com.pegarules.generated.activity.ra_action_execute_1357bca89cda1fd986e6fbf36a933f2c.perform(ra_action_execute_1357bca89cda1fd986e6fbf36a933f2c.java:252)<CR> at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2695)<CR> at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10961)<CR> at com.pegarules.generated.activity.ra_action_runruleexecute_39c0a4926affe799550b6ff67aebbfed.step12_circum0(ra_action_runruleexecute_39c0a4926affe799550b6ff67aebbfed.java:1269)<CR> at com.pegarules.generated.activity.ra_action_runruleexecute_39c0a4926affe799550b6ff67aebbfed.perform(ra_action_runruleexecute_39c0a4926affe799550b6ff67aebbfed.java:292)<CR> at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2695)<CR> at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:646)<CR> at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.runActivitiesAlt(PRThreadImpl.java:490)<CR> at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.runActivities(HttpAPI.java:3838)<CR> at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequestInner(EngineAPI.java:438)<CR> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<CR> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)<CR> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)<CR> at java.lang.reflect.Method.invoke(Method.java:508)<CR> at com.pega.pegarules.session.internal.PRSessionProviderImpl.performTargetActionWithLock(PRSessionProviderImpl.java:1382)<CR> at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:1114)<CR> at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:968)<CR> at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequest(EngineAPI.java:361)<CR> at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.invoke(HttpAPI.java:892)<CR> at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl._invokeEngine_privact(EngineImpl.java:331)<CR> at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:274)<CR> at com.pega.pegarules.session.internal.engineinterface.etier.ejb.EngineBean.invokeEngine(EngineBean.java:225)<CR> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<CR> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)<CR> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)<CR> at java.lang.reflect.Method.invoke(Method.java:508)<CR> at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:381)<CR> at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:422)<CR> at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingThrowable(AppServerBridgeToPega.java:224)<CR> at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingException(AppServerBridgeToPega.java:246)<CR> at com.pega.pegarules.internal.etier.ejb.EngineBeanBoot.invokeEngine(EngineBeanBoot.java:168)<CR> at com.pega.pegarules.internal.etier.interfaces.EJSLocalStatelessEngineBMT_f2439d86.invokeEngine(Unknown Source)<CR> at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngineInner(JNDIEnvironment.java:275)<CR> at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngine(JNDIEnvironment.java:220)<CR> at com.pega.pegarules.web.impl.WebStandardImpl.makeEtierRequest(WebStandardImpl.java:728)<CR> at com.pega.pegarules.web.impl.WebStandardImpl.doPost(WebStandardImpl.java:412)<CR> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<CR> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)<CR> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)<CR> at java.lang.reflect.Method.invoke(Method.java:508)<CR> at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:381)<CR> at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:422)<CR> at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingThrowable(AppServerBridgeToPega.java:224)<CR> at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethod(AppServerBridgeToPega.java:273)<CR> at com.pega.pegarules.internal.web.servlet.WebStandardBoot.doPost(WebStandardBoot.java:141)<CR> at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)<CR> at com.pega.pegarules.internal.web.servlet.WebStandardBoot.service(WebStandardBoot.java:167)<CR> at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)<CR> at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1233)<CR> at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:782)<CR> at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:481)<CR> at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)<CR> at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1114)<CR> at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:87)<CR> at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:949)<CR> at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817)<CR> at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)<CR> at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:463)<CR> at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:530)<CR> at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:316)<CR> at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)<CR> at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1820)<CR> at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)<CR> at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)<CR> at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)<CR> at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)<CR> at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)<CR> at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)<CR> at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)<CR> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1892)<CR>][STACK][java.lang.NullPointerException<CR> at com.pegarules.generated.activity.ra_action_processcreatecaserequest_ae4636563aaa16aafd3efaa6bd317df2.perform(ra_action_processcreatecaserequest_ae4636563aaa16aafd3efaa6bd317df2.java:89)<CR> at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2695)<CR> at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10961)<CR> at com.pegarules.generated.activity.ra_action_createcasews_3db30645bb8a1ca7bce5f3cbf68ce562.step2_circum0(ra_action_createcasews_3db30645bb8a1ca7bce5f3cbf68ce562.java:236)<CR> at com.pegarules.generated.activity.ra_action_createcasews_3db30645bb8a1ca7bce5f3cbf68ce562.perform(ra_action_createcasews_3db30645bb8a1ca7bce5f3cbf68ce562.java:95)<CR> at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2695)<CR> at com.pega.pegarules.integration.engine.internal.services.ServiceAPI.runSimulationActivity(ServiceAPI.java:2785)<CR> at com.pega.pegarules.integration.engine.internal.services.ServiceAPI.processSimulation(ServiceAPI.java:2453)<CR> at com.pega.pegarules.integration.engine.internal.services.ServiceSimulator.processServiceSimulation(ServiceSimulator.java:690)<CR> at com.pega.pegarules.integration.engine.internal.services.ServiceSimulator.invokeServiceHTTP(ServiceSimulator.java:368)<CR> at com.pega.pegarules.integration.engine.internal.services.ServiceSimulator.execute(ServiceSimulator.java:169)<CR> at com.pega.pegarules.integration.engine.internal.util.PRServiceUtils.executeServiceSimulation(PRServiceUtils.java:1930)<CR> at com.pegarules.generated.activity.ra_action_execute_1357bca89cda1fd986e6fbf36a933f2c.step7_circum0(ra_action_execute_1357bca89cda1fd986e6fbf36a933f2c.java:703)<CR> at com.pegarules.generated.activity.ra_action_execute_1357bca89cda1fd986e6fbf36a933f2c.perform(ra_action_execute_1357bca89cda1fd986e6fbf36a933f2c.java:252)<CR> at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2695)<CR> at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10961)<CR> at com.pegarules.generated.activity.ra_action_runruleexecute_39c0a4926affe799550b6ff67aebbfed.step12_circum0(ra_action_runruleexecute_39c0a4926affe799550b6ff67aebbfed.java:1269)<CR> at com.pegarules.generated.activity.ra_action_runruleexecute_39c0a4926affe799550b6ff67aebbfed.perform(ra_action_runruleexecute_39c0a4926affe799550b6ff67aebbfed.java:292)<CR> at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2695)<CR> at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:646)<CR> at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.runActivitiesAlt(PRThreadImpl.java:490)<CR> at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.runActivities(HttpAPI.java:3838)<CR> at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequestInner(EngineAPI.java:438)<CR> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<CR> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)<CR> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)<CR> at java.lang.reflect.Method.invoke(Method.java:508)<CR> at com.pega.pegarules.session.internal.PRSessionProviderImpl.performTargetActionWithLock(PRSessionProviderImpl.java:1382)<CR> at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:1114)<CR> at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:968)<CR> at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequest(EngineAPI.java:361)<CR> at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.invoke(HttpAPI.java:892)<CR> at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl._invokeEngine_privact(EngineImpl.java:331)<CR> at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:274)<CR> at com.pega.pegarules.session.internal.engineinterface.etier.ejb.EngineBean.invokeEngine(EngineBean.java:225)<CR> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<CR> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)<CR> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)<CR> at java.lang.reflect.Method.invoke(Method.java:508)<CR> at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:381)<CR> at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:422)<CR> at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingThrowable(AppServerBridgeToPega.java:224)<CR> at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingException(AppServerBridgeToPega.java:246)<CR> at com.pega.pegarules.internal.etier.ejb.EngineBeanBoot.invokeEngine(EngineBeanBoot.java:168)<CR> at com.pega.pegarules.internal.etier.interfaces.EJSLocalStatelessEngineBMT_f2439d86.invokeEngine(Unknown Source)<CR> at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngineInner(JNDIEnvironment.java:275)<CR> at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngine(JNDIEnvironment.java:220)<CR> at com.pega.pegarules.web.impl.WebStandardImpl.makeEtierRequest(WebStandardImpl.java:728)<CR> at com.pega.pegarules.web.impl.WebStandardImpl.doPost(WebStandardImpl.java:412)<CR> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<CR> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)<CR> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)<CR> at java.lang.reflect.Method.invoke(Method.java:508)<CR> at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:381)<CR> at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:422)<CR> at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingThrowable(AppServerBridgeToPega.java:224)<CR> at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethod(AppServerBridgeToPega.java:273)<CR> at com.pega.pegarules.internal.web.servlet.WebStandardBoot.doPost(WebStandardBoot.java:141)<CR> at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)<CR> at com.pega.pegarules.internal.web.servlet.WebStandardBoot.service(WebStandardBoot.java:167)<CR> at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)<CR> at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1233)<CR> at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:782)<CR> at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:481)<CR> at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)<CR> at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1114)<CR> at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:87)<CR> at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:949)<CR> at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817)<CR> at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)<CR> at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:463)<CR> at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:530)<CR> at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:316)<CR> at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)<CR> at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1820)<CR> at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)<CR> at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)<CR> at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)<CR> at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)<CR> at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)<CR> at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)<CR> at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)<CR> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1892)<CR>]*