当前位置: 技术问答>java相关
有关JSP中数组的问题
来源: 互联网 发布时间:2015-02-17
本文导语: 执行下面这段代码报错,错误代码为: Error 500 处理请求时出错:http://131.1.1.15/zhcc/LoginSuccess.jsp 消息:Server caught unhandled exception from servlet [JSP 1.0 处理器] 目标小服务程序: JSP 1.0 处理器 堆栈跟踪: ---------...
执行下面这段代码报错,错误代码为:
Error 500
处理请求时出错:http://131.1.1.15/zhcc/LoginSuccess.jsp
消息:Server caught unhandled exception from servlet [JSP 1.0 处理器]
目标小服务程序: JSP 1.0 处理器
堆栈跟踪:
--------------------------------------------------------------------------------
根本错误-1: 4
java.lang.ArrayIndexOutOfBoundsException: 4 at C_0003a.WebSphere.AppServer.hosts.d_00025fault_0005fhost.zhcc.web.LoginSuccess_jsp_4._jspService(LoginSuccess_jsp_4.java:149) at com.sun.jsp.runtime.HttpJspBase.service(HttpJspBase.java:175) at javax.servlet.http.HttpServlet.service(HttpServlet.java:639) at com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:159) at com.sun.jsp.runtime.JspServlet.serviceJspFile(JspServlet.java:505) at com.sun.jsp.runtime.JspServlet.service(JspServlet.java:615) at javax.servlet.http.HttpServlet.service(HttpServlet.java:639) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:580) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:160) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:287) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:105) at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:353) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:729) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:655) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebApp.java:1269) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebApp.java:1106) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebApp.java:1039) at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebGroup.java:646) at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67) at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:155) at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:300) at com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQEventListenerImp.java:230) at com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventListenerImp.java:104) at com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQEventSource.java:202) at com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.notifyService(SQWrapperEventSource.java:347) at com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.run(SQWrapperEventSource.java:216) at com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run(OutOfProcThread.java:248) at java.lang.Thread.run(Thread.java:481)
--------------------------------------------------------------------------------
包装错误-2: Server caught unhandled exception from JSP [LoginSuccess.jsp]
com.sun.jsp.JspWithNoErrorPageException: Server caught unhandled exception from JSP [LoginSuccess.jsp] at javax.servlet.ServletException.(ServletException.java:61) at com.ibm.websphere.servlet.error.ServletErrorReport.(ServletErrorReport.java:43) at com.ibm.servlet.engine.webapp.WebAppErrorReport.(WebAppErrorReport.java:31) at com.sun.jsp.JspWithNoErrorPageException.(JspWithNoErrorPageException.java:26) at C_0003a.WebSphere.AppServer.hosts.d_00025fault_0005fhost.zhcc.web.LoginSuccess_jsp_4._jspService(LoginSuccess_jsp_4.java:161) at com.sun.jsp.runtime.HttpJspBase.service(HttpJspBase.java:175) at javax.servlet.http.HttpServlet.service(HttpServlet.java:639) at com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:159) at com.sun.jsp.runtime.JspServlet.serviceJspFile(JspServlet.java:505) at com.sun.jsp.runtime.JspServlet.service(JspServlet.java:615) at javax.servlet.http.HttpServlet.service(HttpServlet.java:639) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:580) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:160) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:287) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:105) at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:353) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:729) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:655) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebApp.java:1269) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebApp.java:1106) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebApp.java:1039) at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebGroup.java:646) at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67) at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:155) at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:300) at com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQEventListenerImp.java:230) at com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventListenerImp.java:104) at com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQEventSource.java:202) at com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.notifyService(SQWrapperEventSource.java:347) at com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.run(SQWrapperEventSource.java:216) at com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run(OutOfProcThread.java:248) at java.lang.Thread.run(Thread.java:481)
--------------------------------------------------------------------------------
包装错误-3: Server caught unhandled exception from servlet [JSP 1.0 处理器]
com.ibm.servlet.engine.webapp.UncaughtServletException: Server caught unhandled exception from servlet [JSP 1.0 处理器] at javax.servlet.ServletException.(ServletException.java:61) at com.ibm.websphere.servlet.error.ServletErrorReport.(ServletErrorReport.java:43) at com.ibm.servlet.engine.webapp.WebAppErrorReport.(WebAppErrorReport.java:31) at com.ibm.servlet.engine.webapp.UncaughtServletException.(WebApp.java:1714) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebApp.java:1286) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebApp.java:1106) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebApp.java:1039) at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebGroup.java:646) at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67) at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:155) at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:300) at com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQEventListenerImp.java:230) at com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventListenerImp.java:104) at com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQEventSource.java:202) at com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.notifyService(SQWrapperEventSource.java:347) at com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.run(SQWrapperEventSource.java:216) at com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run(OutOfProcThread.java:248) at java.lang.Thread.run(Thread.java:481)
我的源代码为:
Error 500
处理请求时出错:http://131.1.1.15/zhcc/LoginSuccess.jsp
消息:Server caught unhandled exception from servlet [JSP 1.0 处理器]
目标小服务程序: JSP 1.0 处理器
堆栈跟踪:
--------------------------------------------------------------------------------
根本错误-1: 4
java.lang.ArrayIndexOutOfBoundsException: 4 at C_0003a.WebSphere.AppServer.hosts.d_00025fault_0005fhost.zhcc.web.LoginSuccess_jsp_4._jspService(LoginSuccess_jsp_4.java:149) at com.sun.jsp.runtime.HttpJspBase.service(HttpJspBase.java:175) at javax.servlet.http.HttpServlet.service(HttpServlet.java:639) at com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:159) at com.sun.jsp.runtime.JspServlet.serviceJspFile(JspServlet.java:505) at com.sun.jsp.runtime.JspServlet.service(JspServlet.java:615) at javax.servlet.http.HttpServlet.service(HttpServlet.java:639) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:580) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:160) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:287) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:105) at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:353) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:729) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:655) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebApp.java:1269) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebApp.java:1106) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebApp.java:1039) at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebGroup.java:646) at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67) at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:155) at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:300) at com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQEventListenerImp.java:230) at com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventListenerImp.java:104) at com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQEventSource.java:202) at com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.notifyService(SQWrapperEventSource.java:347) at com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.run(SQWrapperEventSource.java:216) at com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run(OutOfProcThread.java:248) at java.lang.Thread.run(Thread.java:481)
--------------------------------------------------------------------------------
包装错误-2: Server caught unhandled exception from JSP [LoginSuccess.jsp]
com.sun.jsp.JspWithNoErrorPageException: Server caught unhandled exception from JSP [LoginSuccess.jsp] at javax.servlet.ServletException.(ServletException.java:61) at com.ibm.websphere.servlet.error.ServletErrorReport.(ServletErrorReport.java:43) at com.ibm.servlet.engine.webapp.WebAppErrorReport.(WebAppErrorReport.java:31) at com.sun.jsp.JspWithNoErrorPageException.(JspWithNoErrorPageException.java:26) at C_0003a.WebSphere.AppServer.hosts.d_00025fault_0005fhost.zhcc.web.LoginSuccess_jsp_4._jspService(LoginSuccess_jsp_4.java:161) at com.sun.jsp.runtime.HttpJspBase.service(HttpJspBase.java:175) at javax.servlet.http.HttpServlet.service(HttpServlet.java:639) at com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:159) at com.sun.jsp.runtime.JspServlet.serviceJspFile(JspServlet.java:505) at com.sun.jsp.runtime.JspServlet.service(JspServlet.java:615) at javax.servlet.http.HttpServlet.service(HttpServlet.java:639) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:580) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:160) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:287) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:105) at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:353) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:729) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:655) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebApp.java:1269) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebApp.java:1106) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebApp.java:1039) at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebGroup.java:646) at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67) at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:155) at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:300) at com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQEventListenerImp.java:230) at com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventListenerImp.java:104) at com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQEventSource.java:202) at com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.notifyService(SQWrapperEventSource.java:347) at com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.run(SQWrapperEventSource.java:216) at com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run(OutOfProcThread.java:248) at java.lang.Thread.run(Thread.java:481)
--------------------------------------------------------------------------------
包装错误-3: Server caught unhandled exception from servlet [JSP 1.0 处理器]
com.ibm.servlet.engine.webapp.UncaughtServletException: Server caught unhandled exception from servlet [JSP 1.0 处理器] at javax.servlet.ServletException.(ServletException.java:61) at com.ibm.websphere.servlet.error.ServletErrorReport.(ServletErrorReport.java:43) at com.ibm.servlet.engine.webapp.WebAppErrorReport.(WebAppErrorReport.java:31) at com.ibm.servlet.engine.webapp.UncaughtServletException.(WebApp.java:1714) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebApp.java:1286) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebApp.java:1106) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebApp.java:1039) at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebGroup.java:646) at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67) at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:155) at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:300) at com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQEventListenerImp.java:230) at com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventListenerImp.java:104) at com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQEventSource.java:202) at com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.notifyService(SQWrapperEventSource.java:347) at com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.run(SQWrapperEventSource.java:216) at com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run(OutOfProcThread.java:248) at java.lang.Thread.run(Thread.java:481)
我的源代码为: