camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1164557 - /camel/trunk/camel-core/src/main/java/org/apache/camel/builder/xml/XsltBuilder.java
Date Fri, 02 Sep 2011 14:52:53 GMT
Author: davsclaus
Date: Fri Sep  2 14:52:53 2011
New Revision: 1164557

URL: http://svn.apache.org/viewvc?rev=1164557&view=rev
Log:
CAMEL-4396: XML validation errors should be logged using error listener. Thank to metatech
for the patch

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/builder/xml/XsltBuilder.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/builder/xml/XsltBuilder.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/xml/XsltBuilder.java?rev=1164557&r1=1164556&r2=1164557&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/builder/xml/XsltBuilder.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/builder/xml/XsltBuilder.java Fri
Sep  2 14:52:53 2011
@@ -39,6 +39,7 @@ import org.apache.camel.Message;
 import org.apache.camel.Processor;
 import org.apache.camel.RuntimeTransformException;
 import org.apache.camel.converter.jaxp.XmlConverter;
+import org.apache.camel.converter.jaxp.XmlErrorListener;
 import org.apache.camel.support.SynchronizationAdapter;
 import org.apache.camel.util.ExchangeHelper;
 import org.apache.camel.util.FileUtil;
@@ -337,6 +338,7 @@ public class XsltBuilder implements Proc
             uriResolver = new XsltUriResolver(exchange.getContext().getClassResolver(), null);
         }
         transformer.setURIResolver(uriResolver);
+        transformer.setErrorListener(new XmlErrorListener());
 
         transformer.clearParameters();
 



Mime
View raw message