setBody results in a DOMException
---------------------------------

         Key: AXIS-2347
         URL: http://issues.apache.org/jira/browse/AXIS-2347
     Project: Apache Axis
        Type: Bug
  Components: SAAJ  
    Versions: 1.3    
    Reporter: Jayachandra Sekhara Rao Sunkara
 Assigned to: Jayachandra Sekhara Rao Sunkara 


The act of detaching the body of a soap envelope and trying to set its body 
with a new soap body results in following Exception

javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: org.w3c.dom.DOMExcep
tion: NodeImpl Not found
        at org.apache.axis.message.SOAPBody.setParentElement(SOAPBody.java :91)
        at org.apache.axis.message.SOAPEnvelope.setBody(SOAPEnvelope.java:309)
        at mytest.soapenvelope.TestSOAPEnvelope.setBody(TestSOAPEnvelope.java:16
)
        at mytest.soapenvelope.TestSOAPEnvelope.main (TestSOAPEnvelope.java:40)
Caused by: javax.xml.soap.SOAPException: org.w3c.dom.DOMException: NodeImpl Not
found
        at org.apache.axis.message.NodeImpl.setParentElement(NodeImpl.java:634)
        at org.apache.axis.message.SOAPBody.setParentElement (SOAPBody.java:88)
        ... 3 more
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:61
7)
        at org.apache.axis.message.NodeImpl.detachNode(NodeImpl.java:661)
        at org.apache.axis.message.NodeImpl.appendChild(NodeImpl.java:493)
        at org.apache.axis.message.NodeImpl.setParent (NodeImpl.java:792)
        at org.apache.axis.message.NodeImpl.setParentElement(NodeImpl.java:632)
        ... 4 more

Attached test case (TestSOAPEnvelope.java) describes the scenario.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to