java.lang.AbstractMethodError: org.postgresql.jdbc1.Jdbc1ResultSet.getType()I
at org.apache.commons.dbcp.DelegatingResultSet.getType(DelegatingResultSet.java:356)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.ibatis.common.jdbc.logging.ResultSetLogProxy.invoke(ResultSetLogProxy.java:47)
at $Proxy16.getType(Unknown Source)
at com.ibatis.sqlmap.engine.execution.SqlExecutor.handleResults(SqlExecutor.java:369)
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:298)
at org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:209)
at org.springframework.orm.ibatis.SqlMapClientTemplate.executeWithListResult(SqlMapClientTemplate.java:249)
at org.springframework.orm.ibatis.SqlMapClientTemplate.queryForList(SqlMapClientTemplate.java:296)
at org.springframework.orm.ibatis.SqlMapClientTemplate.queryForList(SqlMapClientTemplate.java:290)

解决方案 »

  1.   

    .xml:
    <sqlMap>
      <select id="searchtesInfo01" resultClass="cn.co.tesDem.business.dto.TesFirstDTO1">
        SELECT * FROM "TESFIRSTINFO"
      </select>
    </sqlMap>
    ---------------------------------------------------------------
    Dao:
    dateBatchDTOs = super.getSqlMapClientTemplate().queryForList("searchtesInfo01");
    ---------------------------------------------------------------
    Dto:
    /** TESFIRSTINFO_ID */
        private String tesFirstInfo_id; /**
     * @return the tesFirstInfo_id
     */
    public String getTesFirstInfo_id() {
    return tesFirstInfo_id;
    } /**
     * @param tesFirstInfo_id the tesFirstInfo_id to set
     */
    public void setTesFirstInfo_id(String tesFirstInfo_id) {
    this.tesFirstInfo_id = tesFirstInfo_id;
    }
    ---------------------------------------------------------------
    DB: (postgresql)
    table:TESFIRSTINFO+field:tesFirstInfo_id(数据类型:character varying)运行之后就报上面的错,
    java.lang.AbstractMethodError: org.postgresql.jdbc1.Jdbc1ResultSet.getType()I
    at org.apache.commons.dbcp.DelegatingResultSet.getType(DelegatingResultSet.java:356)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    查了很久,都没找到答案,数据库表字段tesFirstInfo_id的数据类型我换了很多,报错都一样,希望大家帮我解决一下啊,谢谢
      

  2.   

    SELECT * FROM "TESFIRSTINFO"
    表名不用打引号吧?  
      

  3.   

    SELECT * FROM "TESFIRSTINFO"
    ibatis的表名不能加双引号,另外建议加上表空间