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

症状

Certain functionality in JIRA can cause an Internal Server Error and throw a java.text.ParseException in the log files.

The following appears in the atlassian-jira.log:

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)
 

原因

This error was caused due to a bug on JIRA versions prior to 6.3.1, if Spanish - Latin America (es-419) is selected as the preferred language in Chrome browser. 

JRA-33686 - 課題詳細を取得中... ステータス

Work-around

  • 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.

最終更新日 2016 年 3 月 30 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.