[ERROR]Premature end of file
原因:
解析xml文档时,文件已经从头读到了尾.
在解析前遍历输出xml文档内容.
解决办法:再重建对象.
说明:解析前调用InputStream.reset()方法,不报错,但是不能解决此问题.
Repositions this stream to the position at the time the mark method was last called on this input stream.
org.xml.sax.SAXParseException: Premature end of file.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.dom4j.io.SAXReader.read(SAXReader.java:465)
at org.dom4j.io.SAXReader.read(SAXReader.java:343)
分享到:
相关推荐
caffe 官网的一些翻译,有兴趣的同学可以参考下
今天帮客户配置服务器,访问php的时候提示PHP Parse Error: syntax error, unexpected $end 错误,通过查找找到了问题,特分享下
解压cpio文件 。
一个基于java FDTD 电磁3D计算代码。
查看apache日志,发觉是mod_fcgid模块异常,提示”Connection reset by peer:mod_fcgid:error reading data from FastCGI server”、”Premature end of script headers:index.php”、”process /usr/… apache/cgi-...
解决Failed to connect to remote VM com.sun.jdi.connect.spi.ClosedConnectionException错误,tomcat远程调试
此版本解决dpkg报错dpkg-deb: error: archive 'device-tree-compiler_1.4.5-3_amd64.deb' has premature member 'control.tar.xz' before 'control.tar.gz' bug
Discusses the dangers of premature optimization and how it can add complexity to your code Looks at waterfall views at the front end of a website, which show the order in which the browser is ...
fields at the end of some of the subtables. The disassembler now emits a comment if a buffer appears to be a ResourceTemplate, but cannot be disassembled as such because the EndTag does not appear at...
(PSO) currently, these are not concerned with the information of every particle's dimensional vector. A visual modeling method describing particle's dimensional vector behavior is presented in this ...
15.11 premature termination of client or server 390 15.12 summary 397 chapter 16. sun rpc 16.1 introduction 399 16.2 multithreading 407 16.3 server binding 411 16.4 authentication 414 16.5 ...
a nonlinear transformation which transforms every residual error signal to a set of three states pulse-code train relative to the original ECG signal. The pulse-code train has the advantage of easy ...
automatic detection of premature complex in ecg using wavelet features and fuzzy hybrid neural network.
a premature failure of the whole battery. Cell balancing is a way of compensating for these weaker cells by equalizing the charge on all the cells in the chain, thus extending the battery life.
DBT3514W The db2prereqcheck utility failed to find the following 32-bit library file: "/lib/i386-libpam.so" 解决方法: sudo dpkg --force-architecture -i libpam0g_1.1.8-3.6ubuntu2_i386.deb sudo ln -s /...
A malfunction in these components or boards can occur immediately or the apparatus may perform for weeks, months, or even years before an unpredictable and premature breakdown causes a field failure.
however, PSO is easy to get trapped in local extremum, to have premature convergence or stagnation. In order to help PSO strike a balance between individual diversity and swarm convergence, this ...
At the end of the paper research the improved particle swarm algorithm in the application of the BP neural network. First this paper introduces the principle of artificial neural network and based on ...
Model interactions as simply as possible to avoid premature optimization, Create well-defined interactions, and know exactly what failures can occur, Learn why you should never treat actors as you ...
8:From Premature Semantics to Mature Interaction Programming 9:Performance Evaluation of Interactive Systems with Interactive Cooperative Objects Models PART IV:Human Behaviour 10:Interaction as an ...