Neeraj Krishna created CXF-6999:
-----------------------------------
Summary: 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
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)