-->
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: No row with the given identifier exists exception for Create
PostPosted: Wed Apr 08, 2009 12:54 am 
Newbie

Joined: Thu Mar 05, 2009 2:50 am
Posts: 14
com.jiva.pojo.DataAccessLayerException: org.hibernate.UnresolvableObjectException: No row with the given identifier exists: [com.jiva.pojo.StatusLog#11488]
at com.jiva.pojo.AbstractDAO.handleException(AbstractDAO.java:354)
at com.jiva.pojo.AbstractDAO.saveOrUpdate(AbstractDAO.java:114)
at com.jiva.pojo.StatusLogDAO.create(StatusLogDAO.java:36)
at com.jiva.crawler.UrlCrawlerPostingPage.createStatusLog(UrlCrawlerPostingPage.java:271)
at com.jiva.crawler.UrlCrawlerPostingPage.logPostingRepeated(UrlCrawlerPostingPage.java:198)
at com.jiva.crawler.UrlCrawlerPostingPage.startProcessing(UrlCrawlerPostingPage.java:138)
at com.jiva.crawler.UrlCrawler.processMainPage(UrlCrawler.java:200)
at com.jiva.crawler.UrlCrawler.startProcessing(UrlCrawler.java:126)
at com.jiva.crawler.CampaignExecutor.run(CampaignExecutor.java:121)
at org.springframework.core.task.SimpleAsyncTaskExecutor$ConcurrencyThrottlingRunnable.run(SimpleAsyncTaskExecutor.java:192)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.hibernate.UnresolvableObjectException: No row with the given identifier exists: [com.jiva.pojo.StatusLog#11488]
at org.hibernate.UnresolvableObjectException.throwIfNull(UnresolvableObjectException.java:42)
at org.hibernate.event.def.DefaultRefreshEventListener.onRefresh(DefaultRefreshEventListener.java:126)
at org.hibernate.event.def.DefaultRefreshEventListener.onRefresh(DefaultRefreshEventListener.java:39)
at org.hibernate.impl.SessionImpl.fireRefresh(SessionImpl.java:827)
at org.hibernate.impl.SessionImpl.refresh(SessionImpl.java:817)
at com.jiva.pojo.AbstractDAO.saveOrUpdate(AbstractDAO.java:111)
... 9 more

I am getting this exception when i i am using the saveOrUpdate() on the Object. I do not know when this occurs. it occurs only some time.

Thanks and Regards
Ramakanth

_________________
Thanks and Regards


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 08, 2009 1:03 am 
Regular
Regular

Joined: Thu Sep 06, 2007 2:22 am
Posts: 108
Location: Noida,India
Posting the code can help.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 08, 2009 1:47 am 
Beginner
Beginner

Joined: Sun Dec 28, 2008 6:01 pm
Posts: 24
Check the associated objects (or rows) of your main object (row) which you are trying to saveOrUpdate into the database.

______________________________________________
Please do RATE if this post was helpful


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.