日期:2014-05-19  浏览次数:20923 次

HTTP Status 500 是什么错误?
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 /login_in.jsp at line 10

7: <%@include file="inc/mhead.inc"%>
8: <%
9: String sid = request.getParameter("id");
10: int id = Integer.parseInt(sid);
11: String sql = "select * from memberslist where id=" + id + "";
12: Sql.dbconnection();
13: Sql.dbhandle(sql, 1);


Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:524)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:435)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


root cause 

java.lang.NumberFormatException: null
java.lang.Integer.parseInt(Integer.java:415)
java.lang.Integer.parseInt(Integer.java:497)
org.apache.jsp.login_005fin_jsp._jspService(login_005fin_jsp.java:140)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


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


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

Apache Tomcat/6.0.13

各位大侠如何解救啊?

------解决方案--------------------
后台处理错误了

org.apache.jasper.JasperException: An exception occurred processing JSP page /login_in.jsp at line 10

9: String sid = request.getParameter("id");
10: int id = Integer.parseInt(sid);

java.lang.NumberFormatException: null
java.lang.Integer.parseInt(Integer.java:415)
--------------------------------------------------
说明你的输入参数id可能为空或者不是数字
------解决方案--------------------
500 是服务器严重错误。看你的异常好像这个NumberFormatException数字格式化的时候异常了。
9: String sid = request.getParameter("id");
10: int id = Integer.parseInt(sid);
你的sid没有得到值,得到NULL,所以在转换成int的时候就异常了。
------解决方案--------------------
向当前这个页面跳转的URL后面缺少id参数和值。
我的异常网推荐解决方案:An exception occurred processing JSP page,http://www.aiyiweb.com/j2se/33144.html
我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.myexcept