Announcement Announcement Module
Collapse
No announcement yet.
org.codehaus.jackson.map.exc.UnrecognizedPropertyE xception: Unrecognized field Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • org.codehaus.jackson.map.exc.UnrecognizedPropertyE xception: Unrecognized field

    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:

    Code:
        public class Foo {
           private Collection<Bar> bar;
           //getters
        }
    
        public class Bar {
           private Zoo zoo;
            //getters
        }
    
        public class Zoo {...}
    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.

    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
Working...
X