当前位置: 代码迷 >> J2EE >> java web 500 异常,
  详细解决方案

java web 500 异常,

热度:272   发布时间:2016-04-22 02:27:29.0
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.daimami.com/search?q=317
  相关解决方案