-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: problem with connections
PostPosted: Tue Nov 03, 2009 10:42 am 
Newbie

Joined: Tue Nov 03, 2009 9:41 am
Posts: 1
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.


Top
 Profile  
 
 Post subject: Re: problem with connections
PostPosted: Tue Nov 03, 2009 11:22 am 
Expert
Expert

Joined: Thu Jan 08, 2009 6:16 am
Posts: 661
Location: Germany
you should provide some more code.

_________________
-----------------
Need advanced help? http://www.viada.eu


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.