|
return this.objectMapper.readValue(payload.toString(), javaType); |
Given object with usual toString implementation (for example Foo(field1=SomeString) and sending it to messageChannel using MessageBuilder#withPayload factory method results in above mentioned line to be executed, which predictably throws