Undecipherable exception reported with incomplete hibernate.cfg.xml
-------------------------------------------------------------------
Key: HHH-3039
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3039
Project: Hibernate3
Issue Type: Improvement
Components: core
Affects Versions: 3.2.5
Environment: hibernate 3.2.5
apache derby 10.3
Reporter: Matthias Haack
Priority: Minor
Attachments: hibernate.cfg.xml
While loading the hibernate.cfg.xml file the following log was created:
29.12.2007 20:49:46 org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.2.5
29.12.2007 20:49:46 org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
29.12.2007 20:49:46 org.hibernate.cfg.Environment buildBytecodeProvider
INFO: Bytecode provider name : cglib
29.12.2007 20:49:46 org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
29.12.2007 20:49:46 org.hibernate.cfg.Configuration configure
INFO: configuring from resource: /hibernate.cfg.xml
29.12.2007 20:49:46 org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: /hibernate.cfg.xml
Initial SessionFactory creation failed.java.lang.NullPointerException
No hint given what caused the exception. Turned out to be there is no special handling is
implemented in class org.hibernate.cfg.Configuration at line 1529.
This happens while calling "new
Configuration().configure().buildSessionFactory();" on the attached configuration
file; this file if course is not correct (it's a mapping file, not a config file).
Proper error reporting would help the end user.
--
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