HTTP Status 500 – ——————————————————————————– 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 /register.jsp at line 9 6: if (request.getParameter(“login”) != null) { Stacktrace: root cause java.lang.NullPointerException note The full stack trace of the root cause is available in the Apache Tomcat/6.0.32 logs. |
|
10分 |
float money=Float.parseFloat(request.getParameter("money")); //此处request.getParameter("money") ==null,所以 java.lang.NullPointerException,你 debug看一下是 //不是为空 |
1分 |
HTTP Status 500 –
——————————————————————————– type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: java.lang.NullPointerException root cause java.lang.NullPointerException note The full stack trace of the root cause is available in the Apache Tomcat/6.0.16 logs. 这个怎么解决啊? |
1分 |
求解,我也遇到这种问题
|
8分 |
register.jsp at line 9
java.lang.NullPointerException, 找关键错误信息, 明显是 Float.parseFloat()的时候报 的错, 打印一下moneys 看看 有没有值, |
我也遇到这个问题,我用的是struts2+hibernate做的 jsp项目,你解决这个问题没有,有的话说一声
|
|
解决了么?我也遇到了这个问题,求解啊 |
|
首先用request.getParamseter(“”)获取String类型的值,然后判断是否为null,如果为null,float.parfloat()会报空指针异常和数据转换异常的,要先判断获取的值是否为null
|
|
求解这个类容
|
|
楼主我已经改了密码和用户名了可是还是出现
求教 求教 |