HTTP Status 500-request processing failed; Nested exception is java.lang.NullPointerException
Type Exception Report
Message Request processing failed; Nested exception is java.lang.NullPointerException
Description The server encountered an internal error that prevented it from fulfilling this request.
exception
Org.springframework.web.util.NestedServletException:Request processing failed; Nested exception is java.lang.NullPointerException
Org.springframework.web.servlet.FrameworkServlet.processRequest (frameworkservlet.java:965)
Org.springframework.web.servlet.FrameworkServlet.doGet (frameworkservlet.java:844)
Javax.servlet.http.HttpServlet.service (httpservlet.java:620)
Org.springframework.web.servlet.FrameworkServlet.service (frameworkservlet.java:829)
Javax.servlet.http.HttpServlet.service (httpservlet.java:727)
Org.apache.tomcat.websocket.server.WsFilter.doFilter (wsfilter.java:52)
Com.auth.filter.AuthorizationFilter.doFilterInternal (authorizationfilter.java:77)
Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:106)
Org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate (delegatingfilterproxy.java:343)
Org.springframework.web.filter.DelegatingFilterProxy.doFilter (delegatingfilterproxy.java:260)
Com.auth.filter.AuthenticationFilter.doFilterInternal (authenticationfilter.java:111)
Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:106)
Org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate (delegatingfilterproxy.java:343)
Org.springframework.web.filter.DelegatingFilterProxy.doFilter (delegatingfilterproxy.java:260)
Org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal (characterencodingfilter.java:88)
Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:106)
Root cause
Java.lang.NullPointerException
Com.xinghe.base.action.NoticePublic.listNotice (noticepublic.java:44)
SUN.REFLECT.NATIVEMETHODACCESSORIMPL.INVOKE0 (Native Method)
Sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source)
Sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown Source)
Java.lang.reflect.Method.invoke (Unknown Source)
Org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod ( handlermethodinvoker.java:176)
Org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod ( annotationmethodhandleradapter.java:440)
Org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle ( annotationmethodhandleradapter.java:428)
Org.springframework.web.servlet.DispatcherServlet.doDispatch (dispatcherservlet.java:919)
Org.springframework.web.servlet.DispatcherServlet.doService (dispatcherservlet.java:851)
Org.springframework.web.servlet.FrameworkServlet.processRequest (frameworkservlet.java:953)
Org.springframework.web.servlet.FrameworkServlet.doGet (frameworkservlet.java:844)
Javax.servlet.http.HttpServlet.service (httpservlet.java:620)
Org.springframework.web.servlet.FrameworkServlet.service (frameworkservlet.java:829)
Javax.servlet.http.HttpServlet.service (httpservlet.java:727)
Org.apache.tomcat.websocket.server.WsFilter.doFilter (wsfilter.java:52)
Com.auth.filter.AuthorizationFilter.doFilterInternal (authorizationfilter.java:77)
Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:106)
Org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate (delegatingfilterproxy.java:343)
Org.springframework.web.filter.DelegatingFilterProxy.doFilter (delegatingfilterproxy.java:260)
Com.auth.filter.AuthenticationFilter.doFilterInternal (authenticationfilter.java:111)
Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:106)
Org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate (delegatingfilterproxy.java:343)
Org.springframework.web.filter.DelegatingFilterProxy.doFilter (delegatingfilterproxy.java:260)
Org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal (characterencodingfilter.java:88)
Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:106)
Note the full stack trace of the root cause are available in the Apache tomcat/7.0.54 logs.
Apache tomcat/7.0.54
NullPointerException, this error is obvious, that is, the variable is not null-judged;
Error location: Com.xinghe.base.action.NoticePublic.listNotice (noticepublic.java:44)
HTTP Status 500-request processing failed; Nested exception is java.lang.NullPointerException