Announcement Announcement Module
No announcement yet.
Deserialization of object fails 415 (Unsupported Media Type) Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Deserialization of object fails 415 (Unsupported Media Type)

    I Have a Spring 3.1.2 MVC REST controller using Hibernate 4 Jackson 2

    I have a method

    public @ResponseBody Map<String,? extends Object> updateCase(@RequestBody CasdDTOWrapper data) throws Exception {



    which has to read data of type CasdDTOWrapper but deserialization fails in

    MappingJackson2HttpMessageConverter [ this.objectMapper.canDeserialize(javaType) returns false]

    @JsonAutoDetect(fieldVisibility=JsonAutoDetect.Vis ibility.ANY)

    public class CasdDTOWrapper {

    private CasdDTO data;

    public CasdDTO getData() {

    return data;



    public void setData(CasdDTO data) { = data;



    Do i have to add some specific annotations ??