camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject camel git commit: CAMEL-11000: Issued a simple warning rather than throwing an Exception
Date Tue, 14 Mar 2017 09:04:18 GMT
Repository: camel
Updated Branches:
  refs/heads/master 45e152211 -> b933bb310


CAMEL-11000: Issued a simple warning rather than throwing an Exception


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/b933bb31
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/b933bb31
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/b933bb31

Branch: refs/heads/master
Commit: b933bb310b9a124cea4c10362ca530bbcc8f771f
Parents: 45e1522
Author: aldettinger <aldettinger@gmail.com>
Authored: Mon Mar 13 21:36:49 2017 +0100
Committer: Andrea Cosentino <ancosen@gmail.com>
Committed: Tue Mar 14 10:04:03 2017 +0100

----------------------------------------------------------------------
 .../java/org/apache/camel/processor/validation/SchemaReader.java  | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/b933bb31/camel-core/src/main/java/org/apache/camel/processor/validation/SchemaReader.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/processor/validation/SchemaReader.java
b/camel-core/src/main/java/org/apache/camel/processor/validation/SchemaReader.java
index 4fc8c2b..ac42cc9 100644
--- a/camel-core/src/main/java/org/apache/camel/processor/validation/SchemaReader.java
+++ b/camel-core/src/main/java/org/apache/camel/processor/validation/SchemaReader.java
@@ -177,8 +177,7 @@ public class SchemaReader {
             try {
                 factory.setProperty(XMLConstants.ACCESS_EXTERNAL_DTD, "");
             } catch (SAXException e) {
-                LOG.error(e.getMessage(), e);
-                throw new IllegalStateException(e);
+                LOG.warn(e.getMessage(), e);
             } 
         }
         return factory;


Mime
View raw message