Hi all, I'm getting a stack trace doing a simple update against Sybase ASE 12.5.x and iBatis (jConnect 5.5 or 6.0 JDBC driver). This works against Sybase 11.9.2 databases. I have similar updates that work fine with DB2 also. I've run a packet dump on the connection using RIBO and found that iBatis is issuing a rollback on the transaction with 12.5 and not 11.9.2. I've opened a case with Sybase and they said the error was do to the rollback.
My question is this: I'd like to either show Sybase that it is their problem or fix iBatis if the problem lies there. Is there an easy way to figure out what JDBC calls are being generated as a result of my update with iBatis so I can build a test case that demonstrates the problem without iBatis in the loop? Thanks for your help, Brian P.S. I *love* iBatis, best thing since sliced bread! (stack trace follows) [junit] Testcase: testProductionPart took 0.558 sec [junit] Caused an ERROR [junit] A wrong datastream has been sent to the server. The server was expecting token 32 but got the token 33. This is an internal error. [junit] com.sybase.jdbc3.jdbc.SybSQLException: A wrong datastream has been sent to the server. The server was expecting token 32 but got the token 33. This is an internal error. [junit] at com.sybase.jdbc3.tds.Tds.processEed(Tds.java:2942) [junit] at com.sybase.jdbc3.tds.Tds.nextResult(Tds.java:2246) [junit] at com.sybase.jdbc3.tds.Tds.readCommandResults(Tds.java:3023) [junit] at com.sybase.jdbc3.tds.Tds.doCommand(Tds.java:3008) [junit] at com.sybase.jdbc3.tds.Tds.endTransaction(Tds.java:1769) [junit] at com.sybase.jdbc3.jdbc.SybConnection.rollback(SybConnection.java:1083) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41) [junit] at com.ibatis.common.jdbc.SimpleDataSource$SimplePooledConnection.invoke(SimpleDataSource.java:807) [junit] at $Proxy0.rollback(Unknown Source) [junit] at com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransaction.rollback(JdbcTransaction.java:65) [junit] at com.ibatis.sqlmap.engine.transaction.TransactionManager.end(TransactionManager.java:98) [junit] at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.endTransaction(SqlMapExecutorDelegate.java:465) [junit] at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.endTransaction(SqlMapSessionImpl.java:134) [junit] at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.endTransaction(SqlMapClientImpl.java:107) [junit] at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.autoEndTransaction(SqlMapExecutorDelegate.java:515) [junit] at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.update(SqlMapExecutorDelegate.java:319) [junit] at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.update(SqlMapSessionImpl.java:74) [junit] at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.update(SqlMapClientImpl.java:49) [junit] at stkrm.parts.PartTest.testProductionPart(Unknown Source) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)