我编写了一个 java servlet 程序,但是当我运行它时,它显示错误 HTTP 状态 500 - null 这意味着什么; 我的源代码位于 this page .
错误是
HTTP Status 500 - null
type Exception report
message null
description The server encountered an internal error that prevented it from fulfilling this request.
exception
java.lang.NumberFormatException: null
java.lang.Integer.parseInt(Unknown Source)
java.lang.Integer.parseInt(Unknown Source)
skypark.Registration.doPost(Registration.java:56)
javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
请帮我解决这个问题......
最佳答案
可能
int phone=Integer.parseInt(phone1);
phone1
已传递 null
关于java - HTTP 状态 500 - 空,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13905048/