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:17:02 GMT
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 <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/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 <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: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);
         }
     }
 


Mime
View raw message