Skip to content

Null pointer while handling empty SOAP Body [SWS-164] #318

Closed
@gregturn

Description

@gregturn

Arjen Poutsma opened SWS-164 and commented

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


Affects: 1.0 RC2

Referenced from: commits 45c3e8a, 2628922, 997b935

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions