Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2BBBE11E01 for ; Mon, 23 Jun 2014 11:10:25 +0000 (UTC) Received: (qmail 42774 invoked by uid 500); 23 Jun 2014 11:10:24 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 42737 invoked by uid 500); 23 Jun 2014 11:10:24 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 42727 invoked by uid 99); 23 Jun 2014 11:10:24 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jun 2014 11:10:24 +0000 Date: Mon, 23 Jun 2014 11:10:24 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-7476) cxfrs throwExceptionOnFailure option not working MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-7476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14040628#comment-14040628 ] Sergey Beryozkin commented on CAMEL-7476: ----------------------------------------- Hi, CXF itself won't throw the exception if response class is Response. WebClient has the following pseudo-code: "if (r.getStatus() >= 300 && responseClass != Response.class) => throw the exception..." So I wonder do we have responseClass set to something else in the route ? Cheers, Sergey > cxfrs throwExceptionOnFailure option not working > ------------------------------------------------ > > Key: CAMEL-7476 > URL: https://issues.apache.org/jira/browse/CAMEL-7476 > Project: Camel > Issue Type: Bug > Components: camel-cxf > Affects Versions: 2.13.0, 2.13.1 > Reporter: Gareth Bird > Assignee: Willem Jiang > Priority: Minor > > (1) The cxfrs option throwExceptionOnFailure=true does not suppress exceptions from being thrown when an invoked REST service returns a http status > 207. i.e. the following does not work: > ... > .to("cxfrs:bean:rsClient?throwExceptionOnFailure=false") > .... > (2) The cxfrs throwExceptionOnFailure option should default to false; to make it easier to process status codes in the route. > When invoking REST services, the logic is currently complicated by the fact that common status' need to be processed in exception handlers. i,e (404 not found, 412 precondition failed). It would be more useful to filter on statuses with a main route. -- This message was sent by Atlassian JIRA (v6.2#6252)