StaleConnectionException -> DatabaseException
551126Sep 18 2007 — edited Sep 18 2007Hi all!
We are experiencing a strange problem in our application. When Websphere 6.1 throws a StaleConnectionException Toplink 10.1.3.0.0 wraps it into a generic DatabaseException. We see it in the logs, but cannot catch it in our application (even not with 'catch-all') as it seems to get lost somewhere. That's why the IBM advice to just catch the exception and do a retry on the database does not work for us.
As this error is quite difficult to reproduce (we would have to force Websphere to throw a StaleConnectionExc), we currently have no idea where the exception may gets 'swallowed'.
Has anybody experienced a similar problem so far? What could we try to reproduce and finally fix the problem?
Any help is appreciated. Thanks a lot!
Regards,
Sven