axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Freed <efr...@metafreed.net>
Subject SAXParseException: Illegal character
Date Mon, 09 Feb 2004 22:01:57 GMT
I am trying to get an attachment from a SOAP::Lite (Perl) server, and I
am getting:

SAXParseException: Illegal character at end of document, &#x2d;

Non-attachment calls work fine. I know that &#x2d is a hyphen, so I am
guessing that there is either a stray hyphen somewhere, or (perhaps)
this is just a symptom of a larger SOAP::Lite/AXIS interoperability
problem. I can't see any stray hyphens, and I've seen people who claim
to use a SOAP::Lite server to send attachments to Axis. In other words I
am stumped. 

What am I missing? 

I'll print the stack trace below (if that sheds any light), and the
output of tcpmon:

tcpmon:

HTTP/1.1 200 OK
Date: Mon, 09 Feb 2004 21:30:28 GMT
Server: Apache/2.0.40 (Red Hat Linux)
Content-Length: 22478
Content-Type: multipart/related; type="text/xml";
start="<main_envelope>"; boundary="----------=_1076362228-30476-1"
SOAPServer: SOAP::Lite/Perl/0.60
Connection: close

Content-Type: Multipart/Related;
boundary="----------=_1076362228-30476-1"
Content-Transfer-Encoding: binary
MIME-Version: 1.0
X-Mailer: MIME-tools 5.411 (Entity 5.404)

------------=_1076362228-30476-1
Content-Type: text/xml
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
Content-Location: /main_envelope
Content-Id: <main_envelope>

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><namesp2:getsampleResponse
xmlns:namesp2="urn:SOAPtest"><png_test href="cid:cidtest"/></namesp2:getsampleResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
------------=_1076362228-30476-1
Content-Type: image/png; name="small.png"
Content-Disposition: attachment; filename="small.png"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-Mailer: MIME-tools 5.411 (Entity 5.404)
Content-Id: <cidtest>

iVBORw0KGgoAAAANSUhEUgAAAGAAAABICAYAAAAJZ/BjAAAAN3RFWHRUaXRs
ZQAvaG9tZS9lZnJlZWQvcGl4Ly50aHVtYm5haWxzLzEwMS0wMTc3X0lNRy5K
UEcucG5nvaRzRgAAABZ0RVh0U29mdHdhcmUARWVsIFRodW1ibmFpbBTsbYEA
ACAASURBVHicVLzZlhzZlab3ndEGH8I9JkQACSQykclMMkkWq8iqYrGWVOzq
......rest of attachment



stack trace:

org.xml.sax.SAXParseException: Illegal character at end of document,
&#x2d;.
AxisFault
 faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: org.xml.sax.SAXParseException: Illegal character at end of
document, &amp;#x2d;.
 faultActor:
 faultNode:
 faultDetail:
        {http://xml.apache.org/axis/}stackTrace:
org.xml.sax.SAXParseException: Illegal character at end of document,
&amp;#x2d;.
        at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3339)
        at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3333)
        at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:640)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:333)
        at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
        at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:242)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
        at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
        at org.apache.axis.client.Call.invoke(Call.java:2553)
        at org.apache.axis.client.Call.invoke(Call.java:2248)
        at org.apache.axis.client.Call.invoke(Call.java:2171)
        at org.apache.axis.client.Call.invoke(Call.java:1691)
        at Refer_axis_client.attachtest(Refer_axis_client.java:167)
        at Refer_axis_client.main(Refer_axis_client.java:95)
 
 
org.xml.sax.SAXParseException: Illegal character at end of document,
&#x2d;.
        at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:543)
        at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
        at org.apache.axis.client.Call.invoke(Call.java:2553)
        at org.apache.axis.client.Call.invoke(Call.java:2248)
        at org.apache.axis.client.Call.invoke(Call.java:2171)
        at org.apache.axis.client.Call.invoke(Call.java:1691)
        at Refer_axis_client.attachtest(Refer_axis_client.java:167)
        at Refer_axis_client.main(Refer_axis_client.java:95)
Caused by: org.xml.sax.SAXParseException: Illegal character at end of
document, &#x2d;.
        at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3339)
        at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3333)
        at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:640)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:333)
        at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
        at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:242)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
        ... 8 more


-- 
Eric Freed <efreed@metafreed.net>

Mime
View raw message