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

Mehrshad Setayesh mehrshad at collectiveintellect.com
Mon Dec 26 08:22:56 PST 2005


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.createSAXParseEx
ception(ErrorHandlerWrapper.java:236)    at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Error
HandlerWrapper.java:215)     at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErro
rReporter.java:386)    at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErro
rReporter.java:316)    at
com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersi
on(XMLVersionDetector.java:230)    at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con
figuration.java:798)   at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con
figuration.java:764)   at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:14
8)   at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractS
AXParser.java:1242)    at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)     at 

org.jdom.input.SAXBuilder.build(SAXBuilder.java:810)  at 

 

Regards

Mehrshad

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20051226/64e91803/attachment.htm


More information about the jdom-interest mailing list