Description
Oyvind Kvien opened INT-997 and commented
Spring Integration should support null payloads.
A common case is when using legacy services in a service-activator. The service might return null, and I don't want to refactor it as it's been running stable for years. If Spring Integration don't support null payloads I'll be forced the create a wrapper around it to control it's return type, which is poor design.
Another common case is when using an XmlPayloadUnmarshallingTransformer, like this:
<si-xml:unmarshalling-transformer input-channel="freeTextSearchResponseChannel" unmarshaller="freeTextSearchUnmarshaller"/>
It receives XML from channel "freeTextSearchResponseChannel" and unmarshals it. If the XML is invalid the transformer will return null based on which unmarsller you pick. This will cause the message payload to be null.
Affects: 1.0.3
Reference URL: http://forum.springsource.org/showthread.php?t=85345
Issue Links:
- Add support for null return values in gateway/service-activator methods [INT-2222] #6203 Add support for null return values in gateway/service-activator methods
8 votes, 7 watchers