程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> 編程綜合問答 >> server-jsp報錯-loginProcess.jsp at line 29

server-jsp報錯-loginProcess.jsp at line 29

編輯:編程綜合問答
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)

最佳回答:


這個我也指點不了啊,你debug下程序,單步執行看看變量的值

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved