Axis
  1. Axis
  2. AXIS-2347

setBody results in a DOMException

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.3
    • Fix Version/s: None
    • Component/s: SAAJ
    • Labels:
      None

      Description

      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.

      1. TestSOAPEnvelope.java
        2 kB
        Jayachandra Sekhara Rao Sunkara
      2. NodeImpl_setParent.patch
        0.4 kB
        Jayachandra Sekhara Rao Sunkara

        Issue Links

          Activity

            People

            • Assignee:
              Jayachandra Sekhara Rao Sunkara
              Reporter:
              Jayachandra Sekhara Rao Sunkara
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Development