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:03:37 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.18.x 2beb05b90 -> 73a084567


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/73a08456
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/73a08456
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/73a08456

Branch: refs/heads/camel-2.18.x
Commit: 73a084567626541fd79f9e3fdf319cfe0f6fcaa0
Parents: 2beb05b
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:02:04 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/73a08456/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 febcefe..f930def 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