cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
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:23:53 GMT
Repository: cxf-fediz
Updated Branches:
  refs/heads/1.3.x-fixes 4420496dd -> d0af658b6


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 <coheigea@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/d0af658b
Tree: http://git-wip-us.apache.org/repos/asf/cxf-fediz/tree/d0af658b
Diff: http://git-wip-us.apache.org/repos/asf/cxf-fediz/diff/d0af658b

Branch: refs/heads/1.3.x-fixes
Commit: d0af658b6a9dc4b5fe7dd20353c2e3fe72e46e8e
Parents: 4420496
Author: Andreas Vallen <andreas.vallen@gmail.com>
Authored: Fri May 15 12:38:34 2015 +0200
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Wed Apr 12 12:23:48 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/d0af658b/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);
         }
     }
 


Mime
View raw message