jsp中出现的500错误是怎么回事??
我的提示是这样的:HTTPStatus500---------------------------------------------------------------...
我的提示是这样的:
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: An exception occurred processing JSP page /currExchangeBean.jsp at line 61
58: <jsp:setProperty name="calc" property="amt" value="<%=amnt%>"/>
59: <p ><font >缁撴灉: </font>
60: <%
61: double res=calc.calculate();
62: out.println(res);
63: %>
64: <p align="center">
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
java.lang.ArrayIndexOutOfBoundsException: 5
sas.Calc.calculate(Calc.java:61)
org.apache.jsp.currExchangeBean_jsp._jspService(currExchangeBean_jsp.java:148)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.
声明一下,这个是执行汇率转换的代码是出现的错误,哪位高手解决一下??? 展开
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: An exception occurred processing JSP page /currExchangeBean.jsp at line 61
58: <jsp:setProperty name="calc" property="amt" value="<%=amnt%>"/>
59: <p ><font >缁撴灉: </font>
60: <%
61: double res=calc.calculate();
62: out.println(res);
63: %>
64: <p align="center">
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
java.lang.ArrayIndexOutOfBoundsException: 5
sas.Calc.calculate(Calc.java:61)
org.apache.jsp.currExchangeBean_jsp._jspService(currExchangeBean_jsp.java:148)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.
声明一下,这个是执行汇率转换的代码是出现的错误,哪位高手解决一下??? 展开
1个回答
展开全部
1、500---内部服务器错误,说明是代码有错误!
2、root cause
java.lang.ArrayIndexOutOfBoundsException: 5
是数组越界异常,看看你定义的数组有没有问题
3、sas.Calc.calculate(Calc.java:61) ---看看你的这个文件有问题吗!
4、org.apache.jsp.currExchangeBean_jsp._jspService(currExchangeBean_jsp.java:148)----如果用的是tomcat,在态拦祥tomcat的work目录下有帆搏由jsp转成java文件,文件名currExchangeBean_jsp.java,看看148行
5、下次最好附上代码,这样才能知道具体是哪有问题呀!如衡镇果代码太长,就捡你认为最关键的代码就ok了!
2、root cause
java.lang.ArrayIndexOutOfBoundsException: 5
是数组越界异常,看看你定义的数组有没有问题
3、sas.Calc.calculate(Calc.java:61) ---看看你的这个文件有问题吗!
4、org.apache.jsp.currExchangeBean_jsp._jspService(currExchangeBean_jsp.java:148)----如果用的是tomcat,在态拦祥tomcat的work目录下有帆搏由jsp转成java文件,文件名currExchangeBean_jsp.java,看看148行
5、下次最好附上代码,这样才能知道具体是哪有问题呀!如衡镇果代码太长,就捡你认为最关键的代码就ok了!
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询