Hi all, I'm new in Hibernate. I use hibernate with db2 and I have problem with connections: When I try connect with database I have error :
Nov 3, 2009 3:05:44 PM org.hibernate.util.JDBCExceptionReporter logExceptions WARNING: SQL Error: -4471, SQLState: null Nov 3, 2009 3:05:44 PM org.hibernate.util.JDBCExceptionReporter logExceptions SEVERE: [jcc][t4][10251][10308][4.7.85] java.sql.Connection.close() requested while a transaction is in progress on the connection. The transaction remains active, and the connection cannot be closed. ERRORCODE=-4471, SQLSTATE=null Exception in thread "main" org.hibernate.exception.GenericJDBCException: Cannot release connection at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126) at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52) at org.hibernate.jdbc.ConnectionManager.closeConnection(ConnectionManager.java:478) at org.hibernate.jdbc.ConnectionManager.aggressiveRelease(ConnectionManager.java:429) at org.hibernate.jdbc.ConnectionManager.afterTransaction(ConnectionManager.java:316) at org.hibernate.jdbc.JDBCContext.afterNontransactionalQuery(JDBCContext.java:268) at org.hibernate.impl.SessionImpl.afterOperation(SessionImpl.java:445) at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1605) at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:306) at rec.creativewroclaw.dao.GenericHibernateDAO.findByCriteria(GenericHibernateDAO.java:136) at rec.creativewroclaw.dao.GenericHibernateDAO.findAll(GenericHibernateDAO.java:72) at rec.StartDataBase.main(StartDataBase.java:28) Caused by: com.ibm.db2.jcc.am.SqlException: [jcc][t4][10251][10308][4.7.85] java.sql.Connection.close() requested while a transaction is in progress on the connection. The transaction remains active, and the connection cannot be closed. ERRORCODE=-4471, SQLSTATE=null at com.ibm.db2.jcc.am.dd.a(dd.java:660) at com.ibm.db2.jcc.am.dd.a(dd.java:60) at com.ibm.db2.jcc.am.dd.a(dd.java:120) at com.ibm.db2.jcc.am.lb.u(lb.java:1169) at com.ibm.db2.jcc.am.lb.x(lb.java:1192) at com.ibm.db2.jcc.am.lb.v(lb.java:1178) at com.ibm.db2.jcc.am.lb.close(lb.java:1162) at org.hibernate.connection.DriverManagerConnectionProvider.closeConnection(DriverManagerConnectionProvider.java:160) at org.hibernate.jdbc.ConnectionManager.closeConnection(ConnectionManager.java:474) ... 9 more
Pleas help me.
|