You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Clinton Begin (JIRA)" <ib...@incubator.apache.org> on 2005/03/13 16:08:55 UTC

[jira] Closed: (IBATIS-88) DB2Driver.getType() called, but doesn't exist

     [ http://issues.apache.org/jira/browse/IBATIS-88?page=history ]
     
Clinton Begin closed IBATIS-88:
-------------------------------

     Assign To: Clinton Begin
    Resolution: Invalid


This is a bug with the driver.  It's okay if a driver doesn't support certain result set types, but in this case IBM doesn't even let you check for the type.  The result set must be of some type, so why don't they just return it?!!

Please email your IBM support rep.

> DB2Driver.getType() called, but doesn't exist
> ---------------------------------------------
>
>          Key: IBATIS-88
>          URL: http://issues.apache.org/jira/browse/IBATIS-88
>      Project: iBatis for Java
>         Type: Bug
>   Components: SQL Maps
>  Environment: Windows XP, DB2 UDB on NT
>     Reporter: Sylvain Huppe
>     Assignee: Clinton Begin

>
> I connect to a DB2 database on NT through a gateway ou through JDBC directly. The drivers that I use are COM.ibm.db2.jdbc.net.DB2Driver or COM.ibm.db2.jdbc.app.DB2Driver. The connection works in both cases.
> When I try to do a sqlMap.queryForList I get the following exception:
> java.lang.AbstractMethodError: COM.ibm.db2.jdbc.net.DB2ResultSetTrace.getType()I
> 	at com.ibatis.sqlmap.engine.execution.SqlExecutor.handleResults(SqlExecutor.java:263)
> 	at com.ibatis.sqlmap.engine.execution.SqlExecutor.executeQuery(SqlExecutor.java:127)
> 	at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.sqlExecuteQuery(GeneralStatement.java:174)
> 	at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryWithCallback(GeneralStatement.java:142)
> 	at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryForList(GeneralStatement.java:99)
> 	at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:341)
> 	at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:326)
> 	at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:77)
> 	at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.queryForList(SqlMapClientImpl.java:54)
> 	at com.axacanada.conversion.Conversion.main(Conversion.java:62)
> Exception in thread "main" 
> Is there a problem with the drivers or is it the way that iBatis tries to get the result ?
> Thank you.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira