org.springframework.web.HttpMediaTypeNotSupportedException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Check if your DTO has a default constructor with getters and setters. Check as well if you have more than one @JsonBackReference in the same class and if there's a @JsonManagedReference that matches it!

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • spring mvc post refuses json
    via Stack Overflow by sonoerin
    ,
  • SpringMVC JSON unsupported type
    via Stack Overflow by sonoerin
    ,
  • SendSchema API error
    via symmetricds by omri-n
    ,
    • org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/json;charset=UTF-8' not supported at org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodArgumentResolver.readWithMessageConverters(AbstractMessageConverterMethodArgumentResolver.java:235)[spring-webmvc-4.3.2.RELEASE.jar:4.3.2.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.readWithMessageConverters(RequestResponseBodyMethodProcessor.java:149)[spring-webmvc-4.3.2.RELEASE.jar:4.3.2.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.resolveArgument(RequestResponseBodyMethodProcessor.java:127)[spring-webmvc-4.3.2.RELEASE.jar:4.3.2.RELEASE]

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    tomthomas
    12 times, last one,
    11 more bugmates