-->
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: facing "Result set closed" exception, on loading a
PostPosted: Mon May 26, 2008 8:12 am 
Newbie

Joined: Mon May 26, 2008 7:12 am
Posts: 2
Location: Bangalore,India
When I am trying to read an entity from DB I am getting the following exception.

java.sql.SQLException: Result set already closed
at weblogic.jdbc.wrapper.ResultSet.checkResultSet(ResultSet.java:100)
at weblogic.jdbc.wrapper.ResultSet.preInvocationHandler(ResultSet.java:56)
at weblogic.jdbc.wrapper.ResultSet_oracle_jdbc_driver_OracleResultSetImpl.next(Unknown Source)
at org.hibernate.loader.Loader.doQuery(Loader.java:697)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
at org.hibernate.loader.Loader.loadEntity(Loader.java:1860)

I tried to figure out problem from hibernate source code.
I observed that closeStatements() in AbstractBatcher(org.hibernate.jdbc) is causing this problem.

Actually if the read operation is non-transactional it closes all the opened resultsets. I think this is not a correct behaviour.

It shouldn't close the sibling resultsets. It should close only the corresponding result set on which query has been executed.


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.