首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > Ruby Rails >

error:for SQL []; SQL state [null]; error code [零]

2012-12-26 
error:for SQL [] SQL state [null] error code [0]org.quartz.SchedulerException: Job threw an unhan

error:for SQL []; SQL state [null]; error code [0]
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'autoHistorySuperviseSubmitForwardOrAssignIssueLog' on target class [class com.tianque.job.realization.AutoSuperviseRedCardTask] failed; nested exception is org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [0];  
--- The error occurred in sqlmaps/issueLogNew.xml. 
--- The error occurred while applying a result map. 
--- Check the issueLogNew.issueLogResult. 
--- The error happened while setting a property on the result object. 
--- Cause: com.ibatis.common.beans.ProbeException: Could not set property 'timeLimit' to value 'null' for com.tianque.domain.IssueLogNew. Cause: java.lang.IllegalArgumentException; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:  
--- The error occurred in sqlmaps/issueLogNew.xml. 
--- The error occurred while applying a result map. 
--- Check the issueLogNew.issueLogResult. 
--- The error happened while setting a property on the result object. 
………


解决方案:我的domain中timeLimit  设定为 private int  timeLimit;查询的结果中timeLimit如果是null,则不能赋值给int类型的timeLime,所以把int类型改为integer即可。 1 楼 孟钾濠 2012-07-11   用你这个方法,我的问题解决了,谢谢了。 2 楼 peonyzzdx 2012-07-13   呵呵,共勉

热点排行