Sev_LLLLL
Sev_LLLLL
采纳率100%
2015-11-04 14:35 阅读 1.5k
已采纳

jsp报错-loginProcess.jsp at line 29

type Exception report

message An exception occurred processing JSP page /loginProcess.jsp at line 29

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: An exception occurred processing JSP page /loginProcess.jsp at line 29

26:

27: List> alist=db.list(sql);
28: int temp=0;
29: for(int i=0;i<alist.size();i++){
30: String str=alist.get(i).get("num").toString();
31: temp=Integer.parseInt(str);
32: }

Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
root cause

java.lang.NullPointerException
org.apache.jsp.loginProcess_jsp._jspService(loginProcess_jsp.java:90)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

3条回答 默认 最新

  • 已采纳
    xl890727 修巴利耶 2015-11-04 15:05

    这个我也指点不了啊,你debug下程序,单步执行看看变量的值

    点赞 评论 复制链接分享
  • qq_32402589 qq_32402589 2015-11-04 14:44

    蝴蝶姐姐话费哈哈哈哈回家

    点赞 评论 复制链接分享
  • xl890727 修巴利耶 2015-11-04 14:49

    跟踪下程序,提示是空指针错误的

    点赞 评论 复制链接分享

相关推荐