You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Javier Gonzalez <ja...@gmail.com> on 2005/08/26 19:03:29 UTC

NodeImpl not found?

Hi!

I have a webservice that creates a soap response that must be sent to
the caller - so, at a given time I have a SOAPBody object that must be
set as the body of the response.

But when I do

resp.setBody(mySoapBody);

I get this:

javax.xml.soap.SOAPException: javax.xml.soap.SOAPException:
org.w3c.dom.DOMException: NodeImpl Not found
        at org.apache.axis.message.SOAPBody.setParentElement(SOAPBody.java:91)
        at org.apache.axis.message.SOAPEnvelope.setBody(SOAPEnvelope.java:308)
        at my.package.mms.mm7receiver.MessageService.echoElements(MessageService.java:105)

root cause being:

Caused by: org.w3c.dom.DOMException: NodeImpl Not found
        at org.apache.axis.message.NodeImpl.removeChild(NodeImpl.java:515)
        at org.apache.axis.message.SOAPEnvelope.removeChild(SOAPEnvelope.java:616)
        at org.apache.axis.message.NodeImpl.detachNode(NodeImpl.java:660)
        at org.apache.axis.message.NodeImpl.appendChild(NodeImpl.java:493)
        at org.apache.axis.message.NodeImpl.setParent(NodeImpl.java:791)
        at org.apache.axis.message.NodeImpl.setParentElement(NodeImpl.java:632)
        ... 32 more

This happened after switching the app from Axis 1.1 to axis 1.2, due
to 1.1's misbehaviour while dealing with mustUnderstand headers
(rejecting soap but passing message along the chain for further
processing)

Thanks in advance,

-- 
Javier Gonzalez Nicolini