首页» 卓达学刊» 论坛首页» 论坛精华区» 卓达人· 电脑技术· 学在卓大· 我们的大学城· 红铅笔文学社


您好,老师,请帮助!急

作者: gao_lei2  军衔: 列兵  发表时间: 2006-06-07 08:37:39

我编了一个基于jsp的网上书店程序,管理员登陆那一块出现问题.前天还可以,不知道为什么今天不行了!出现异常如下请老师指点:
HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

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

exception

org.apache.jasper.JasperException: 0 >= 0
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:693)
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:660)
org.apache.jsp.manage.login_jsp._jspService(org.apache.jsp.manage.login_jsp:70)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
java.util.Vector.elementAt(Unknown Source)
org.apache.jsp.manage.main_jsp._jspService(org.apache.jsp.manage.main_jsp:210)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:693)
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:660)
org.apache.jsp.manage.login_jsp._jspService(org.apache.jsp.manage.login_jsp:70)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.


--------------------------------------------------------------------------------

常见问题

作者: hofman  军衔: 上尉  发表时间: 2006-06-08 02:06:37

"java.lang.ArrayIndexOutOfBoundsException: 0 >= 0",这就是问题所在.处理容器/数组的时候,检查一下是否为空,再走循环.

Re:您好,老师,请帮助!急

作者: nana001  军衔: 列兵  发表时间: 2008-06-23 10:04:51