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<[email protected]> 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 '&' 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 '&' 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:[email protected]] > Sent: Fri 7/24/2009 7:41 PM > To: [email protected]; [email protected] > 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>&3426&3427&1609&SV&MKH177902&&0&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 > > > > > > >
