javax.ws.rs.WebApplicationException: java.text.ParseException: String, es-419, is not a valid language tag

Atlassian JIRA | Andre Quadros Petry | 3 years ago
  1. 0

    If using _Spanish - Latin America (es-419)_ as preferred language in Google Chrome browser, some functionalities in JIRA can cause a _500 Internal Server Error_, as the following: {noformat} 2013-06-12 09:33:46,648 http-bio-9060-exec-11 ERROR admin 573x398x1 15465ge 127.0.0.1 /rest/project-templates/1.0/templates [jersey.spi.container.ContainerResponse] Mapped exception to response: 500 (Internal Server Error) javax.ws.rs.WebApplicationException: java.text.ParseException: String, es-419, is not a valid language tag at com.sun.jersey.server.impl.model.HttpHelper.clientError(HttpHelper.java:265) at com.sun.jersey.server.impl.model.HttpHelper.getAcceptLanguage(HttpHelper.java:222) at com.sun.jersey.server.impl.VariantSelector.selectVariant(VariantSelector.java:290) at com.sun.jersey.spi.container.ContainerRequest.selectVariant(ContainerRequest.java:679) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) <+2> (NativeMethodAccessorImpl.java:39) (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) <+1> (WebApplicationImpl.java:287) at com.sun.proxy.$Proxy1948.selectVariant(Unknown Source) <+3> (Status.java:347) (SecurityExceptionMapper.java:23) (SecurityExceptionMapper.java:15) at com.sun.jersey.spi.container.ContainerResponse.mapException(ContainerResponse.java:452) <+5> (WebApplicationImpl.java:1406) (WebApplicationImpl.java:1349) (WebApplicationImpl.java:1339) (WebComponent.java:416) (ServletContainer.java:537) ... Caused by: java.text.ParseException: String, es-419, is not a valid language tag at com.sun.jersey.core.header.LanguageTag.parse(LanguageTag.java:122) at com.sun.jersey.core.header.AcceptableLanguageTag.<init>(AcceptableLanguageTag.java:69) at com.sun.jersey.core.header.reader.HttpHeaderReader$8.create(HttpHeaderReader.java:418) at com.sun.jersey.core.header.reader.HttpHeaderReader$8.create(HttpHeaderReader.java:416) at com.sun.jersey.core.header.reader.HttpHeaderReader.readList(HttpHeaderReader.java:465) at com.sun.jersey.core.header.reader.HttpHeaderReader.readAcceptableList(HttpHeaderReader.java:436) at com.sun.jersey.core.header.reader.HttpHeaderReader.readAcceptLanguage(HttpHeaderReader.java:423) <+1> (HttpHelper.java:220) {noformat} We have a KB suggesting a workaround for this: https://confluence.atlassian.com/display/JIRAKB/500+Internal+Server+Error+due+to+ParseException+es-419+is+not+a+valid+language+tag

    Atlassian JIRA | 3 years ago | Andre Quadros Petry
    javax.ws.rs.WebApplicationException: java.text.ParseException: String, es-419, is not a valid language tag
  2. 0

    500 Internal Server Error due to ParseException es-419 is not a valid language tag - Atlassian Documentation

    atlassian.com | 5 months ago
    javax.ws.rs.WebApplicationException: java.text.ParseException: String, es-419, is not a valid language tag
  3. 0

    Using Chrome, Getting 500 Internal Server Error due to ParseException es-419 is not a Valid Language Tag - Atlassian Documentation

    atlassian.com | 4 months ago
    javax.ws.rs.WebApplicationException: java.text.ParseException: String, es-419, is not a valid language tag
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    If using _Spanish - Latin America (es-419)_ as preferred language in Google Chrome browser, some functionalities in JIRA can cause a _500 Internal Server Error_, as the following: {noformat} 2013-06-12 09:33:46,648 http-bio-9060-exec-11 ERROR admin 573x398x1 15465ge 127.0.0.1 /rest/project-templates/1.0/templates [jersey.spi.container.ContainerResponse] Mapped exception to response: 500 (Internal Server Error) javax.ws.rs.WebApplicationException: java.text.ParseException: String, es-419, is not a valid language tag at com.sun.jersey.server.impl.model.HttpHelper.clientError(HttpHelper.java:265) at com.sun.jersey.server.impl.model.HttpHelper.getAcceptLanguage(HttpHelper.java:222) at com.sun.jersey.server.impl.VariantSelector.selectVariant(VariantSelector.java:290) at com.sun.jersey.spi.container.ContainerRequest.selectVariant(ContainerRequest.java:679) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) <+2> (NativeMethodAccessorImpl.java:39) (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) <+1> (WebApplicationImpl.java:287) at com.sun.proxy.$Proxy1948.selectVariant(Unknown Source) <+3> (Status.java:347) (SecurityExceptionMapper.java:23) (SecurityExceptionMapper.java:15) at com.sun.jersey.spi.container.ContainerResponse.mapException(ContainerResponse.java:452) <+5> (WebApplicationImpl.java:1406) (WebApplicationImpl.java:1349) (WebApplicationImpl.java:1339) (WebComponent.java:416) (ServletContainer.java:537) ... Caused by: java.text.ParseException: String, es-419, is not a valid language tag at com.sun.jersey.core.header.LanguageTag.parse(LanguageTag.java:122) at com.sun.jersey.core.header.AcceptableLanguageTag.<init>(AcceptableLanguageTag.java:69) at com.sun.jersey.core.header.reader.HttpHeaderReader$8.create(HttpHeaderReader.java:418) at com.sun.jersey.core.header.reader.HttpHeaderReader$8.create(HttpHeaderReader.java:416) at com.sun.jersey.core.header.reader.HttpHeaderReader.readList(HttpHeaderReader.java:465) at com.sun.jersey.core.header.reader.HttpHeaderReader.readAcceptableList(HttpHeaderReader.java:436) at com.sun.jersey.core.header.reader.HttpHeaderReader.readAcceptLanguage(HttpHeaderReader.java:423) <+1> (HttpHelper.java:220) {noformat} We have a KB suggesting a workaround for this: https://confluence.atlassian.com/display/JIRAKB/500+Internal+Server+Error+due+to+ParseException+es-419+is+not+a+valid+language+tag

    Atlassian JIRA | 3 years ago | Andre Quadros Petry
    javax.ws.rs.WebApplicationException: java.text.ParseException: String, es-419, is not a valid language tag
  6. 0

    [CONF-29922] Incompatibility with Spanish Latin America Language in Chrome shows as 500 Internal Server Error - Atlassian JIRA

    atlassian.com | 1 year ago
    javax.ws.rs.WebApplicationException: java.text.ParseException: , es-419, is not a valid language tag

    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. javax.ws.rs.WebApplicationException

      java.text.ParseException: String, es-419, is not a valid language tag

      at com.sun.jersey.server.impl.model.HttpHelper.clientError()
    2. Jersey
      ContainerRequest.selectVariant
      1. com.sun.jersey.server.impl.model.HttpHelper.clientError(HttpHelper.java:265)
      2. com.sun.jersey.server.impl.model.HttpHelper.getAcceptLanguage(HttpHelper.java:222)
      3. com.sun.jersey.server.impl.VariantSelector.selectVariant(VariantSelector.java:290)
      4. com.sun.jersey.spi.container.ContainerRequest.selectVariant(ContainerRequest.java:679)
      4 frames