axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Ward <Brian.W...@BristolWest.com>
Subject org.xml.sax.SAXParseException: Illegal XML character
Date Tue, 29 Oct 2002 19:06:12 GMT
I'm encountering a deserialization error.  I have some strings (which
contain some some xml-unfriendly characters) that I am trying to return from
an axis deployed web service.  The service itself seems to be fine, but I'm
encountering errors in the Java client (using all the same axis jars) when
the data arrives.  Particularly, I'm seeing

     [java] org.xml.sax.SAXParseException: Illegal XML character:  &#x0;.
     [java]     at org.apache.axis.AxisFault.makeFault(AxisFault.java:120)
     [java]     at
org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:551)
     [java]     at org.apache.axis.Message.getSOAPEnvelope(Message.java:377)
     [java]     at org.apache.axis.client.Call.invokeEngine(Call.java:2132)
     [java]     at org.apache.axis.client.Call.invoke(Call.java:2102)
     [java]     at org.apache.axis.client.Call.invoke(Call.java:1851)
     [java]     at org.apache.axis.client.Call.invoke(Call.java:1777)
     [java]     at org.apache.axis.client.Call.invoke(Call.java:1315)
     [java]     at generated.PolkSoapBindingStub.vinDecode(Unknown Source)
     [java]     at PolkClient.main(Unknown Source)
     [java] Caused by: org.xml.sax.SAXParseException: Illegal XML character:
&#x0;.
     [java]     at
org.apache.crimson.parser.InputEntity.fatal(InputEntity.java:1100)
     [java]     at
org.apache.crimson.parser.InputEntity.parsedContent(InputEntity.java:593)
     [java]     at
org.apache.crimson.parser.Parser2.content(Parser2.java:1826)
     [java]     at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
     [java]     at
org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
     [java]     at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
     [java]     at
org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
     [java]     at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
     [java]     at
org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
     [java]     at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
     [java]     at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
     [java]     at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
     [java]     at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
     [java]     at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
     [java]     at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon
textImpl.java:232)
     [java]     at
org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:546)
     [java]     ... 8 more

I think this is a result of an ampersand in the Java string (prior to
serialization), but that's just a guess.

Does anyone have an idea of what may be wrong?

--- bhw


Mime
View raw message