求大佬帮助明天要交的期末作业HTTP status 500 错误

qq_40545311 2020-01-03 08:14:33
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 /mofifyUser.jsp at line 6 3: <head> <title>修改用户信息</title></head> 4: <body> 5: <% //读取用户原有信息 6: int id = Integer.parseInt(request.getParameter("id")); 7: UserManage usermanage = new ncu.util.UserManage() ; 8: UserInfo userinfo = usermanage.getUserById(id); 9: usermanage.closeConn(); 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) ncu.filter.CharsetEncodingFilter.doFilter(CharsetEncodingFilter.java:17) root cause java.lang.NumberFormatException: null java.lang.Integer.parseInt(Integer.java:415) java.lang.Integer.parseInt(Integer.java:497) org.apache.jsp.mofifyUser_jsp._jspService(mofifyUser_jsp.java:60) 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) ncu.filter.CharsetEncodingFilter.doFilter(CharsetEncodingFilter.java:17) note The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs. 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 /mofifyUser.jsp at line 6 3: <head> <title>修改用户信息</title></head> 4: <body> 5: <% //读取用户原有信息 6: int id = Integer.parseInt(request.getParameter("id")); 7: UserManage usermanage = new ncu.util.UserManage() ; 8: UserInfo userinfo = usermanage.getUserById(id); 9: usermanage.closeConn(); 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) ncu.filter.CharsetEncodingFilter.doFilter(CharsetEncodingFilter.java:17) root cause java.lang.NumberFormatException: null java.lang.Integer.parseInt(Integer.java:415) java.lang.Integer.parseInt(Integer.java:497) org.apache.jsp.mofifyUser_jsp._jspService(mofifyUser_jsp.java:60) 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) ncu.filter.CharsetEncodingFilter.doFilter(CharsetEncodingFilter.java:17) note The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.
...全文
277 点赞 收藏 3
写回复
3 条回复
hookee 05月19日
request.getParameter("id") 是不是存在?
回复 点赞
sxysoft_csdn 05月19日
是因为java接受到的参数是空,转换为数字是报错. http://www.xinbiancheng.cn/
回复 点赞
解决了吗?过了这么久没有结帖,别浪费啊!
回复 点赞
发动态
发帖子
CSS
创建于2007-09-28

3.1w+

社区成员

6.0w+

社区内容

层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区公告
暂无公告