Project and Portfolio Management Practitioners Forum
cancel

Timesheet Error(java.lang.NullPointerException)

Highlighted
GMohanty
Trusted Contributor.

Timesheet Error(java.lang.NullPointerException)

Hi All,

When a user is trying to open a particular timesheet he is getting the below error.
Rest all seems to be fine. Recompiling the jsp didn't help. What could be the possible cause for this error and how can we resolve it?

An unknown exception has occurred. Please reload the page you were editing and try again.
The following is a stack trace of the exception:
java.lang.NullPointerException:
com.mercury.itg.tm.impl.TimeSheetLineImpl.getTotalEffort(TimeSheetLineImpl.java:1617)
com.mercury.itg.tm.impl.TimeSheetImpl.getWorkTimeTotal(TimeSheetImpl.java:899)
com.mercury.itg.tm.impl.TimeSheetImpl.getWorkTimeTotal(TimeSheetImpl.java:888)
com.mercury.itg.tm.impl.TimeSheetImpl.enforcePolicy(TimeSheetImpl.java:1502)
com.mercury.itg.tm.web.EditTimeSheetAction.doExecute(EditTimeSheetAction.java:325)
com.mercury.itg.common.web.BaseAction.execute(BaseAction.java:146)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
org.apache.portals.bridges.struts.PortletTilesRequestProcessor.process(PortletTilesRequestProcessor.java:50)
com.mercury.itg.common.web.PortletTilesRequestProcessor.process(PortletTilesRequestProcessor.java:47)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.ajaxanywhere.AAFilter.doFilter(AAFilter.java:46)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
com.mercury.itg.servlet.I18NFilter.doFilter(I18NFilter.java:34)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
com.mercury.itg.servlet.HibernateSessionFilter.doFilter(HibernateSessionFilter.java:77)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
com.kintana.core.web.filter.stinger.ValidationFilter.applyFilter(ValidationFilter.java:93)
com.kintana.core.web.filter.stinger.ValidationFilter.doFilter(ValidationFilter.java:66)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
com.kintana.core.web.filter.ControlFilter.applyFilter(ControlFilter.java:733)
com.kintana.core.web.filter.ControlFilter.doFilter(ControlFilter.java:1143)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
com.kintana.core.web.filter.MultipartRequestFilter.applyFilter(MultipartRequestFilter.java:79)
com.kintana.core.web.filter.BaseFilter.doFilter(BaseFilter.java:53)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
com.kintana.core.web.filter.I18nFilter.applyFilter(I18nFilter.java:44)
com.kintana.core.web.filter.BaseFilter.doFilter(BaseFilter.java:53)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
com.kintana.core.web.filter.Log4jFilter.applyFilter(Log4jFilter.java:43)
com.kintana.core.web.filter.BaseFilter.doFilter(BaseFilter.java:53)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:619)