File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes i am getting error in hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "i am getting error in hibernate" Watch "i am getting error in hibernate" New topic
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
 
IntelliJ Java IDE
 
subject: i am getting error in hibernate
 
Threads others viewed
Could not parse hibernate.cfg.xml
hibernate hello world
hibernate error
Could not parse configuration: /hibernate.cfg.xml
HELP with Digester RSVP
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com