Closed
Unable to Save Rules - Null Pointer Exception throwing on DirectStreamEncoderV7
We are not able to create Rule Instances..Properies/Unlock a Ruleset etc. Getting below Exception in logs. Any idea.
Show More
We are not able to create Rule Instances..Properies/Unlock a Ruleset etc. Getting below Exception in logs. Any idea.
2019-01-15 13:57:46,154 [/ Proprietary information hidden:8080-8] [ ] [_ProdHotfix:04.01.01] ( internal.mgmt.Executable) ALERT ciljbosd0158.sys.cigna.com| Proprietary information hidden C95971 - 2019-01-15 18:57:46,154 GMT*8*EXCP0001*0*0*018e74d6a51a9bcb9a9706bf594c2881*NA*NA*H4DE7D0DC78041610730FFFD65200120C*C95971*Cigna-US-Clme-Work-Claims-EPS*EPS:Dev_BasesLoaded_ProdHotfix:04.01.01*de07ffa2a95eb306774e611f09b3dd37*Y*155*H4DE7D0DC78041610730FFFD65200120C*161*http-ciljbosd0158.sys.cigna.com/ Proprietary information hidden:8080-8*STANDARD*com.pega.pegarules.session.internal.mgmt.Executable*ciljbosd0158.sys.cigna.com| Proprietary information hidden*Activity=Pega-RunRecord.pzRunRecordExecute*Rule-Obj-Activity:pzRunRecordExecute*@BASECLASS PZCLEARDATAPAGESUSEDINNEWRULEACTIONS #20151230T140141.049 GMT Step: 1 Circum: 0*****NA*NA*Cigna-FW-ClmeFW-Work*RunRecordPrimaryPage*Cigna-FW-ClmeFW-Work*RunRecordPrimaryPage*doActivity Rule-Obj-Activity:UnlockRulesetVersion;Java;RULE-OBJ-ACTIVITY RULE-OBJ-ACTIVITY PYRUNRECORDEXECUTE #20141219T065204.980 GMT Step: 1 Circum: 0;doActivity Rule-Obj-Activity:pyRunRecordExecute;Call pyRunRecordExecute;3 additional frames in stack;*Ruleset=CignaCXT;Version=04-02-01;*[MSG][Exception][STACK][java.lang.NullPointerException<CR> at com.pega.pegarules.data.internal.clipboard.DirectStreamEncoderV7.releaseEncoder(DirectStreamEncoderV7.java:288)<CR> at com.pega.pegarules.data.internal.clipboard.DirectStreamEncoderV7.encode(DirectStreamEncoderV7.java:515)<CR> at com.pega.pegarules.data.internal.clipboard.StorageStreamCommonImpl.encode(StorageStreamCommonImpl.java:853)<CR> at com.pega.pegarules.data.internal.clipboard.ClipboardPageImpl.getStreamForm(ClipboardPageImpl.java:3873)<CR> at com.pega.pegarules.data.internal.access.PageDatabaseMapperImpl.getStreamFormOfPage(PageDatabaseMapperImpl.java:1458)<CR> at com.pega.pegarules.data.internal.access.DatabaseImpl.preprocessInstancesBeforeCriticalCommitSection(DatabaseImpl.java:3235)<CR> at com.pega.pegarules.data.internal.access.DatabaseImpl.attemptToProcessUpdates(DatabaseImpl.java:2746)<CR> at com.pega.pegarules.data.internal.access.DatabaseImpl.processUpdates(DatabaseImpl.java:2415)<CR> at com.pega.pegarules.data.internal.access.Saver.save(Saver.java:679)<CR> at com.pega.pegarules.data.internal.access.Saver.save(Saver.java:1908)<CR> at com.pega.pegarules.data.internal.access.DatabaseImpl.save(DatabaseImpl.java:4056)<CR> at com.pegarules.generated.activity.sh_action_unlockrulesetversion_3d5f8684237791be682358ae4f9af3f1.step4_circum0(sh_action_unlockrulesetversion_3d5f8684237791be682358ae4f9af3f1.java:352)<CR> at com.pegarules.generated.activity.sh_action_unlockrulesetversion_3d5f8684237791be682358ae4f9af3f1.perform(sh_action_unlockrulesetversion_3d5f8684237791be682358ae4f9af3f1.java:137)<CR> at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3528)<CR> at com.pega.pegarules.session.internal.mgmt.Executable.doAction(Executable.java:3261)<CR> at com.pegarules.generated.activity.ra_action_pyrunrecordexecute_0f739eeb61a9046be9a6d286a73f151a.step1_circum0(ra_action_pyrunrecordexecute_0f739eeb61a9046be9a6d286a73f151a.java:175)<CR> at com.pegarules.generated.activity.ra_action_pyrunrecordexecute_0f739eeb61a9046be9a6d286a73f151a.perform(ra_action_pyrunrecordexecute_0f739eeb61a9046be9a6d286a73f151a.java:69)<CR> at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3528)<CR> at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10675)<CR> at com.pegarules.generated.activity.ra_action_pzrunrecordexecute_f73998920c112079b42c8cca0a4e44ad.step11_circum0(ra_action_pzrunrecordexecute_f73998920c112079b42c8cca0a4e44ad.java:1009)<CR> at com.pegarules.generated.activity.ra_action_pzrunrecordexecute_f73998920c112079b42c8cca0a4e44ad.perform(ra_action_pzrunrecordexecute_f73998920c112079b42c8cca0a4e44ad.java:245)<CR> at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3528)<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:467)<CR> at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.runActivities(HttpAPI.java:3166)<CR> at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequestInner(EngineAPI.java:390)<CR> at sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)<CR> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<CR> at java.lang.reflect.Method.invoke(Method.java:498)<CR> at com.pega.pegarules.session.internal.PRSessionProviderImpl.performTargetActionWithLock(PRSessionProviderImpl.java:1301)<CR> at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:1038)<CR> at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:893)<CR> at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequest(EngineAPI.java:331)<CR> at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.invoke(HttpAPI.java:825)<CR> at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl._invokeEngine_privact(EngineImpl.java:327)<CR> at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:270)<CR> at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:247)<CR> at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngineInner(JNDIEnvironment.java:278)<CR> at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngine(JNDIEnvironment.java:223)<CR> at com.pega.pegarules.web.impl.WebStandardImpl.makeEtierRequest(WebStandardImpl.java:594)<CR> at com.pega.pegarules.web.impl.WebStandardImpl.doPost(WebStandardImpl.java:390)<CR> at sun.reflect.GeneratedMethodAccessor63.invoke(Unknown Source)<CR> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<CR> at java.lang.reflect.Method.invoke(Method.java:498)<CR> at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:370)<CR> at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:411)<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:121)<CR> at com.pega.pegarules.internal.web.servlet.WebStandardBoot.doGet(WebStandardBoot.java:92)<CR> at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)<CR> at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)<CR> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)<CR> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)<CR> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231)<CR> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)<CR> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:420)<CR> at org.jboss.as.web.session.ClusteredSessionValve.handleRequest(ClusteredSessionValve.java:134)<CR> at org.jboss.as.web.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:99)<CR> at org.jboss.as.web.session.JvmRouteValve.invoke(JvmRouteValve.java:92)<CR> at org.jboss.as.web.session.LockingValve.invoke(LockingValve.java:64)<CR> at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)<CR> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150)<CR> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)<CR> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)<CR> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344)<CR> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854)<CR> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)<CR> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926)<CR> at java.lang.Thread.run(Thread.java:748)<CR>]*
Show Less
Hello,
What product/version are you running? I see that this is coming out of a call to DatabaseImpl.save() which comes from step 4 of unlockrulesetversion. I jumped on a system I have laying around (Pega CS for Insurance 7.3.1) and don't see a save at step 4. But the activity unlockrulesetversion only exists in the PegaInsure ruleset in my system, so I don't think this is a platform rule at all, so my reference system may not be at all relevant if you are seeing this from a different application. Looking at the rest of the stack, the NPE is in the stream encoder, which I'm guessing is what generates the pzpvstream (i.e. the blob). Is this object that you are saving one that has a blob column? If not, that could perhaps account for it? I'd take a hard look at what you are saving. If you do a similar obj-save from a custom activity once that object is on the clipboard, do you see the same error? Something different? What about for other objects? Is this a work object, some data, or something else entirely?
Thanks,
Mike