Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-958

Parsing SOAP header elements in default namespace results in NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.1
    • 2.0.2
    • Soap Binding
    • None

    Description

      Sending the following SOAP message to a CXF web services results in a stack trace and a SOAP fault being returned.

      The message looks like this:

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Header>
      <test />
      </soapenv:Header>
      <soapenv:Body />
      </soapenv:Envelope>

      and the stack trace is as follows

      31/08/2007 13:31:15 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
      INFO: Interceptor has thrown exception, unwinding now
      java.lang.NullPointerException
      at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
      at org.apache.cxf.headers.HeaderManagerImpl.getHeaderProcessor(HeaderManagerImpl.java:50)
      at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:143)
      at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:57)
      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
      at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:73)
      at org.apache.cxf.transport.servlet.ServletDestination.doMessage(ServletDestination.java:78)
      at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:231)
      at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:139)
      at org.apache.cxf.transport.servlet.CXFServlet.invoke(CXFServlet.java:271)
      at org.apache.cxf.transport.servlet.CXFServlet.doPost(CXFServlet.java:249)

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            bigdan Dan Everton
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: