日志: [INFO-2016/08/04/16/:21/:25]ProjectCommonFormController.(78) - 审批[同意]入参-[string]commonFormDtoStr ===={"commonForm":{"id":"1101115577946385"},"taskId":"322055","wfInstanceId":"11011155778…
java.lang.NumberFormatException: For input string: "null" 在开发中你是否遇到过这样的问题,不管请求到的值是什么都能进入不为null或""的判断中,如下例: Stringtemp=req.getParameter("status");//任务状态 int status= 0;//任务状态    if(temp!=null&&!"".equals(temp)…
nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error querying database.  Cause: java.lang.NumberFormatException: For input string: "Y"### Cause: java.lang.NumberFormatException: For input string: "Y"org.myba…
mybatis的if标签之前总是使用是否为空,今天要用到字符串比较的时候遇到了困难,倒腾半天,才在一个论坛上找到解决方法.笔记一下,如下: 转自:https://code.google.com/p/mybatis/issues/detail?id=262 错误描述: <select id="sltTreatment" resultType="com.vitaminmd.sunny.core.bo.Treatment"> select * from tre…
<select id="sltTreatment" resultType="com.vitaminmd.sunny.core.bo.Treatment"> select * from treatment where TRUE <if test="index == 'A'"> AND ensubject IS NOT NULL AND ensubject <> '' </if> </select…
一个常见的myBatis xml文件中的引号错误: org.apache.ibatis.exceptions.PersistenceException: ### Error querying database.  Cause: java.lang.NumberFormatException: For input string: "W%"### Cause: java.lang.NumberFormatException: For input string: "W%"…
错误: java.lang.NumberFormatException: For input string: "1608020001 "    at java.lang.NumberFormatException.forInputString(Unknown Source)    at java.lang.Integer.parseInt(Unknown Source)    at java.lang.Integer.parseInt(Unknown Source)    at cn.…
做项目时候,页面获取出现了这个问题.找了好久一直以为是我字段或者是数据库字段问题导致引起的. 最后才发现是 struts2中jsp我写错了一个参数,一直导致报错.后来改了就好了. 当大家遇到这个问题的时候,记得先看看是不是这个问题,不是的话可以再debug分析下. 对jsp更改的地方,以后要多多注意.自己不要再犯这种低级错误 就是因为这个 变量写错了,导致他找不到塞入数据的泪,所以,下面的一些列 ${freemarkerdetailList.xxxxx}都报 java.lang.NumberFo…
今天,项目突然报"java.lang.NumberFormatException:For input string:"id"",项目框架是spring,springmvc,hibernate,大致意思是类型转换错误,我的id是Integer类型,报错在<c:foreach>里的option里获取值得时候出问题,说明数据类型不对,就去后台dao去找,查看我的sql,一看我查的是表的部分字段,用的hibernate框架,返回的一个List<object…
问题:Caused by: java.lang.NumberFormatException: For input string: "18446744073709551615" 原因:18446744073709551615  --有20位, 而long类型的最大长度是: 19位:9223372036854775807 long类型的最大值是9223372036854775807,刚好长度是19个数字 解决: 1.类型换成 float, float的最大值为3.403E38, 也就是3.…