You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2017/04/12 11:17:02 UTC

cxf-fediz git commit: Initialize BeanCreationException with causing exception, else the real cause is easy to miss. This closes #7.

Repository: cxf-fediz
Updated Branches:
  refs/heads/master 9a29733bb -> 06c608431


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 <co...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/cxf-fediz/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf-fediz/commit/06c60843
Tree: http://git-wip-us.apache.org/repos/asf/cxf-fediz/tree/06c60843
Diff: http://git-wip-us.apache.org/repos/asf/cxf-fediz/diff/06c60843

Branch: refs/heads/master
Commit: 06c60843178662c7499801293210d80038b785eb
Parents: 9a29733
Author: Andreas Vallen <an...@gmail.com>
Authored: Fri May 15 12:38:34 2015 +0200
Committer: Colm O hEigeartaigh <co...@apache.org>
Committed: Wed Apr 12 12:16:29 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/06c60843/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 f2884d2..736d847 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);
         }
     }