`

ibatis报net.sf.cglib.beans.BulkBeanException异常

阅读更多
com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in com/huawei/demo/userpercept/dao/configure/vap.xml. --- The error occurred while applying a result map. --- Check the userpercept.vap.getCallDropUsers-AutoResultMap. --- The error happened while setting a property on the result object. --- Cause: net.sf.cglib.beans.BulkBeanException


今天碰到这个问题,浪费了我近2个小时    。到处排错,在有限的网络上也找到了碰到这个错误的人,可是他也没有解决。最后我不断尝试,终于解决了 

当时我在猜想会不会跟Bulk这个单词有关?就立马想到是model里面属性值不足以装下resultMap里面某个字段的值,会不会是类型问题?我一看,表里面的是统计失败次数的Integer(Sybase IQ数据库),就把
private int calling_answer;
private int calling_drop;
private int called_answer;
private int called_drop;

全换成Integer类型了,一调试终于好了!

以后model里面的类型都要设置成封装类型,避免类似的错误
2
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics