Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-241

NullPointerException during processing message with empty body

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.2
    • Fix Version/s: 1.5 M1, 1.0.3
    • Component/s: XML
    • Labels:
      None
    • Environment:
      Linux, JBoss AS 4.2.1

      Description

      When I'm sending message with empty body, i receive this exception:

      java.lang.NullPointerException
      org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:418)
      org.springframework.ws.server.endpoint.support.PayloadRootUtils.getPayloadRootQName(PayloadRootUtils.java:83)
      org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping.getLookupKeyForMessage(PayloadRootAnnotationMethodEndpointMapping.java:57)
      org.springframework.ws.server.endpoint.mapping.AbstractMethodEndpointMapping.getEndpointInternal(AbstractMethodEndpointMapping.java:54)
      org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping.getEndpoint(AbstractEndpointMapping.java:83)
      org.springframework.ws.server.MessageDispatcher.getEndpoint(MessageDispatcher.java:242)
      org.springframework.ws.server.MessageDispatcher.dispatch(MessageDispatcher.java:195)
      org.springframework.ws.server.MessageDispatcher.receive(MessageDispatcher.java:162)
      org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport.handleConnection(WebServiceMessageReceiverObjectSupport.java:87)
      org.springframework.ws.transport.http.WebServiceMessageReceiverHandlerAdapter.handle(WebServiceMessageReceiverHandlerAdapter.java:57)
      org.springframework.ws.transport.http.MessageDispatcherServlet.doService(MessageDispatcherServlet.java:197)
      org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)
      org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:441)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:63)
      org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      And message causing this:
      <soapenv:Envelope
      xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:q0="http://nevermind"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <soapenv:Header>
      <q0:sessionId>0PPAacL8UUACtCG7kdBp6MfNQ47FwUZd</q0:sessionId>
      </soapenv:Header>
      <soapenv:Body></soapenv:Body>
      </soapenv:Envelope>

        Activity

        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        Closing issues for 1.5.0 M1

        Show
        arjen.poutsma Arjen Poutsma added a comment - Closing issues for 1.5.0 M1

          People

          • Assignee:
            arjen.poutsma Arjen Poutsma
            Reporter:
            macieq Maciej Majewski
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: