axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Veithen <andreas.veit...@gmail.com>
Subject Re: The entity name must immediately follow the '&' in the entity reference
Date Sat, 25 Jul 2009 15:27:27 GMT
Can you please check the server logs to get the complete stack trace
(including the root cause of the exception)?

Andreas

On Sat, Jul 25, 2009 at 05:52, Sumit Shah<Sumit.Shah@cgifederal.com> wrote:
> Basically this is the stack trace. It seems like the error is thrown by the
> Axis2 SOAPMessageFormatter. I do not know if this is a bug in Axis2 or
> Xerces? I would appreciate if someone could please confirm it and let me
> know if you have any suggestions for a fix.
>
> FYI..This is in Axis2 1.4
>
> Thanks
> Sumit
>
> <soapenv:Fault><faultcode>soapenv:Server</faultcode><faultstring>ParseError
> at [row,col]:[1,3137]
>
> Message: The entity name must immediately follow the '&amp;' in the entity
> reference.</faultstring><detail><Exception>org.apache.axis2.AxisFault:
> ParseError at [row,col]:[1,3137]
>
> Message: The entity name must immediately follow the '&amp;' in the entity
> reference.
>
>                 at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>
>                 at
> org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:83)
>
>                 at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:330)
>
>                 at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:213)
>
>                 at
> org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
>
>                 at
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>
>                 at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
>
>                 at
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>
>                 at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
>
>                 at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131)
>
>                 at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>
>                 at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>
>
> -----Original Message-----
> From: Sumit Shah [mailto:Sumit.Shah@cgifederal.com]
> Sent: Fri 7/24/2009 7:41 PM
> To: axis-dev@ws.apache.org; axis-user@ws.apache.org
> Subject: The entity name must immediately follow the '&' in the entity
> reference
>
> All,
>
>
>
> My SOAP envelope generated using AXIS2 contains escaped entities but the
> client tools like (SOAP UI, Eclipse, etc.) still fail with the entity error
> message:
>
>
>
> Message: The entity name must immediately follow the '&' in the entity
> reference
>
>
>
> Here is a SOAP response snippet where I have the escaped entities:
>
>
>
> <ns2:typeOfAgencyTransfer xsi:nil="true"/>
>
>
> <ns2:uniqueIdentity>&amp;3426&amp;3427&amp;1609&amp;SV&amp;MKH177902&amp;&amp;0&amp;1</ns2:uniqueIdentity>
>
>
> <ns2:updateAtHigherLevel>false</ns2:updateAtHigherLevel>
>
>
> <ns2:updateExchangeFlag>true</ns2:updateExchangeFlag>
>
>
>
>
>
> I have no clue why this should fail. Does it need to be wrapped in CDATA?
>
>
>
> Thanks
>
> Sumit
>
>
>
>
>
>
>

Mime
View raw message