Home > database > Server always quote CannotCreateTransactionException this error, to solve! The great spirit show gen
Server always quote CannotCreateTransactionException this error, to solve! The great spirit show gen
Time:10-01
Bothered by one problem recently, my project code database locally run time won't appear the wrong, but on the server will occasionally time, I met three or four times, is now happening again today, every time appear this exception is no reason no reason, even restore unprovoked, has been running at ordinary times is very normal, and haven't done the upgrade operation, our server is deployed in tomcat 7 Linux environment, jdk1.7, database mysql, I use the server (all virtual machine) Shared a file server, there are three machines running, read a file server project files at the same time, tomcat are three machines separate files, appear problem, I just three server restart tomcat, restart the beginning is a good run normally, but run less than five minutes to start an error, an error and then have to restart again, I have to restart many times repeatedly, also don't know the reason, check a lot of information not detailed explanation with no effect, basically is morning time will appear, then at noon will cause has restored to normal, met many times it is hard to understand, hope to help move, to prevent similar problems again next time, error message is as follows: Org. Springframework. Transaction. CannotCreateTransactionException: Could not open the Hibernate Session for the transaction; Nested exception is org. Hibernate. Exception. GenericJDBCException: Could not open the connection
Problems are basically is an error in executing SQL statements, comit failures, link failures, strives for the great god,