-->
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: ORA-01002 Fetch out of sequence error with UserType
PostPosted: Sun Jun 12, 2011 5:05 pm 
Newbie

Joined: Sun Jun 12, 2011 4:48 pm
Posts: 2
I have a table that has a child table that has one field mapped with an UserType. Works fine if the child relationship has less than 10 rows. When the child has 10 or more rows, i get a SQL Exception "ORA-01002 Fetch out of sequence" in Hibernate's Loader class. After briefly looking at the Loader.java code, It seems that Loader.java doQuery method defines the field hydratedObjects as an ArrayList of 10 elements. Is this the root cause ? Is there any workaround to this problem ? Thanks.


Top
 Profile  
 
 Post subject: Re: ORA-01002 Fetch out of sequence error with UserType
PostPosted: Wed Jun 15, 2011 10:07 am 
Newbie

Joined: Sun Jun 12, 2011 4:48 pm
Posts: 2
After further testing, the problem is due to calling a stateless session bean from the UserType's nullSafeGet. This bean just retrieves data from a cached object and there is no database call anywhere. Anyone experiences the same issue ?
Thanks.


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.