Hello everyone. I am having an issue which I haven't yet been able to come up with a reason for.
Hibernate Version: 3.0.1
MySQL Version: 4.1.12
OS: Windows 2003 Server Standard Edition
What is happening is my system will basically attempt to start a transaction, and never return from it. It doesn't throw an error, it doesn't return null, it just hangs indefinitely. I am using the standard HibernateUtil which was supplied with CaveatEmptor written by
Christian@hibernate.org... I would assume most are familiar with this.
I haven't been able to figure out if this is a MySQL, of Java issue. I can temporarily correct the problem by restarting my Java application. It seems to be OK for a while, then it happens again randomly.
I don't believe this is an issue with my application not releasing sessions, because this same code has been in place since August 1st, and has done 40,000+ transactions... nothing has changed. The problem has occured after as little as 150 transactions (since a restart)... so it wouldn't really make sense that it was a coding/resource release issue.
From my best guess, it appears that Hibernate is unable to obtain a connection from the c3po connection pool, or the BEGIN; statement which starts the transaction at the MySQL server is failing and never returning.
Has anyone ever seen this before? Any help, or ideas would be MUCH MUCH appreciated.
Thank you in advance.
Geoff