-->
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.  [ 1 post ] 
Author Message
 Post subject: Why an application got the Hibernate exception suddenly
PostPosted: Mon Mar 28, 2011 5:33 pm 
Newbie

Joined: Mon Mar 28, 2011 5:20 pm
Posts: 1
Hibernate version: 3.3.1GA
An application, which has been running well over a year, got the exception below suddenly and repeatedly since 9:03PM March 2011 (we use UTC to save timestamp in DB, UTC of our localtime 9:03PM March 2011 is 2:03AM March 2011, which is Daylight Saving Time, not sure it's related or not), and the exception trace lead to the code like "query.list()".

Any idea (1, why it happened cuddenly? 2. why a query leads to update?), thanks in advance!

[2011-03-13 06:42:33,400] [ERROR] [ORB.thread.pool : 7] AbstractFlushingEventListener.performExecutions(): Could not synchronize database state with session
org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1

at org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:85)
at org.hibernate.jdbc.Expectations$BasicExpectation.verifyOutcome(Expectations.java:70)
at org.hibernate.jdbc.NonBatchingBatcher.addToBatch(NonBatchingBatcher.java:47)
at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2431)
at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2335)
at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2635)
at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:115)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.