-->
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: Connections error message with JBoss 4.0.1
PostPosted: Fri Feb 04, 2005 12:57 pm 
Beginner
Beginner

Joined: Mon Sep 08, 2003 10:56 am
Posts: 35
I just switched to JBoss 4.0.1, now I'm getting some funyness with my hibernate integration that I wasn't previoulsly. One issue, is that whenever I have a transaction (like the one below) jboss is complaining about closing a connection for me. I don't think there's something necessarily wrong, I want the container to close connections for me. Things are funtioning okay, I just want to get this msg out of my logs. Any help?

Hibernate version: Hibernate distributed with JBoss 4.0.1 (2.1.7?)

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Code:
try {
          Session sess = HibernateContext.getSession(DBO_SESSION);
         
         Criteria attCrt = sess.createCriteria( Attribute.class );
         attCrt.add( Expression.eq( "id", id ) );
         
         att = (Attribute) attCrt.uniqueResult();
      } catch (HibernateException e) {
          //TODO fix error report
         throw new DataStoreException(e.getMessage(), e);
      }
      
      return att;


Full stack trace of any exception that occurs:
Code:
10:37:33,718 INFO  [CachedConnectionManager] Closing a connection for you.  Please close them yourself: org.jboss.resource.adapter.jdbc.WrappedConnection@ef54ee

Name and version of the database you are using:
MySQL 4
The generated SQL (show_sql=true):

Debug level Hibernate log excerpt: INFO


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 04, 2005 4:30 pm 
Newbie

Joined: Sat Apr 24, 2004 6:25 pm
Posts: 14
Location: Rochester, NY
See this page, read the section on "Thread Local Patterns"

http://www.jboss.org/wiki/Wiki.jsp?page ... eepingMean

There are two possibilities
1)You need to do what the message says and close your connections
2)JBoss is confused, because of how hibernate opens/closes/commits JDBC connections, so there is no problem, you can either live with the messages or turn off the debug message.

This is something that would be nice if if could be resolved in JBoss because right now it is not easy to tell which of the two possibilities it is.

I thought I read somewhere that there was a page part of the jboss web console that could list out unclosed connections and where they opened, but I don't have a link right now.

Ben


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.