com.ibm.db2.jcc.c.SqlException: java.sql.Connection.close() requested while a transaction is in progress on the connection.The transaction remains active, and the connection cannot be closed.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 3004, 1 year ago
java.sql.Connection.close() requested while a transaction is in progress on the connection.The transaction remains active, and the connection cannot be closed.
com.ibm.db2.jcc.c.SqlException: java.sql.Connection.close() requested while a transaction is in progress on the connection.The transaction remains active, and the connection cannot be closed.
at com.ibm.db2.jcc.c.l.l(l.java:526)
at com.ibm.db2.jcc.c.l.close(l.java:516)
at com.solarmetric.datasource.ConnectionWrapper.close(ConnectionWrapper.java:288)
at com.solarmetric.datasource.DataSourceImpl$AbstractPool.close(DataSourceImpl.java:711)
at com.solarmetric.datasource.DataSourceImpl.close(DataSourceImpl.java:356)
at com.solarmetric.datasource.DataSourceImpl.close(DataSourceImpl.java:330)
at com.solarmetric.datasource.PoolConnection.close(PoolConnection.java:70)
at com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.close(SQLExecutionManagerImpl.java:890)
at com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.close(SchemaTool.java:186)
at com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1170)
at com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1102)
at com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1075)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.