-->
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: Could not synchronize database state with session
PostPosted: Mon Feb 18, 2008 10:11 am 
Newbie

Joined: Mon Feb 18, 2008 9:45 am
Posts: 4
Location: Blore
Hi All,

We are facing the following problem in beta which is causing the application to stall and a server restart is needed make it work. Once server is restarted the application works fine for a few mins and the problem surfaces again. The server log is attached for reference:

2008-02-14 14:11:53,282 ERROR [org.hibernate.event.def.AbstractFlushingEventListener] Could not synchronize database state with session

org.hibernate.jdbc.BatchFailedException: Batch update failed: 0

at org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:57)

at org.hibernate.jdbc.Expectations$BasicExpectation.verifyOutcome(Expectations.java:46)

at org.hibernate.jdbc.BatchingBatcher.checkRowCounts(BatchingBatcher.java:68)

at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)

at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246)

at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:237)

at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:142)

at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)

at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)

at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)

at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)

at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106) ...........

The details of hibernate version and db are as follows:
Hibernate version:3.2.4.sp1
SQL Server 2005 Std Edition

Any inputs would be extremely helpfull.
Thanks in advance.

_________________
Regards,
Shreyas


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.