Receiving a Null Pointer Exception (java.lang.NullPointerException) when accessing the Incident Management tab in the APM CEM UI. How can this be prevented?

Document ID : KB000020386
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

When clicking on the Incident Management tab in the APM CEM UI from the APM MOM, a web page appears requesting to send an email to Technical Support with the following error message:


 	[ERROR] [btpool0-1820] [com.timestock.tess.web.exceptionHandlers.GenericExceptionHandler] Unknown classification of exception 	
 	java.lang.NullPointerException 	
 	at com.timestock.tess.services.managers.EventManager.getHighestImpactSubnet(EventManager.java:507) 	
 	at com.timestock.tess.services.managers.EventManager$$FastClassByCGLIB$$c56b9d16.invoke(<generated>) 	
 	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) 	
 	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:674) 	
 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154) 	
 	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107) 	
 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176) 	
 	at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:615) 	
 	at com.timestock.tess.services.managers.EventManager$$EnhancerByCGLIB$$7e8dc544.getHighestImpactSubnet(<generated>) 	
 	at com.timestock.tess.web.controllers.BizEventListController.referenceData(BizEventListController.java:209) 	
 	at org.springframework.web.servlet.mvc.AbstractFormController.showForm(AbstractFormController.java:559) 	
 	at org.springframework.web.servlet.mvc.SimpleFormController.showForm(SimpleFormController.java:198) 	
 	at org.springframework.web.servlet.mvc.SimpleFormController.showForm(SimpleFormController.java:175) 	
 	at org.springframework.web.servlet.mvc.AbstractFormController.showNewForm(AbstractFormController.java:323) 	
 	at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:263) 	
 	at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) 	
 	at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:45) 	
 	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:820) 	
 	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:755) 	
 	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:396) 	
 	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:350) 	
 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) 	
 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) 	
 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) 	
 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1221) 	
 	at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:108) 	
 	at org.acegisecurity.intercept.web.SecurityEnforcementFilter.doFilter(SecurityEnforcementFilter.java:197) 	
 	at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:120) 	
 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212) 	
 	at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:246) 	
 	at com.timestock.tess.services.security.sso.SsoAuthenticationProcessingFilter.doFilter(SsoAuthenticationProcessingFilter.java:59) 	
 	at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:120) 	
 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212) 	
 	at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:220) 	
 	at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:120) 	
 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212) 	
 	at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125) 	
 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212) 	
 	at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174) 	
 	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77) 	
 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212) 	
 	at com.timestock.tess.web.filters.CheckDatabaseFilter.doFilter(CheckDatabaseFilter.java:98) 	
 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212) 	
 	at com.timestock.tess.web.filters.URICaptureFilter.doFilter(URICaptureFilter.java:77) 	
 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212) 	
 	at com.wily.webserver.filter.RequestLocaleFilter.doFilter(RequestLocaleFilter.java:46) 	
 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212) 	
 	at com.timestock.tess.web.filters.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:59) 	
 	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77) 	
 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212) 	
 	at com.wily.webserver.filter.X509ParsingFilter.doFilter(X509ParsingFilter.java:216) 	
 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212) 	
 	at com.wily.webserver.filter.FqdnFilter.doFilter(FqdnFilter.java:55) 	
 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212) 	
 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399) 	
 	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) 	
 	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) 	
 	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) 	
 	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) 	
 	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) 	
 	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) 	
 	at org.mortbay.jetty.Server.handle(Server.java:326) 	
 	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) 	
 	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928) 	
 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549) 	
 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) 	
 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) 	
 	at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228) 	
 	at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)

Solution:

Run the following query to validate the issue. If the exception is occurring, the query against the APM database should return a non-zero result.


 	Select TS_STATUS,TS_ID from TS_BIZ_EVENTS where TS_NUMBER_OF_DEFECTS<1;