Support Article
Null exceptions in PRPC service, tends to server crash
SA-15768
Summary
Below Null pointer exceptions in the logs is leading to server crash.
Uncaught exception created in one of the service methods of the servlet /diagnostic/status.jsp in application K2_prpc_j2ee14_ws. Exception created : java.lang.NullPointerException
Error Messages
[10/5/15 8:07:52:652 CDT] 0000004e ServletWrappe E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught exception created in one of the service methods of the servlet /diagnostic/status.jsp in application K2_prpc_j2ee14_ws. Exception created : java.lang.NullPointerException
at com.ibm._jsp._status._jspService(_status.java:113)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1694)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:970)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:508)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:181)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:262)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:374)
at com.pega.pegarules.web.impl.WebStandardImpl.sendOutput(WebStandardImpl.java:506)
at com.pega.pegarules.web.impl.WebStandardImpl.doPost(WebStandardImpl.java:280)
at sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:349)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:390)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:439)
at com.pega.pegarules.internal.web.servlet.WebStandardBoot.doPost(WebStandardBoot.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1694)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:970)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:508)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:181)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:878)
Steps to Reproduce
Not Applicable.
Root Cause
A defect in Pegasystems’ code or rules
In status.jsp, following code is causing the Null Pointer exception:
boolean bIsNoContent = ((Boolean)request.getAttribute(StatusConstants.ERROR_INFORMATION_NO_OUTPUT)).booleanValue();
Resolution
Perform the following local-change step.
Replace the below code:
boolean bIsNoContent = ((Boolean)request.getAttribute(StatusConstants.ERROR_INFORMATION_NO_OUTPUT)).booleanValue();
with this one:
boolean bIsNoContent = false;
if(request.getAttribute(StatusConstants.ERROR_INFORMATION_NO_OUTPUT)!=null)
bIsNoContent = ((Boolean)request.getAttribute (StatusConstants.ERROR_INFORMATION_NO_OUTPUT)).booleanValue();
Published January 26, 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.