SAXException: Unexpected end of file after null

Posted by itsadok on Stack Overflow See other posts from Stack Overflow or by itsadok
Published on 2009-07-02T05:28:53Z Indexed on 2010/03/09 6:21 UTC
Read the original article Hit count: 421

Filed under:
|
|

I'm getting the error in the title occasionally from a process the parses lots of XML files.

The files themselves seem OK, and running the process again on the same files that generated the error works just fine.

The exception occurs on a call to XMLReader.parse(InputStream is)

Could this be a bug in the parser (I use piccolo)? Or is it something about how I open the file stream?

No multithreading is involved.

Piccolo seemed like a good idea at the time, but I don't really have a good excuse for using it. I will to try to switch to the default SAX parser and see if that helps.

Update: It didn't help, and I found that Piccolo is considerably faster for some of the workloads, so I went back.

© Stack Overflow or respective owner

Related posts about java

Related posts about Xml