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:15 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.17.x 8aa189cf7 -> c82fd3bae


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

Branch: refs/heads/camel-2.17.x
Commit: c82fd3bae396e4f2f38859429a401b49dd3eae58
Parents: 8aa189c
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:48 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/c82fd3ba/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