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 8F968200C54 for ; Wed, 12 Apr 2017 13:37:30 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8E0CB160B95; Wed, 12 Apr 2017 11:37:30 +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 D7C17160B8A for ; Wed, 12 Apr 2017 13:37:29 +0200 (CEST) Received: (qmail 2677 invoked by uid 500); 12 Apr 2017 11:37:28 -0000 Mailing-List: contact commits-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 commits@cxf.apache.org Received: (qmail 2668 invoked by uid 99); 12 Apr 2017 11:37:28 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Apr 2017 11:37:28 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 5034CDFBC8; Wed, 12 Apr 2017 11:37:28 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: coheigea@apache.org To: commits@cxf.apache.org Message-Id: <832500cd77fe4772ba0e761388816dbf@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: cxf-fediz git commit: Initialize BeanCreationException with causing exception, else the real cause is easy to miss. This closes #7. Date: Wed, 12 Apr 2017 11:37:28 +0000 (UTC) archived-at: Wed, 12 Apr 2017 11:37:30 -0000 Repository: cxf-fediz Updated Branches: refs/heads/1.2.x-fixes ba166b605 -> 66f1ffa4f Initialize BeanCreationException with causing exception, else the real cause is easy to miss. This closes #7. not passing the root cause here will cause this exception to be displayed many many times _without_ the real root case, instead suggesting that a malformed resource URL might be the culprit when instead it is e.g. a non-validating fediz_config.xml XML file. (cherry picked from commit 41a3674) Signed-off-by: Colm O hEigeartaigh Project: http://git-wip-us.apache.org/repos/asf/cxf-fediz/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf-fediz/commit/66f1ffa4 Tree: http://git-wip-us.apache.org/repos/asf/cxf-fediz/tree/66f1ffa4 Diff: http://git-wip-us.apache.org/repos/asf/cxf-fediz/diff/66f1ffa4 Branch: refs/heads/1.2.x-fixes Commit: 66f1ffa4f55fec23c609a6735ef0b3b4b6141a1a Parents: ba166b6 Author: Andreas Vallen Authored: Fri May 15 12:38:34 2015 +0200 Committer: Colm O hEigeartaigh Committed: Wed Apr 12 12:37:23 2017 +0100 ---------------------------------------------------------------------- .../java/org/apache/cxf/fediz/spring/FederationConfigImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/66f1ffa4/plugins/spring/src/main/java/org/apache/cxf/fediz/spring/FederationConfigImpl.java ---------------------------------------------------------------------- diff --git a/plugins/spring/src/main/java/org/apache/cxf/fediz/spring/FederationConfigImpl.java b/plugins/spring/src/main/java/org/apache/cxf/fediz/spring/FederationConfigImpl.java index 0deaaca..4cec9f7 100644 --- a/plugins/spring/src/main/java/org/apache/cxf/fediz/spring/FederationConfigImpl.java +++ b/plugins/spring/src/main/java/org/apache/cxf/fediz/spring/FederationConfigImpl.java @@ -65,7 +65,7 @@ public class FederationConfigImpl implements FederationConfig, ServletContextAwa configurator.loadConfig(this.configFile.getFile()); } catch (Exception e) { LOG.error("Failed to parse '" + configFile.getDescription() + "'", e); - throw new BeanCreationException("Failed to parse '" + configFile.getDescription() + "'"); + throw new BeanCreationException("Failed to parse '" + configFile.getDescription() + "'", e); } }