java parseint null_java.lang.NumberFormatException: null Integer.parseInt的方法错误 具体问题代码在补充 到底怎么更改...
問(wèn)題原因:java.lang.NumberFormatException:nulljava.lang.Integer.parseInt(Integer.java:415)java.lang.Integer.parseInt(Integer.java:497)com.bjsxt.bbs2009.action.GoodAction....
問(wèn)題原因:java.lang.NumberFormatException: null
java.lang.Integer.parseInt(Integer.java:415)
java.lang.Integer.parseInt(Integer.java:497)
com.bjsxt.bbs2009.action.GoodAction.execute(GoodAction.java:114)
com.bjsxt.bbs2009.action.GoodAction.execute(GoodAction.java:114) 左右的代碼段為
public String execute() throws Exception {
Connection con=null;
//114行
PageBean pageBean=new PageBean(Integer.parseInt(page),Integer.parseInt(rows));
try{
if(good==null){
good=new Good();
}
good.setGoodname(g_name);
con=dbUtil.getCon();
JSONObject result=new JSONObject();
JSONArray jsonArray=JsonUtil.formatRsToJsonArray(gooddao.goodList(con, pageBean,good));
int total=gooddao.goodCount(con,good);
result.put("rows", jsonArray);
result.put("total", total);
ResponseUtil.write(ServletActionContext.getResponse(), result);
}catch(Exception e){
e.printStackTrace();
}finally{
try {
dbUtil.closeCon(con);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
return null;
展開
總結(jié)
以上是生活随笔為你收集整理的java parseint null_java.lang.NumberFormatException: null Integer.parseInt的方法错误 具体问题代码在补充 到底怎么更改...的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 吾空山灵K7 PLUS全新游戏本上市:1
- 下一篇: java 缓存分页_基于redis做缓存