Axiom
  1. Axiom
  2. AXIOM-141

XPath lookup fails when applied to a SOAPEnvelope created using the SOAPFactory.getDefaultEnvelope () method

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Will add a test case to explain this more.
      The error is a NullPointerException.
      But the error does not appear when following line is added to the created envelope.

      factory.createOMDocument().addChild(envelope);

      1. XPathTest1.java
        2 kB
        Chamikara Jayalath

        Activity

        Hide
        Chamikara Jayalath added a comment -

        Out of the two test methods.
        testDocumentNotAdded() is failing.
        But testDocumentNotAdded () is not failing.

        The only difference is following line.
        factory.createOMDocument().addChild(envelope);

        Show
        Chamikara Jayalath added a comment - Out of the two test methods. testDocumentNotAdded() is failing. But testDocumentNotAdded () is not failing. The only difference is following line. factory.createOMDocument().addChild(envelope);
        Hide
        Eran Chinthaka added a comment -

        Fixed in the latest svn.

        Show
        Eran Chinthaka added a comment - Fixed in the latest svn.
        Hide
        Hudson added a comment -

        Integrated in ws-axiom-trunk #804 (See https://builds.apache.org/job/ws-axiom-trunk/804/)
        AXIOM-311: Moved the regression test for AXIOM-141 to the new test suite. (Revision 1294381)

        Result = SUCCESS
        veithen :
        Files :

        • /webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/test/java/org/apache/axiom/soap/impl/dom/SOAPImplementationTest.java
        • /webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/xpath/XPathAppliedToSOAPEnvelopeTest.java
        • /webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/SOAPTestSuiteBuilder.java
        • /webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/xpath
        • /webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/xpath/TestXPathAppliedToSOAPEnvelope.java
        Show
        Hudson added a comment - Integrated in ws-axiom-trunk #804 (See https://builds.apache.org/job/ws-axiom-trunk/804/ ) AXIOM-311 : Moved the regression test for AXIOM-141 to the new test suite. (Revision 1294381) Result = SUCCESS veithen : Files : /webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/test/java/org/apache/axiom/soap/impl/dom/SOAPImplementationTest.java /webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/xpath/XPathAppliedToSOAPEnvelopeTest.java /webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/SOAPTestSuiteBuilder.java /webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/xpath /webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/xpath/TestXPathAppliedToSOAPEnvelope.java

          People

          • Assignee:
            Eran Chinthaka
            Reporter:
            Chamikara Jayalath
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development