| Author |
i am getting error in hibernate
|
Ramamohan Gadilli
Greenhorn
Joined: Aug 09, 2006
Posts: 1
|
|
i am new to hibernate, i am getting error in hbm.xml file like SEVERE: Error parsing XML: XML InputStream(3) The processing instruction target matching "[xX][mM][lL]" is not allowed. org.hibernate.MappingException: Could not read mappings from resource: CD.hbm.xml at org.hibernate.cfg.Configuration.addClass(Configuration.java:506) at CDTest.<init>(CDTest.java:31) at CDTest.main(CDTest.java:204) Caused by: org.hibernate.MappingException: Could not parse mapping document in input stream at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:431) at org.hibernate.cfg.Configuration.addClass(Configuration.java:503) ... 2 more Caused by: org.dom4j.DocumentException: Error on line 3 of document : The processing instruction target matching "[xX][mM][lL]" s not allowed. Nested exception: The processing instruction target matching "[xX][mM][lL]" is not allowed. at org.dom4j.io.SAXReader.read(SAXReader.java:482) at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:422) ... 3 more java.lang.NullPointerException any one please can you help me
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
|
CD.hbm.xml appears to be invalid XML. Check that. If you can't see what is making it invalid, you can post it here and someone may point out your mistake.
|
JavaRanch FAQ HowToAskQuestionsOnJavaRanch
|
 |
 |
|
|
subject: i am getting error in hibernate
|
|
|