java.nio.charset.IllegalCharsetNameException: "utf-8"

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

Solutions on the web

via Spring JIRA by Taras Tielkes, 1 year ago
"utf-8"
via Spring JIRA by Taras Tielkes, 1 year ago
"utf-8"
via Stack Overflow by Mark C
, 2 years ago
via jmeter-user by Leonardo Nc, 1 year ago
java.nio.charset.IllegalCharsetNameException: "utf-8"
at java.nio.charset.Charset.checkName(Charset.java:284)
at java.nio.charset.Charset.lookup2(Charset.java:458)
at java.nio.charset.Charset.lookup(Charset.java:437)
at java.nio.charset.Charset.forName(Charset.java:502)
at org.springframework.http.MediaType.checkParameters(MediaType.java:300)
at org.springframework.http.MediaType.(MediaType.java:266)
at org.springframework.http.MediaType.parseMediaType(MediaType.java:570)
at org.springframework.http.HttpHeaders.getContentType(HttpHeaders.java:286)
at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:64)
at org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:619)
at org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:1)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:446)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:401)

Users with the same issue

You are the first who have seen this exception.

Write tip

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