[jdom-interest] Error on line -1: Premature end of file
tballen at Copart.Com
tballen at Copart.Com
Mon Dec 26 12:08:25 PST 2005
I have seen this error on our Tomcat sever running on Unix when the
content/type is not set correctly to "text/xml" or "application/xml"
on the POST request.
Tomcat running on Windows does not throw this error.
Todd
At 11:22 AM 12/26/2005, Mehrshad Setayesh wrote:
>Hi:
>
>Every once in a while, I get the following exception when trying to
>read in my XML file. The file looks ok and seems to be valid. Any
>hints would be appreciated.
>
>Caused by: org.xml.sax.SAXParseException: Premature end of file. at
>com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
>at
>com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
>at
>com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
>at
>com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
>at
>com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:230)
>at
>com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:798)
>at
>com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
>at
>com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
>at
>com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
>at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453) at
>org.jdom.input.SAXBuilder.build(SAXBuilder.java:810) at
>
>Regards
>Mehrshad
More information about the jdom-interest
mailing list