Uploaded image for project: 'Axis'
  1. Axis
  2. AXIS-2824

javax.xml.soap.SOAPException: org.w3c.dom.DOMException: NodeImpl Not found

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • Any Axis 1.4 environment

    Description

      Getting a persistent exception when invoking a remote webservice. Traced through the logic and seem to be a flaw in Axis (so I think). Boils down to this:
      Create 3 MessageElements (A, B and C) all initially stand-alone without parents or children. Make A the parent of B. All is OK. Now, tell B to have C as its parent instead (reparent B to C). This blows up with the exception above. Walking through the logic, code seems to remove B from A (OK), then expects B to have a parent before it places itself onto C (never going to happen).

      TestCase:

      public void testAXISSetParent()
      throws Exception

      { // Pre final MessageElement niA = new MessageElement(); final MessageElement niB = new MessageElement(); final MessageElement niC = new MessageElement(); // Attach A to B (A parent of B) niB.setParentElement(niA); // Just confirm that everything looks the way we think it should assertSame(null, niA.getParentElement()); assertEquals(1, niA.getChildren().size()); assertSame(niA, niB.getParentElement()); assertEquals(null, niB.getChildren()); assertSame(null, niC.getParentElement()); assertEquals(null, niC.getChildren()); // Test // reparent B to C (C parent of B) niB.setParentElement(niC); // Post // A should have no children, B should be a child of C assertSame(null, niA.getParentElement()); assertEquals(0, niA.getChildren().size()); assertSame(niC, niB.getParentElement()); assertEquals(null, niB.getChildren()); assertSame(null, niC.getParentElement()); assertEquals(1, niC.getChildren().size()); }

      Attachments

        1. AxisTest.java
          1 kB
          Jeffrey Bennett

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jbennett2091 Jeffrey Bennett
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: