问题描述
HTTP Status 500 - --------------------------------------------------------------------------------type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception javax.servlet.ServletException: java.lang.NullPointerExceptionorg.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286)org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)javax.servlet.http.HttpServlet.service(HttpServlet.java:690)javax.servlet.http.HttpServlet.service(HttpServlet.java:803)com.yourcompany.util.SetCharacterEncoding.doFilter(SetCharacterEncoding.java:22)root cause java.lang.NullPointerExceptioncom.yourcompany.struts.action.CheckNoticeAction.execute(CheckNoticeAction.java:52)org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)javax.servlet.http.HttpServlet.service(HttpServlet.java:690)javax.servlet.http.HttpServlet.service(HttpServlet.java:803)com.yourcompany.util.SetCharacterEncoding.doFilter(SetCharacterEncoding.java:22)note The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.
解决方案
java.lang.NullPointerException 这不是空指么 具体的你得自己打断点进去调才行 因为代码是你自己的就打CheckNoticeAction这里嘛 然后自己找哪里的数据空了