草庐IT

Premature

全部标签

java - org.xml.sax.SAXParseException : Premature end of file for *VALID* XML

我越来越奇怪“文件过早结束”。最近几天在我们的一台服务器上异常(exception)。same配置XML在另一台服务器上工作正常。我们在这两台服务器上都使用Tomcat5.0.28。这段代码已经工作了很长时间(7年以上),只是在最近的服务器崩溃之后,我们在其中一台服务器上遇到了这个问题。XML和Java解析代码没有变化。:(我能看到的唯一区别是Java版本-问题服务器java版本“1.6.0_16”Java(TM)SE运行时环境(build1.6.0_16-b01)JavaHotSpot(TM)64位服务器VM(内部版本14.2-b01,混合模式)工作服务器java版本“1.6.0_0

org.apache.http.ConnectionClosedException Premature end of Content-Length delimited message body

最近生产环境报了这个系统异常:org.apache.http.ConnectionClosedExceptionPrematureendofContent-Lengthdelimitedmessagebody(expected107915;received40177)查看日志后发现是下载文件的时候出错。具体的代码如下:StringEntityentityParams=newStringEntity(requestXml,"utf-8"); HttpPosthttpPost=newHttpPost(serverUrl); httpPost.setEntity(entityParams);

org.apache.http.ConnectionClosedException Premature end of Content-Length delimited message body

最近生产环境报了这个系统异常:org.apache.http.ConnectionClosedExceptionPrematureendofContent-Lengthdelimitedmessagebody(expected107915;received40177)查看日志后发现是下载文件的时候出错。具体的代码如下:StringEntityentityParams=newStringEntity(requestXml,"utf-8"); HttpPosthttpPost=newHttpPost(serverUrl); httpPost.setEntity(entityParams);