日期:2014-05-19  浏览次数:20584 次

500空指针..求指点.
内部服务器错误
服务器遇到了一个内部错误而无法完成请求。


java.lang.NullPointerException
at _jspx._application._recept._queryspb._look_5fnytsp_5fnfbd__jsp__1._jspService(_look_5fnytsp_5fnfbd__jsp.java:162)
at com.apusic.servlet.jsp.HttpJspPageImpl.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.apusic.servlet.http.Context.invoke(Unknown Source)
at com.apusic.servlet.http.Context.performClass(Unknown Source)
at com.apusic.servlet.jsp.JspServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.apusic.servlet.http.Context.invoke(Unknown Source)
at com.apusic.servlet.http.RequestDispatcherImpl.forward(Unknown Source)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1054)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1192)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:412)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.apusic.servlet.http.ServletFilterWrapper.doFilter(Unknown Source)
at com.apusic.servlet.http.FilterChainImpl.doFilter(Unknown Source)
at com.tjsoft.util.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:41)
at com.apusic.servlet.http.FilterChainImpl.performFilter(Unknown Source)
at com.apusic.servlet.http.Context.invoke(Unknown Source)
at com.apusic.servlet.http.Context.processRequest(Unknown Source)
at com.apusic.servlet.http.VirtualHost.processRequest(Unknown Source)
at com.apusic.servlet.http.HttpServer.processRequest(Unknown Source)
at com.apusic.servlet.http.HttpConnectionHandler.service(Unknown Source)
at com.apusic.servlet.http.ConnectionHandler.processRequest(Unknown Source)
at com.apusic.servlet.http.ConnectionHandler.processConnection(Unknown Source)
at com.apusic.servlet.http.ConnectionHandler.run(Unknown Source)
at com.apusic.util.ThreadPoolImpl$WorkerThread.run(Unknown Source)



对于这一行,我实在是看着晕..因为找不到_jspx._application._recept._queryspb._look_5fnytsp_5fnfbd__jsp__1._jspService(_look_5fnytsp_5fnfbd__jsp.java:162)


------解决方案--------------------
那是被被sevelet编译后生成的文件。
------解决方案--------------------
要到tomcat/work下面找到对应的servlet 生成的文件然后看行数
------解决方案--------------------
看console 控制台上肯定有
说明jsp第几行空指针了

你这样谁也不知道、

要么就 把代码帖出来、我们帮你看下、
------解决方案--------------------
你在程序里当然找不到了,它是jsp编译后生成的文件,在tomcat里面,你应该是在Jsp界面使用一个为Null的值了,然后导致的空指针异常,你去tomcat里面找对应的.java的文件(jsp编译后生成了.java的文件),然后找到对应的行,再去调试你的程序
------解决方案--------------------
你的那个生成的JSP有问题。