Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-9457

NullPointerException in CXF DOMUtils when soap header contains null namespace element

    Details

    • Steps to Reproduce:
      Hide

      Create a web service that uses a header similar to the one in the description.

      Show
      Create a web service that uses a header similar to the one in the description.
    • Affects:
      Release Notes
    • Workaround Description:
      Hide

      Add elementFormDefault="qualified" to the top-level schema in WSDL.

      Show
      Add elementFormDefault="qualified" to the top-level schema in WSDL.
    • Release Notes Text:
      Hide
      Due to an issue in a DOM utility class, the procedure for finding children of a soap element by their tag name was failing and returned a NullPointerException when the soap element had the null namespace. With the update, the parsing process has been fixed and the search process completes successfully.
      Show
      Due to an issue in a DOM utility class, the procedure for finding children of a soap element by their tag name was failing and returned a NullPointerException when the soap element had the null namespace. With the update, the parsing process has been fixed and the search process completes successfully.
    • Release Notes Docs Status:
      Documented as Resolved Issue
    • Docs QE Status:
      NEW

      Description

      When ReadHeaderInterceptor processes the following inbound SOAP message, DOMUtils throws a NullPointerException for the null namespace Header element:

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:foo="http://cxf.apache.org/foo" xmlns:bar="http://cxf.apache.org/bar">
        <soapenv:Header>
          <foo:myheader>
            <Header>
              <bar:type>mytype</head:type>
            </Header>
          </foo:myheader>
        </soapenv:Header>
        ...
      

      A NPE guard is needed.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  asoldano Alessio Soldano
                  Reporter:
                  klape Kyle Lape
                  Writer:
                  Eva Kopalova
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: