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.  [ 3 posts ] 
Author Message
 Post subject: org.hibernate.ObjectNotFound Exception
PostPosted: Thu Jan 12, 2006 3:54 pm 
Newbie

Joined: Sat Dec 24, 2005 8:39 am
Posts: 15
Hi

I am facing org.hibernate.ObjectNotFound Exception with this error. This occurs when list() is invoked.

Can somebody quickly help on this?

Thanks
Ahmad


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 12, 2006 6:13 pm 
Expert
Expert

Joined: Tue Nov 23, 2004 7:00 pm
Posts: 570
Location: mostly Frankfurt Germany
I am somewhat convinced that an Object is not found.
;-)

You should consider to read the information, which you can find when you post. Mappings, queries, ...

Regards Sebastian

_________________
Best Regards
Sebastian
---
Training for Hibernate and Java Persistence
Tutorials for Hibernate, Spring, EJB, JSF...
eBook: Hibernate 3 - DeveloperGuide
Paper book: Hibernate 3 - Das Praxisbuch
http://www.laliluna.de


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 13, 2006 10:14 am 
Newbie

Joined: Sat Dec 24, 2005 8:39 am
Posts: 15
Hi Laliluna,

I thought somebody would be able to give me a quick tip as to what the problem migh be. That is the reason , I did not paste the code and mappings and moreover the code was lengthy and yesterday I did not have that much time to elaborate further.

However, to keep everybody informed.

I was facing this problem because I was using a table which has a self referencing key. In the database the self reference column was having -1 as value. Due to some reason when that row is accessed and the value is -1 the retrieval fails

Person
=====
Person_Id
Parent_Person_Id
Person_Name

Now if Parent_Person_Id has -1, retrieval fails. I updated the parent records to have parent person id as null after which this error was resolved.

Thanks
Ahmad


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.