日期:2014-05-17  浏览次数:20661 次

JAVA下出现的错误,什么原因引起的?
严重: Servlet.service() for servlet jsp threw exception
java.lang.ArrayIndexOutOfBoundsException: 7
at org.apache.jsp.leftpage_jsp._jspService(leftpage_jsp.java:428)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Thread.java:619)
查了下Servlet.service() for servlet jsp threw exception
这个错误说可能是因为form中的method没有选 还有conn=null但是我这个页面都没有
能否看到错误在哪行?

------解决方案--------------------
java.lang.ArrayIndexOutOfBoundsException: 7
数组越界 


jsp文件出错吧?
------解决方案--------------------
这是个很明显的数组越界异常,建议LZ仔细检查一下
------解决方案--------------------
java.lang.ArrayIndexOutOfBoundsException: 7
数组越界,仔细检查下数组,建议把数组数据打出来看看
------解决方案--------------------
leftpage.jsp文件出问题了,你把其中的java代码,依次注释看看,看错误在哪。