HTTP Status 500-request processing failed; Nested exception is java.lang.NullPointerException

Source: Internet
Author: User
Tags stack trace apache tomcat

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.