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