qq_33226111
2016-04-25 09:08
采纳率: 100%
浏览 1.6k
已采纳

eclipse的web的 空指针的异常

严重: Servlet.service() for servlet [jsp] in context with path [/family] threw exception [An exception occurred processing JSP page /action/accountAction.jsp at line 121

118: }
119: request.setAttribute("inReport",inReport);
120: request.setAttribute("outReport",outReport);
121: request.getRequestDispatcher(path+"/../jsps/report/report.jsp").forward(request,response);
122: }
123: /**************************************report ed**************************************/
124: %>

Stacktrace:] with root cause
java.lang.NullPointerException
at org.apache.jsp.jsps.report.report_jsp._jspService(report_jsp.java:93)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • 易生一世 2016-04-25 15:43
    已采纳

    在121行中,请确保path+"/../jsps/report/report.jsp"对应一个具体存在的JSP文件

    点赞 2 评论
  • 佳君德怀恩帮子 2016-04-25 09:32

    你转发到的地址不存在

    点赞 1 评论

相关推荐 更多相似问题