You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Sylvain Huppe (JIRA)" <ib...@incubator.apache.org> on 2005/03/11 21:37:52 UTC

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

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


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


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

Posted by Clinton Begin <cl...@gmail.com>.
Crap.  I can't stand it when vendors don't implement such methods. 
Seriously!  The result set has to be in *SOME* mode!  So why not just
always return that mode?

Sylvain, I envy you, as you have a good reason to call up IBM and yell
in their ear...something I would love to do for you (no offense to any
IBMers on the list).  :-)

Cheers,
Clinton


On Fri, 11 Mar 2005 14:32:24 -0700, Brandon Goodin
<br...@gmail.com> wrote:
> com.ibm.db2.jdbc.net.DB2ResultSetTrace.getType()...
> 
> I'm assuming this is the class in the DB2 driver that implements the
> ResultSet interface. As far as i can see here your driver is blowing
> when ibatis is looking at the type of result set being returned
> (http://java.sun.com/j2se/1.4.2/docs/api/java/sql/ResultSet.html#getType()).
> 
> This determines whether it will use the rs.absolute or the rs.next  to
> move to the required starting point in the result set.
> 
> Hope that helps,
> Brandon
> 
> P.S. It would also be helpful if you give us the version of ibatis
> that you are using.
> 
> On Fri, 11 Mar 2005 21:37:52 +0100 (CET), Sylvain Huppe (JIRA)
> <ib...@incubator.apache.org> wrote:
> > 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
> >
> > 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
> >
> >
>

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

Posted by Brandon Goodin <br...@gmail.com>.
com.ibm.db2.jdbc.net.DB2ResultSetTrace.getType()...

I'm assuming this is the class in the DB2 driver that implements the
ResultSet interface. As far as i can see here your driver is blowing
when ibatis is looking at the type of result set being returned
(http://java.sun.com/j2se/1.4.2/docs/api/java/sql/ResultSet.html#getType()).

This determines whether it will use the rs.absolute or the rs.next  to
move to the required starting point in the result set.

Hope that helps,
Brandon

P.S. It would also be helpful if you give us the version of ibatis
that you are using.

On Fri, 11 Mar 2005 21:37:52 +0100 (CET), Sylvain Huppe (JIRA)
<ib...@incubator.apache.org> wrote:
> 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
> 
> 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
> 
>

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

Posted by "Clinton Begin (JIRA)" <ib...@incubator.apache.org>.
     [ 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