日期:2014-05-17  浏览次数:20806 次

Spring3.11与Ibatis2.3.2一对一查询问题
Java code

2012-05-30 08:46:41,366 DEBUG [java.sql.PreparedStatement] - <{pstm-100007} Executing Statement:            select id, to_char(found_date,'yyyy-mm-dd') found_date, linkemail, linkman, linklphone, edu_major_id, note, status from Kaoqu_info where status!=0             >
2012-05-30 08:46:41,366 DEBUG [java.sql.PreparedStatement] - <{pstm-100007} Parameters: []>
2012-05-30 08:46:41,366 DEBUG [java.sql.PreparedStatement] - <{pstm-100007} Types: []>
2012-05-30 08:46:41,396 DEBUG [java.sql.ResultSet] - <{rset-100008} ResultSet>
2012-05-30 08:46:41,516 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - <Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml]>
2012-05-30 08:46:41,656 INFO [org.springframework.jdbc.support.SQLErrorCodesFactory] - <SQLErrorCodes loaded: [DB2, Derby, H2, HSQL, Informix, MS-SQL, MySQL, Oracle, PostgreSQL, Sybase]>
2012-5-30 8:46:41 org.apache.catalina.core.ApplicationDispatcher invoke
严重: Servlet.service() for servlet spring threw exception
java.lang.NullPointerException
    at java.lang.Class.isAssignableFrom(Native Method)
    at com.ibatis.sqlmap.engine.type.TypeHandlerFactory.getTypeHandler(TypeHandlerFactory.java:143)
    at com.ibatis.sqlmap.engine.type.TypeHandlerFactory.getTypeHandler(TypeHandlerFactory.java:123)
    at com.ibatis.sqlmap.engine.mapping.result.ResultMap.prepareBeanParameterObject(ResultMap.java:591)
    at com.ibatis.sqlmap.engine.mapping.result.ResultMap.getNestedSelectMappingValue(ResultMap.java:475)
    at com.ibatis.sqlmap.engine.mapping.result.ResultMap.getResults(ResultMap.java:341)
    at com.ibatis.sqlmap.engine.execution.SqlExecutor.handleResults(SqlExecutor.java:384)
    at com.ibatis.sqlmap.engine.execution.SqlExecutor.handleMultipleResults(SqlExecutor.java:300)
    at com.ibatis.sqlmap.engine.execution.SqlExecutor.executeQuery(SqlExecutor.java:189)
    at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.sqlExecuteQuery(MappedStatement.java:221)
    at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:189)
    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 org.springframework.orm.ibatis.SqlMapClientTemplate$3.doInSqlMapClient(SqlMapClientTemplate.java:295)
    at org.springframework.orm.ibatis.SqlMapClientTemplate$3.doInSqlMapClient(SqlMapClientTemplate.java:1)
    at org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:200)
    at org.springframework.orm.ibatis.SqlMapClientTemplate.queryForList(SqlMapClientTemplate.java:293)
    at com.ibatisdao.IbatisDaoImpl.QueryAll(IbatisDaoImpl.java:16)
    at com.major_info.dao.major_infoDaoImpl.getAllKaoqu_info(major_infoDaoImpl.java:37)
    at com.major_info.biz.Imajor_infoBizImpl.getAllKaoqu_info(Imajor_infoBizImpl.java:29)
    at com.major_info.controller.getAllEdu_infoController.SelectAll(getAllEdu_infoController.java:69)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)