Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 374AC200B6A for ; Mon, 8 Aug 2016 03:46:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 35FC8160A87; Mon, 8 Aug 2016 01:46:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8CF49160AB4 for ; Mon, 8 Aug 2016 03:46:21 +0200 (CEST) Received: (qmail 61107 invoked by uid 500); 8 Aug 2016 01:46:20 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 61012 invoked by uid 99); 8 Aug 2016 01:46:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2016 01:46:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9E8AC2C0D5D for ; Mon, 8 Aug 2016 01:46:20 +0000 (UTC) Date: Mon, 8 Aug 2016 01:46:20 +0000 (UTC) From: "Neeraj Krishna (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CXF-6999) Undocumented IllegalArgumentException thrown on getAcceptableLanguages MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 08 Aug 2016 01:46:22 -0000 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)