I got "Could not synchronize database state with session" exception while updating a child record in hibernate. This is same with many child update cases. Let us know any clue. Thanks in Advance.
Child Table is having a Composite Key. I have set all the keys of Composite key. I have changed one of the three values of the composite key, and used update method provided by the HibernateTemplate class. Help appreciated ASAP
Full stack trace:
[http-8080-Processor24] 27 Jun 2007 16:04:27,921 ERROR event.def.AbstractFlushingEventListener:277 - Could not synchronize database state with session
But i have criteria like that i have id, role, Begin date as Composite Key. We took the Begin Date as one of the key because for the uniqueness. THe user might have done the mistake of entering the incorrect begin date, and have rectified and wants to change the Begindate. We want to give the user a flexibility to change the begin date and wants to update the record.
Help appreciated ASAP in this regard as it was throwing the error, explained above.
Please help me out as I'm having similar issue. Let me explain the problem:
I have a CLONE option where, you can create a clone of an existing user details and deactivate the old user. I'm able to clone a new user, but when i try to deactivate the previous use, using his ID, I get the following error -
[ERROR] [org.hibernate.util.JDBCExceptionReporter] - ORA-01861: literal does not match format string
[2010-11-29 09:24:07,839 118368] [ERROR] [org.hibernate.util.JDBCExceptionReporter] - ORA-01861: literal does not match format string
[2010-11-29 09:24:07,841 118370] [ERROR] [org.hibernate.event.def.AbstractFlushingEventListener] - Could not synchronize database state with session
org.hibernate.exception.DataException: Could not execute JDBC batch update
Live your life. Don't just exist.
What could go wrong in a swell place like "The Evil Eye"? Or with this tiny ad?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop