ibatis 异常

 今天用ibatis的时候,发生了一个奇怪的异常

Caused by: com.ibatis.common.jdbc.exception.NestedSQLException:  
--- The error occurred in com/yh/tdscdma/entity/device/PmInfoNew.xml. 
--- The error occurred while applying a result map. 
--- Check the selectAllPmValue-AutoResultMap. 
--- Check the result mapping for the 'primap_ds1' property. 
--- Cause: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'baseclass{3}' in class 'java.lang.Object'
 at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryWithCallback(GeneralStatement.java:188)
 at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryForList(GeneralStatement.java:123)
 at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:615)
 at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:126)
 at org.springframework.orm.ibatis.SqlMapClientTemplate$4.doInSqlMapClient(SqlMapClientTemplate.java:280)
 at org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:188)
 ... 46 more
Caused by: com.ibatis.common.beans.ProbeException: There is no WRITEABLE property named 'baseclass{3}' in class 'java.lang.Object'

其中''baseclass{3} 在数据库表中保存的是【cdmanbr_list1.baseclass{3}]这样的类型,而primap_ds1没有加[],表中没数据的时候,不会报错,一有数据就报以上的异常。同时在另一张表中也有primap_ds1和【cdmanbr_list1.baseclass{3}]字段,但是却没有报这两个字段的异常,而是报别的字段异常,很不解的一个问题,最后无奈,只能用jdbc实现。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值