Are you accessing the database directly using JDBC or only through Hibernate?
I'm only accessing the database through hibernate. I'm not even using Hibernate's direct SQL queries -- only HQL, and session.load() calls.
I just upgraded to JBoss 4.0.1 final from 4.0.0, and now I get "Closing a connection for you. Please close them yourself: org.jboss.resource.adapter.jdbc.WrappedConnection@11d5b39" errors a lot -- appears to be every time a DB call is made. The app appears to work (it gets the data from the DB ok).
I didn't change anything else in my app. I'm using JBoss's hibernate deployer with my HAR file, and accessing hibernate from stateless session beans with container managed transactions. It works fine in 4.0.0 and 3.2.6. Any ideas? thanks
I got the same error. I am using the same configuration (HAR, Stateless Session beans, CMT). In 4.0.0 there is no errors.
Thanks Scott, this resolves it for me.
Sorry to bother.
Closing the connection (of course) resolves the issue, but did I understand wrong that it is not nessecary to close the session when it is obtained with HibernateContext.getSesssion()
in a CMT environment?
Yep, this is a bug a read somewhere else, will be resolved soon.