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

NPE thrown from MAPAggregatorImpl when replyto is non-anonymous and faultto doesn't exists

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.4
    • Fix Version/s: 3.2.5
    • Component/s: WS-* Components
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      MAPAggregatorImpl checks the following Soap message and throws NPE :
      <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">

      <S:Header>
      <To xmlns="http://www.w3.org/2005/08/addressing">http://localhost:8080/AddNumbers4</To>
      <MessageID xmlns="http://www.w3.org/2005/08/addressing">uuid:b962c6ff-708d-4b4b-8158-dff3f13d17b6</MessageID>
      <ReplyTo xmlns="http://www.w3.org/2005/08/addressing"><Address>http://localhost:1025/NonAnonymous</Address></ReplyTo>
      <Action xmlns="http://www.w3.org/2005/08/addressing">http://example.com/action/add</Action>
      </S:Header>

      <S:Body><addNumbers xmlns="http://example.com/"><number1>10</number1><number2>10</number2></addNumbers></S:Body></S:Envelope>

      java.lang.NullPointerException
      at org.apache.cxf.ws.addressing.impl.MAPAggregatorImpl.checkAddressingResponses(MAPAggregatorImpl.java:580)
      at org.apache.cxf.ws.addressing.impl.MAPAggregatorImpl.mediate(MAPAggregatorImpl.java:451)
      at org.apache.cxf.ws.addressing.impl.MAPAggregatorImpl.handleMessage(MAPAggregatorImpl.java:143)
      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
      at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
      at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:267)
      at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:110)
      at org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:134)
      at org.jboss.wsf.stack.cxf.CXFServletExt.invoke(CXFServletExt.java:88)
      at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:301)
      at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:220)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      at org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:136)
      at org.jboss.wsf.spi.deployment.WSFServlet.service(WSFServlet.java:140)

        Attachments

          Activity

            People

            • Assignee:
              ema Jim Ma
              Reporter:
              ema Jim Ma
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: