You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Atul <te...@gmail.com> on 2004/07/08 20:57:06 UTC

org.xml.sax.SAXParseException: Premature end of file with xerces-j-2.6.2

Hi, I am getting an exception when axis1.2 is trying to parse (not even
validating) xml data when I upgraded to xerces-j-2.6.2 (2/27/04) !

AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXParseException: Premature end of file.
faultActor:
faultNode:
faultDetail:
       {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException:
Premature
end of file.
       at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
So
urce)
       at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
       at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
       at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
       at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown
Source)

       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
       at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
       at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
       at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
       at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCont
extImpl.java:218)
       at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:646)

My XML data includes namespaces. if I include attributes for the
elements, it exceptions out. e.g.
<myNS:qry id="1" xmlns:myNS="uri">
----------      does not work

Any prompt help is really appreciated.

thx

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org