-->
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.  [ 5 posts ] 
Author Message
 Post subject: "Could not synchronize database state with ses
PostPosted: Mon Oct 04, 2004 7:18 pm 
Newbie

Joined: Mon Oct 04, 2004 7:14 pm
Posts: 1
anybody knows why does this error occur: Appreciate your time in replying.

[java] 2004-10-04 15:56:07,775 ERROR [SessionImpl] <main> net.sf.hibernate.impl.SessionImpl.execute: Could not synchronize database state with session
[java] net.sf.hibernate.HibernateException: SQL insert, update or delete failed (row not found)
[java] at net.sf.hibernate.impl.NonBatchingBatcher.addToBatch(NonBatchingBatcher.java:25)
[java] at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.java:689)
[java] at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.java:642)
[java] at net.sf.hibernate.impl.ScheduledUpdate.execute(ScheduledUpdate.java:52)
[java] at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2414)
[java] at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2368)
[java] at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2236)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 06, 2004 7:44 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Have a look at the FAQ, you have a wrong unsaved-value or you're using an assigned generator

_________________
Emmanuel


Top
 Profile  
 
 Post subject: I have the same problem with delete.....
PostPosted: Tue Nov 16, 2004 4:52 am 
Newbie

Joined: Thu Feb 26, 2004 10:05 pm
Posts: 15
my key was composite and assigned. This is a legacy system and I don't have much choices. I can create and update just fine, but if I do delete it throws:

(impl.SessionImpl 2379) Could not synchronize database state with session
net.sf.hibernate.HibernateException: SQL insert, update or delete failed (row not found)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 16, 2004 4:59 am 
Expert
Expert

Joined: Thu Jan 29, 2004 2:31 am
Posts: 362
Location: Switzerland, Bern
Maybe http://forum.hibernate.org/viewtopic.php?t=933496 helps.

HTH
Ernst


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 16, 2004 1:39 pm 
Newbie

Joined: Thu Feb 26, 2004 10:05 pm
Posts: 15
ernst_pluess wrote:


Ernst, Thanks.....


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