-->
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.  [ 1 post ] 
Author Message
 Post subject: forcing batcher resource cleanup...
PostPosted: Tue Jun 23, 2009 10:21 am 
Newbie

Joined: Tue Jun 23, 2009 10:10 am
Posts: 1
JBossAS4.2.2
Hibernate-Version: 3.2.4.sp1

I get

Quote:
2009-06-23 10:01:13,513 INFO | Thread-22 | org.hibernate.jdbc.ConnectionManager | forcing batcher resource cleanup on transaction completion; forgot to close ScrollableResults/Iterator?


each time I commit a JTA transaction after an insert. This issue was supposed to be addresses in version 3.2.3 but I still see it. Is this a known issue or is there something else that could be causing it?

An example of code that results in this message:

Code:
         
     Session session = getSessionFactory ().getCurrentSession ();
     Transaction tx = session.beginTransaction();

      try
      {          
          session.save (filehistory); // new instance to be inserted
          tx.commit ();
      }
      catch (Exception e)
      {
          logger.error ("Error saving to filehistory <" + filehistory.getFileName () + ">", e);

          try
          {
              tx.rollback ();
          }
          catch (Exception ee)
          {
              logger.error ("Error rolling back record.", ee);
          }

      }
      finally
      {
          logger.debug ("returning from addFileHistory");
      }


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

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.