The first exception is related to the JDBC-ODBC bridge that comes with
the JDK. This is unrelated to H2. H2 doesn't use it. Do you use
database URLs of the form jdbc:odbc:? Probably not. However the driver
is loaded by default. Maybe it helps if you read the source code of
this driver.
The second exception looks like an unclosed database connection to a
H2 database. Could you check if the the stack trace in the file
.trace.db?
Regards,
Thomas
Thanks!
The first exception is because iBatis 2 tries to close all
connections, but the given connection is already closed. See also:
http://svn.apache.org/repos/asf/ibatis/trunk/java/ibatis-2/ibatis-2-core/src/com/ibatis/common/jdbc/SimpleDataSource.java
- it is not problematic. Too bad iBatis doesn't use
Connection.isClosed() before calling getAutoCommit().
The second stack trace is caused by an unclosed connection. The stack
trace says the connection was opened in the given place:
at com.ibatis.common.jdbc.SimpleDataSource.popConnection(SimpleDataSource.java:580)
at com.ibatis.common.jdbc.SimpleDataSource.getConnection(SimpleDataSource.java:222)
at com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransaction.init(JdbcTransaction.java:48)
at com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransaction.getConnection(JdbcTransaction.java:89)
at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryForObject(MappedStatement.java:120)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject(SqlMapExecutorDelegate.java:518)
at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject(SqlMapExecutorDelegate.java:493)
at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForObject(SqlMapSessionImpl.java:106)
at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.queryForObject(SqlMapClientImpl.java:82)
at sk.trader.core.Backtester.test(Backtester.java:215)
at sk.trader.core.Backtester.runTest(Backtester.java:169)
at sk.trader.core.Backtester.start(Backtester.java:84)
at org.netbeans.api.wizard.displayer.WizardDisplayerImpl
I suggest you check your code to make sure all iBatis object,
connections and connection pools are closed.
Regards,
Thomas