I saw a strange problem where one of the XMLBeans parse functions failed intermittently when parsing the input stream of an HTTP request. The exception is:
Caused by: org.xml.sax.SAXParseException: Unexpected end of file after null
at com.bluecast.xml.Piccolo.reportFatalError(Piccolo.java:1003)
at com.bluecast.xml.Piccolo.reportFatalError(Piccolo.java:990)
at com.bluecast.xml.Piccolo.yyerror(Piccolo.java:1302)
at com.bluecast.xml.Piccolo.yyparse(Piccolo.java:1403)
at com.bluecast.xml.Piccolo.parse(Piccolo.java:702)
at com.bea.xbean.store.Root$SaxLoader.load(Root.java:735)
... 29 more
A quick web search revealed that others had hit this too:
Apache JIRA issue XMLBEANS-226: Exception "Unexpected end of file after null"