Skip to content

Support for null payloads. [INT-997] #5004

Open
@spring-operator

Description

@spring-operator

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:

8 votes, 7 watchers

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions