org.springframework.jdbc.UncategorizedSQLException:SqlMapClient operation;uncategorized SQLException for SQL[];SQL state [null];error code[0];
the error occurred while applying a result map.
---check the advice_result
---check the result mapping for the 'skinDate' property
---cause:java.lang.NumberFormatException:for input string:"";
其他几个属性stopTime confirmTime checkDate operationDate偶尔也会出现这个问题。
 
这个异常不是每次都能碰见,偶尔会出现这个问题。map中的配置如下:
<resultMap id="advice_result" class="AdviceBean">
<result property="stopTime" column="TZSJ"
nullValue="1970/01/01 00:00:00" />
<result property="confirmTime" column="QRSJ"
nullValue="1970/01/01 00:00:00" />
<result property="checkDate" column="HSFH" nullValue="1970/01/01 00:00:00" />
<result property="operationDate" column="SSJS" nullValue="1970/01/01 00:00:00" />
<result property="skinDate" column="PSSJ" nullValue="1970/01/01 00:00:00" />
</resultMap>
bean如下:
private Date skinDate;
public Date getSkinDate() {
return skinDate;
} public void setSkinDate(Date skinDate) {
this.skinDate = skinDate;
}
。(其他属性就不列出来了)不知道是什么原因,小弟纠结了很久,一直没找到原因……求解!