标签:
org.hibernate.InvalidMappingException: Could not parse mapping document from resource com/domain/book.hbm.xml
at org.hibernate.cfg.Configuration.addResource(Configuration.java:586)
at org.hibernate.cfg.Configuration.addClass(Configuration.java:633)
at com.service.Show.<clinit>(Show.java:17)
Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from input stream
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:555)
at org.hibernate.cfg.Configuration.addResource(Configuration.java:583)
... 2 more
Caused by: org.dom4j.DocumentException: www.hibernate.org Nested exception: www.hibernate.org
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:546)
... 3 more
Exception in thread "main" java.lang.NullPointerException
at com.service.Show.findAllNews(Show.java:30)
at com.service.Show.main(Show.java:53)
忙了好几天,才写出第一个程序,在自习室写的,弄了好长时间有上述错误,中午去了图书馆,联网,百度,
结果一会就好了,下午去自习室准备回顾加强一下,结果又有上述错误,回到宿舍联网下载百度云的备份,对比了一下,一样,原来是要联网的。。
那么如何解决呢?http://www.cnblogs.com/xiaoluo501395377/archive/2012/11/06/2756204.html
magle
标签:
原文地址:http://www.cnblogs.com/zhaoguanghan/p/4539224.html