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

Null pointer while handling empty SOAP Body

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0 RC2
    • Fix Version/s: 1.0.1
    • Component/s: Core
    • Labels:
      None

      Description

      I get a NullPointer exception when I issue a web service request with an empty input message. This results in an empty soap body which is totally legal (and works with other webservice frameworks)

      With Spring-WS I get a NullPointerException. This is caused by the fact that a null object is sent to the transformer. IMO a check should be build in that does no transformation when there is an empty payload.

      I know that I can get around this by implementing the MessageEndpoint interface but then I loose the transformation functionality e.d. I guess sending an empty message is normal functionality

      Anyway, there is a workaround but it is a bit annoying

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: