Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

[jdom-interest] Error on line -1: Premature end of file

Mehrshad Setayesh

2005-12-26

Replies:

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

 

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.