异常信息:
com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com/liys/ibatis/domain/Student.xml.
--- The error occurred while applying a result map.
--- Check the selectAllStudent-AutoResultMap.
--- The error happened while setting a property on the result object.
--- Cause: java.lang.RuntimeException: Error setting property 'setScore' of 'com.liys.ibatis.domain.Student@1386000'. Cause: java.lang.IllegalArgumentException
at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:204)
at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryForList(MappedStatement.java:139)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:567)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:541)
at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:118)
at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:122)
at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.queryForList(SqlMapClientImpl.java:98)
at com.liys.ibatis.domain.dao.impl.StudentDaoImpl.queryAllStudent(StudentDaoImpl.java:58)
at com.liys.ibatis.domain.dao.impl.StudentDaoImpl.main(StudentDaoImpl.java:85)
com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com/liys/ibatis/domain/Student.xml.
--- The error occurred while applying a result map.
--- Check the selectAllStudent-AutoResultMap.
--- The error happened while setting a property on the result object.
--- Cause: java.lang.RuntimeException: Error setting property 'setScore' of 'com.liys.ibatis.domain.Student@1386000'. Cause: java.lang.IllegalArgumentException
at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:204)
at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryForList(MappedStatement.java:139)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:567)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:541)
at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:118)
at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:122)
at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.queryForList(SqlMapClientImpl.java:98)
at com.liys.ibatis.domain.dao.impl.StudentDaoImpl.queryAllStudent(StudentDaoImpl.java:58)
at com.liys.ibatis.domain.dao.impl.StudentDaoImpl.main(StudentDaoImpl.java:85)
解决方案 »
- ldap 循环添加节点时报socket closed,这个怎么办?
- myibatis3.0分页问题
- Struts2开发项目时如何合理的分包?
- 时间问题。。。。。急
- Spring依赖注入
- 我现在正在做项目,需要全文检索,对一对文本文件进行检索,如果有满足“关键字”的就现实出来,谁用做过这方面的项目,给我点资料,参考一下。
- struts1.2select标签,再线等
- 可不可以用quartz做客户端并连接jobserver?
- 请高手指教,jbuilder+weblogic开发cmp错误,
- 请问:如何实现不重启Jboss自动识别新的javabean?
- 如何通过hibernate创建一个有自增列和主键列的表?
- 谁见过这错org.apache.xerces.util.ObjectFactory$ConfigurationError
score属性有吗?
score数据类型?
你从数据库里面往javabean里面映射的时候出的错误。是不是你score这个字段
再javabean里面的类型和你数据库里面搜索出来不一致造成的。