org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/json;charset=UTF-8' not supported

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert 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!

Solutions on the web

via Stack Overflow by paroxit
, 3 months ago
Content type 'application/json;charset=UTF-8' not supported
via Stack Overflow by sonoerin
, 2 years ago
Content type 'application/json;charset=UTF-8' not supported
via Stack Overflow by André Filipe Santos
, 2 years ago
Content type 'application/json;charset=UTF-8' not supported org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/json;charset=UTF-8' not supported
via Coderanch by H Paul, 10 months ago
Content type 'application/xml;charset=UTF-8' not supported
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)
at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.readWithMessageConverters(RequestResponseBodyMethodProcessor.java:149)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
2 times, 1 year ago
14 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.