Uploaded image for project: 'JBoss Enterprise Application Platform 6'
  1. JBoss Enterprise Application Platform 6
  2. JBPAPP6-1342

NullPointerException in CXF DOMUtils when soap header contains null namespace element

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Migrated to another ITS
    • Affects Version/s: EAP 6.0.0
    • Fix Version/s: TBD EAP 6
    • Component/s: Web Services
    • Labels:
      None
    • 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.
    • Workaround Description:
      Hide

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

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

      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:
                  klape Kyle Lape
                  Reporter:
                  klape Kyle Lape
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: