Failure to detect dialect because of a failure to obtain connection (HHH00342) should show
connection failure exception
-----------------------------------------------------------------------------------------------------------------------
Key: HHH-6575
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-6575
Project: Hibernate Core
Issue Type: Improvement
Components: core
Affects Versions: 4.0.0.Beta5
Reporter: Mike Youngstrom
I recently upgraded to Hibernate 4 Beta 5 and found it much harder to debug connection
errors. My application depends upon Dialect detection and when my app cannot connect to
the database I get the following warning with no stacktrace:
JdbcServicesImpl: HHH00342:Could not obtain connection to query metadata : Exception
occurred while getting connection: oracle.ucp.UniversalConnectionPoolException: Cannot get
Connection from Datasource
I then get a null dialect error because obviously the dialect couldn't be detected and
I have no idea of it is a bad password or anything.
I think the Warning above should also display the connection error stack trace like it
used to in 3.x. Or at the very least an additional "DEBUG" level message should
be logged with the full connection error stacktrace.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira