Hi,

I am using Spring + Hibernate + H2 and get the following error.
Searching on Google, it seems to be an H2 relative issue but i cannot
be sure... Could you please confirm is it is or giving me hints about
configurations I could try for Hibernate ?

Thanks a lot,

Mathieu.

Caused by: 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.BatchingBatcher.checkRowCounts(BatchingBatcher.java:
90)
        at
org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:
70)
        at
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:
268)
        at
org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:
114)
        at
org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:
109)
        at
org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:
244)
        at
org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:
2525)
        at
org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:
2478)
        at
org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:
2805)
        at
org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:
114)
        at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:268)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:
260)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:
180)
        at
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:
321)
        at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:
51)
        at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1206)
        at
org.springframework.orm.hibernate3.HibernateAccessor.flushIfNecessary(HibernateAccessor.java:
390)
        at
org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:
112)
        ... 12 more

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to