Hi thanks for your answer
Unfortunaltely it dosen't help: If I make something like
Configuration cfg = new Configuration().configure("/SysInfo.hbm.xml");
I get the same Exception. I think there is someting wrong with the parsing (DTD Sheme ?)
running
0 [main] INFO net.sf.hibernate.cfg.Environment - Hibernate 2.1.3
32 [main] INFO net.sf.hibernate.cfg.Environment - loaded properties from resource hibernate.properties: {hibernate.connection.driver_class=com.mysql.jdbc.Driver, hibernate.cglib.use_reflection_optimizer=true, hibernate.cache.provider_class=net.sf.ehcache.hibernate.Provider, hibernate.cache.use_query_cache=true, hibernate.max_fetch_depth=1, hibernate.dialect=net.sf.hibernate.dialect.MySQLDialect, hibernate.jdbc.use_streams_for_binary=true, hibernate.jdbc.batch_size=0, hibernate.query.substitutions=true 1, false 0, yes 'Y', no 'N', hibernate.proxool.pool_alias=pool1, hibernate.connection.username=root, hibernate.hbm2ddl.auto=create, hibernate.connection.url=jdbc:mysql://localhost/jdbkof, hibernate.show_sql=true, hibernate.connection.password=password, hibernate.connection.pool_size=5}
32 [main] INFO net.sf.hibernate.cfg.Environment - using java.io streams to persist binary types
32 [main] INFO net.sf.hibernate.cfg.Environment - using CGLIB reflection optimizer
47 [main] INFO net.sf.hibernate.cfg.Configuration - configuring from resource: /SysInfo.hbm.xml
47 [main] INFO net.sf.hibernate.cfg.Configuration - Configuration resource: /SysInfo.hbm.xml
110 [main] DEBUG net.sf.hibernate.util.DTDEntityResolver - trying to locate
http://hibernate.sourceforge.net/hibern ... ng-2.0.dtd in classpath under net/sf/hibernate/
125 [main] ERROR net.sf.hibernate.cfg.Configuration - problem parsing configuration/SysInfo.hbm.xml
org.dom4j.DocumentException: Error on line 4 of document : java.lang.NullPointerException Nested exception: java.lang.NullPointerException
at org.dom4j.io.SAXReader.read(SAXReader.java:355)
at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:930)
at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:874)
at demo.DemoMain.<init>(DemoMain.java:30)
at demo.DemoMain.main(DemoMain.java:39)
Nested exception:
java.lang.NullPointerException
at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
at org.apache.crimson.parser.Parser2.parse(Unknown Source)
at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
at org.dom4j.io.SAXReader.read(SAXReader.java:339)
at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:930)
at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:874)
at demo.DemoMain.<init>(DemoMain.java:30)
at demo.DemoMain.main(DemoMain.java:39)
net.sf.hibernate.HibernateException: problem parsing configuration/SysInfo.hbm.xml
at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:935)
at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:874)
at demo.DemoMain.<init>(DemoMain.java:30)
at demo.DemoMain.main(DemoMain.java:39)
Caused by: org.dom4j.DocumentException: Error on line 4 of document : java.lang.NullPointerException Nested exception: java.lang.NullPointerException
at org.dom4j.io.SAXReader.read(SAXReader.java:355)
at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:930)
... 3 more