-->
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: ScrollableResults returns the same row again and again
PostPosted: Wed Dec 16, 2009 3:22 pm 
Newbie

Joined: Sun Feb 08, 2009 10:05 pm
Posts: 11
Hi All,

I'm using Hibernate in a JAX-WS/Spring Web Application running inside of Weblogic.

I'm using Hibernate to pull about several thousand rows from the database using ScrollableResults and I'm seeing some oddities with Hibernate.

What seems to be happening is...I can make one request and Hibernate returns the proper resultset.

If I make the same exact request again, Hibernate takes the last row from the last request and returns the same row duplicated n times.

I disabled every single kind of cache (minus the L1 cache) that Hibernate offers. My code that loops through the ScrollableResults indeed calls the session.clear() and scrollableresults.close() methods.

This used to work for me when I was doing Application managed JPA. I've since switched to container managed JPA and container managed transactions (JTA).

Has anyone ever seen this bizarre behavior?

THANKS for your help!!


Top
 Profile  
 
 Post subject: Re: ScrollableResults returns the same row again and again
PostPosted: Tue Jan 19, 2010 3:54 pm 
Newbie

Joined: Sun Feb 08, 2009 10:05 pm
Posts: 11
I found the issue...this had to do with some funky behavior from my JDBC driver and JDBC cache settings from Weblogic.

As soon as I turned off caching from weblogic, everything works fine!


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.