java.nio.charset.IllegalCharsetNameException: UTF-8 at java.nio.charset.Charset.checkName(Charset.java(Compiled Code)) at java.nio.charset.Charset.lookup(Charset.java(Compiled Code)) at java.nio.charset.Charset.forName(Charset.java(Inlined Compiled Code)) at java.lang.StringCoding$DecoderCache.makeDecoder(StringCoding.java(Compiled Code)) at java.lang.StringCoding$1.run(StringCoding.java(Compiled Code))

Oracle Community | 639481 | 8 years ago
  1. 0

    java.nio.charset.IllegalCharsetNameException: UTF-8

    Oracle Community | 8 years ago | 639481
    java.nio.charset.IllegalCharsetNameException: UTF-8 at java.nio.charset.Charset.checkName(Charset.java(Compiled Code)) at java.nio.charset.Charset.lookup(Charset.java(Compiled Code)) at java.nio.charset.Charset.forName(Charset.java(Inlined Compiled Code)) at java.lang.StringCoding$DecoderCache.makeDecoder(StringCoding.java(Compiled Code)) at java.lang.StringCoding$1.run(StringCoding.java(Compiled Code))
  2. 0

    2.0: Windows import.bat doesn't run

    GitHub | 3 years ago | craigbrett17
    java.nio.charset.IllegalCharsetNameException: UTF-8 -Xmx4G -Xms4G
  3. 0

    Exploring Lift in IntelliJ IDEA

    Google Groups | 5 years ago | Anton Andriyevskyy
    java.nio.charset.IllegalCharsetNameException: UTF-8 -Xss8M -Xmx1G -noverify -XX: +CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:MaxPermSize=512M
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    charset header with quotes gives an error

    GitHub | 3 years ago | bangnab
    java.nio.charset.IllegalCharsetNameException: "UTF-8"
  6. 0

    Accoring to RFC 2045, the following is a valid content type response header: ---- Content-Type: application/xml;charset="utf-8" ---- Trying to access a resource that serves such a header (through RestTemplate) throws the following exception: ---- Exception in thread "main" 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.<init>(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) at org.springframework.web.client.RestTemplate.getForEntity(RestTemplate.java:221) <...user code...> ---- I assume MediaType is simply missing the logic to optionally unwrap the value.

    Spring JIRA | 7 years ago | Taras Tielkes
    java.nio.charset.IllegalCharsetNameException: "utf-8"

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.nio.charset.IllegalCharsetNameException

      UTF-8 at java.nio.charset.Charset.checkName(Charset.java(Compiled Code)) at java.nio.charset.Charset.lookup(Charset.java(Compiled Code)) at java.nio.charset.Charset.forName(Charset.java(Inlined Compiled Code)) at java.lang.StringCoding$DecoderCache.makeDecoder(StringCoding.java(Compiled Code)) at java.lang.StringCoding$1.run(StringCoding.java(Compiled Code))

      at java.security.AccessController.doPrivileged1()
    2. Java RT
      AccessController.doPrivileged1
      1. java.security.AccessController.doPrivileged1(Native Method)
      1 frame