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.runtime.JDBCStoreManager.release(JDBCStoreManager.java:797)
at com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.load(JDBCStoreManager.java:467)
at com.solarmetric.kodo.runtime.StateManagerImpl.loadField(StateManagerImpl.java:2232)
at com.solarmetric.kodo.runtime.StateManagerImpl.isLoaded(StateManagerImpl.java:889)
at samples.ormapping.oneToMany.Company.jdoGetemployees(Company.java)
at samples.ormapping.oneToMany.Company.getEmployees(Company.java:33)
at samples.ormapping.oneToMany.CompanyDemo.runDemo(CompanyDemo.java:72)
at samples.ormapping.oneToMany.CompanyDemo.main(CompanyDemo.java:99)

Users with the same issue

You are the first who have seen this exception.

Write tip

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