org.xml.sax.SAXParseException: Premature end of file
来源:互联网 发布:手机 视频剪辑 软件 编辑:程序博客网 时间:2024/05/16 18:17
org.xml.sax.SAXParseException: Premature end of file.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1427)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1056)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
测试一下struts+hibernate 框架是否搭建成功,导入jar包,配置web.xml, 建struts.xml,hibernate,cfg.xml 文档之后,运行项目,报此bug。
------ struts.xml 文档是声明了,其他没有任何内容。于是加上标签 <struts></struts>之后就ok啦。
------hibernate.cfg.xml 文档只是声明了,没有写其他任何标签,是ok的。
调皮的试了一下
在struts 文档中加上 <dxm></dxm>,猜想一定报错,因为不是struts的标签。
Document root element "dxm", must match DOCTYPE root "struts". at (null:10:10)
org.xml.sax.SAXParseException: Document root element "dxm", must match DOCTYPE root "struts".
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
0 0
- org.xml.sax.SAXParseException: Premature end of file
- org.xml.sax.SAXParseException: Premature end of file
- java读取xml文件报“org.xml.sax.SAXParseException: Premature end of file”
- java读取xml文件报“org.xml.sax.SAXParseException: Premature end of file
- faultString: org.xml.sax.SAXParseException: Premature end of file问题解决方案
- 关于启动报错org.xml.sax.SAXParseException: Premature end of file
- SAXParseException : Premature end of file
- 解决SAXParseException: Premature end of file
- Android org.xml.sax.SAXParseException: Unexpected end of document
- xml中的Premature end of file
- Premature end of file
- Premature end of file
- Android解决异常org.xml.sax.SAXParseException: Unexpected end of document
- org.xml.sax.SAXParseException
- org.xml.sax.SAXParseException
- org.xml.sax.SAXParseException
- premature end of file错误
- DOM4J:Premature end of file
- IOS中两种退出触摸键盘的简单方法
- win7安装node.js
- IP组播及实例
- C# - How to Initialize Flags Enumerations
- 【WOW】字符编码
- org.xml.sax.SAXParseException: Premature end of file
- เล่น บาคาร่ารับสิทธิประโยชน์มากมาย
- 使用mciSendCommand实现录音
- 探索应用开发的基础之android工程目录结构
- 关于HashTable,HashMap和TreeMap的几点心得
- bmp data for OSD
- Android 代码混淆can’t find referenced class问题解决方案
- 请教高手 A a= new B();
- (一)选择题