You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by "Jeffrey Bennett (JIRA)" <ax...@ws.apache.org> on 2010/03/19 19:34:27 UTC

[jira] Updated: (AXIS-2824) javax.xml.soap.SOAPException: org.w3c.dom.DOMException: NodeImpl Not found

     [ https://issues.apache.org/jira/browse/AXIS-2824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeffrey Bennett updated AXIS-2824:
----------------------------------

    Attachment: AxisTest.java

> javax.xml.soap.SOAPException: org.w3c.dom.DOMException: NodeImpl Not found
> --------------------------------------------------------------------------
>
>                 Key: AXIS-2824
>                 URL: https://issues.apache.org/jira/browse/AXIS-2824
>             Project: Axis
>          Issue Type: Bug
>         Environment: Any Axis 1.4 environment
>            Reporter: Jeffrey Bennett
>         Attachments: AxisTest.java
>
>
> 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());
>    }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org