java web 500 错误,求助。
HTTP Status 500 -
--------------------------------------------
type Exception report
message
description
The server encountered an internal error () that prevented it from fulfilling this request.exception
javax.servlet.ServletException:
java.lang.NumberFormatException: For input string: "on"
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:422)
root cause
java.lang.NumberFormatException: For input string: "on"
java.lang.
NumberFormatException.forInputString(NumberFormatException.java:65)
java.lang.Integer.parseInt(Integer.java:492)
java.lang.Integer.parseInt(Integer.java:527)
com.infomation.action.PhoneAction.delete(PhoneAction.java:91)
------解决方案--------------------
java.lang.NumberFormatException: For input string: "on"
数据类型错误。你是要活的数字型的数据,但是你这个地方得到的是on,要转为数字会报错。加个判断吧
我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.myexception.cn/java-web/317.html