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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • EAP_EWP 5.2.0
    • EAP_EWP 5.1.2
    • Web Services
    • None
    • 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.
    • Release Notes
    • Hide

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

      Show
      Add elementFormDefault="qualified" to the top-level schema in WSDL.
    • 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.
    • Documented as Resolved Issue
    • NEW

      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.

              rhn-support-asoldano Alessio Soldano
              rh-ee-klape Kyle Lape
              Eva Kopalova Eva Kopalova (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: