当前位置:编程学习 > JAVA >>

求助下子~有知道怎么解决的嘛?hibernate本来还用的好好的 突然就报这个错了 编译器的myeclipse 求大牛

 org.hibernate.InvalidMappingException: Unable to read XML
at org.hibernate.util.xml.MappingReader.readMappingDocument(MappingReader.java:101)
at org.hibernate.cfg.Configuration.add(Configuration.java:513)
at org.hibernate.cfg.Configuration.add(Configuration.java:509)
at org.hibernate.cfg.Configuration.add(Configuration.java:716)
at org.hibernate.cfg.Configuration.addResource(Configuration.java:801)
at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:2344)
at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:2310)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2290)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2243)
at org.hibernate.cfg.Configuration.configure(Configuration.java:2158)
at org.hibernate.cfg.Configuration.configure(Configuration.java:2137)
at com.pimi.hibernate.domain.HibernateUtil.<clinit>(HibernateUtil.java:24)
... 2 more
Caused by: org.dom4j.DocumentException: Error on line 14 of document  : Attribute name "i" associated with an element type "property" must be followed by the ' = ' character. Nested exception: Attribute name "i" associated with an element type "property" must be followed by the ' = ' character.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.hibernate.util.xml.MappingReader.readMappingDocument(MappingReader.java:75)
... 13 more
hibernate java xml exception --------------------编程问答-------------------- 来个大神帮我看下子啊 求解决 多谢啦 --------------------编程问答-------------------- error on line 14 of document  : Attribute name "i" associated with an element type "property" must be followed by the ' = ' character. 
你平常都不看异常信息么?
--------------------编程问答--------------------
引用 2 楼 AA5279AA 的回复:
error on line 14 of document  : Attribute name "i" associated with an element type "property" must be followed by the ' = ' character. 
你平常都不看异常信息么?
  一般看的 这个实在没看懂意思。 刚才我又找到这个蛋疼的错误。 就是在映射文件里面莫名其妙单独写了个i -- 还是谢谢你哈  挽尊帝 --------------------编程问答-------------------- 结合异常, 检查检查就看出来了。
补充:Java ,  Java EE
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,