-->
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: reasons for org.hibernate.UnresolvableObjectException
PostPosted: Fri May 30, 2014 10:42 am 
Pro
Pro

Joined: Wed Nov 05, 2003 7:22 pm
Posts: 211
Hi,

I've recently started seeing org.hibernate.UnresolvableObjectException: No row with the given identifier exists type erros in the logs.
I've also experienced these myself from time to time. The thing is the, the referenced row DOES in fact exist.

So, it seems that at the moment that Hibernate tries to retrieve the row it doesn't yet.

This typically happens in the following scenario:
* User submits a form
* Form gets successfully processed
* User gets redirected to new page: ERROR

A reload and the record will be there no problem. I'm just trying to understand why this would occur. The only thing I can think of is that the database hasn't completed processing the action but that just seems weird because that would mean is mindblowingly slow and I would expect that in an OpenSessionInView pattern, that when the session closes, all the transaction have been processed. Is there some database setting that could have gotten mangled?

Any idea how to debug this?

Marc


Top
 Profile  
 
 Post subject: Re: reasons for org.hibernate.UnresolvableObjectException
PostPosted: Thu Jun 05, 2014 12:29 pm 
Pro
Pro

Joined: Wed Nov 05, 2003 7:22 pm
Posts: 211
Can anyone give me some pointers here?

It just seems impossible that one requests saves an object, flushes to the db and returns the id. And a subsequent request uses that id to do something and Hibernate returns null for an object lookup unless you pause the execution.

I'm using BoneCP 0.7.1 and I'm starting to thing the issue may be here.


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.