Hi,
I am using spring integration http:inbound-gateway and http:outboud-gateway.
The outbound gateway is configured with expected-response-type="Foo"
When returning the object I get the unrecognizedPropertyException.
The object I'm returning is a POJO that contains another POJO that contains another POJO.
So for example:
I did a little debugging and I noticed MappingJacksonHttpMessageConverter has no problem finding Bar. When it tries to deserialize Zoo, I get an exception. When it's creating the BeanDeserializer, it doesn't take Zoo into account.Code:public class Foo { private Collection<Bar> bar; //getters } public class Bar { private Zoo zoo; //getters } public class Zoo {...}
How can I force it to recognize Zoo? Do I need to define MappingJacksonHttpMessageConverter in some special way?
This is not a serialization issue. The objects being used are from the exact same jar both for client and server so there is no chance of a mismatch.
Thanks
Netta


Reply With Quote
