Hello,
We've been having this problem for a while and have been unable to find a solution. Hopefully someone here can help.
Our web site was running for over a year when we suddenly started getting Hibernate errors on any section of code that tries to save data to the database. The specific error is "Could not synchronize database state with session". It seems to happen randomly but once it happens it'll keep happening in any section of code that tries to save to the database until we restart Coldfusion.
I found a tip on Stack Overflow where someone was getting this error trying to save while using Hibernate from Java (
http://stackoverflow.com/questions/18559714/could-not-synchronize-database-state-with-session). They were told to refresh the object right after loading it and then make changes and save it. I tried to find some way to do that in Coldfusion ORM but I'm not see how it can be done.
Some days it doesn't happen at all and some days it seems like we're restarting Coldfusion every 15 minutes.
Any ideas?