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)
|