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

Still need help?

The Atlassian Community is here for you.

Ask the community


Using the Chrome browser, certain functionality in Confluence can cause an Internal Server Error and throw a "java.text.ParseException" in the log files.

The following appears in the atlassian-confluence.log:

2013-07-11 11:04:37,844 ERROR [http-8091-1] [jersey.spi.container.ContainerResponse] logException Mapped exception to response: 500 (Internal Server Error)
 -- referer: | url: /rest/mywork/latest/status/notification/count | userName: anonymous java.text.ParseException: String, es-419, is not a valid language tag
    at com.sun.jersey.server.impl.model.HttpHelper.clientError(
    at com.sun.jersey.server.impl.model.HttpHelper.getAcceptLanguage(
    at com.sun.jersey.server.impl.VariantSelector.selectVariant(
    at com.sun.jersey.spi.container.ContainerRequest.selectVariant(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
Caused by: java.text.ParseException: String, es-419, is not a valid language tag
    at com.sun.jersey.core.header.LanguageTag.parse(
    at com.sun.jersey.core.header.AcceptableLanguageTag.<init>(
    at com.sun.jersey.core.header.reader.HttpHeaderReader$8.create(
    at com.sun.jersey.core.header.reader.HttpHeaderReader$8.create(
    at com.sun.jersey.core.header.reader.HttpHeaderReader.readList(
    at com.sun.jersey.core.header.reader.HttpHeaderReader.readList(
    at com.sun.jersey.core.header.reader.HttpHeaderReader.readAcceptableList(
    at com.sun.jersey.core.header.reader.HttpHeaderReader.readAcceptLanguage(
    at com.sun.jersey.server.impl.model.HttpHelper.getAcceptLanguage(
    ... 151 more


If Spanish - Latin America (es-419) is selected as the preferred language in Chrome browser this error can occur.  This bug is tracked here and has been resolved in Confluence 5.5.4.


In Chrome, please navigate to Preferences > Language and Input Settings > Ensure that Spanish (Latin America) is not the preferred language by making sure it is not at the top of the list of user languages.


Upgrade to Confluence 5.5.6 or newer. CONF-29922 - Getting issue details... STATUS

Last modified on Mar 30, 2016

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.