A Question:
what type of error is the parsing error?
Code:
12:30:17,577 ERROR Configuration:905 - problem parsing configuration/hibernate.cfg.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:901)
at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:845)
at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:831)
at it.satanet.ILOG.db.dbCluster.main(dbCluster.java:42)
Nested exception:
java.lang.NullPointerException
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:691)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
at org.dom4j.io.SAXReader.read(SAXReader.java:339)
at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:901)
at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:845)
at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:831)
at it.satanet.ILOG.db.dbCluster.main(dbCluster.java:42)
Errore: net.sf.hibernate.HibernateException: problem parsing configuration/hibernate.cfg.xml nella lettura da tastiera
where hibernate.cfg.xml begin as:
Code:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration
PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">
<hibernate-configuration>
<session-factory>
...