[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-4490) NPE in SessionFactory if an SQL Exception is thrown when retrieving db metadata

Coquentin Pierre (JIRA) noreply at atlassian.com
Tue Oct 13 08:49:44 EDT 2009


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Coquentin Pierre updated HHH-4490:
----------------------------------

    Attachment: hibernate-testcase-launcher.zip

I have extracted hibernate configuration file outside the jar, it should be more easier to configure a custom datasource.
The zip contains:
launch-java.sh
conf/log4j.properties 
conf/hibernate.cfg.xml
lib/*.jar

> 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: hibernate-testcase-launcher.zip, hibernate-testcase-launcher.zip, 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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list