[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-4490?page=c...
]
Coquentin Pierre commented on HHH-4490:
---------------------------------------
In fact, it's not in SessionFactory but SettingFactory... Sorry... I ve created this
issue too fast.
I join a test case... just unzip it, set +x on script (it's a shell script), and run
it... I ve overrided the driver to simulate the behavior (Connection.getMetadata will
throw an sql exception) and patched mysql driver to disable their driver registration.
NPE in SessionFactory if an SQL Exception is thrown when retrieving
db metadata
-------------------------------------------------------------------------------
Key: HHH-4490
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-4490
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.3.2
Environment: Hibernate 3.3.2.GA
Oracle 10G
Reporter: Coquentin Pierre
Attachments: stacktrace.txt
If an sql exception occurs when hibernate tries to get metadata in
org.hibernate.cfg.SessionFactory.buildSettings(Properties props) (line 113) then it's
logged and nothing else is done, so the dialect is not computed and leads to an NPE line
151. It's not reproductible with hibernate 3.2.6 as the code changed.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira