首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

java web 500 异常,

2013-09-11 
java web 500 错误,求助。HTTP Status 500 ---------------------------------------------type Exception

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

热点排行