You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2016/08/26 12:34:20 UTC
[jira] [Resolved] (CXF-6999) Undocumented IllegalArgumentException
thrown on getAcceptableLanguages
[ https://issues.apache.org/jira/browse/CXF-6999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Beryozkin resolved CXF-6999.
-----------------------------------
Resolution: Not A Problem
Assignee: Sergey Beryozkin
Please re-open if you can confirm RI (Jersey) reacts differently. You can also avoid the auto-conversion to Locale and convert manually
> Undocumented IllegalArgumentException thrown on getAcceptableLanguages
> ----------------------------------------------------------------------
>
> Key: CXF-6999
> URL: https://issues.apache.org/jira/browse/CXF-6999
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 3.1.0
> Reporter: Neeraj Krishna
> Assignee: Sergey Beryozkin
> Priority: Minor
>
> The following exception stack trace is observed when an user provides incorrect language header and getAcceptableLanguages is invoked in the implementation of ExceptionMapper
> err] java.lang.IllegalArgumentException: Illegal locale value : zh-Hans-VN
> 2016-08-02T09:48:39.691+0530
> [App/2]
> err
> [err] at org.apache.cxf.jaxrs.utils.HttpUtils.getLocale(HttpUtils.java:281)
> 2016-08-02T09:48:39.692+0530
> [App/2]
> err
> [err] at org.apache.cxf.jaxrs.utils.ExceptionUtils.convertFaultToResponse(ExceptionUtils.java:86)
> 2016-08-02T09:48:39.692+0530
> [App/2]
> err
> [err] at org.apache.cxf.jaxrs.impl.tl.ThreadLocalHttpHeaders.getAcceptableLanguages(ThreadLocalHttpHeaders.java:57)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)