Jonathan-Eid opened a new issue #1207: Camel K Validator hangs on URL input 
URL: https://github.com/apache/camel-k/issues/1207
 
 
    I am trying to route an xml file to a remote xsd schema for validation, 
using the validator component, and whenever a valid URL is entered, all parts 
of the route fails and the integration hangs with no error outputs. 
   
   I know when the URL is invalid as there would errors in the console log.
   
   Is using the validator component the correct / preferred method of 
validating xml in Camel-K?
   
     from("Source:{{my.sourceType}}:{{my.sourceName}}")
             .streamCaching()
             .doTry()
               .to("validator:{{my.xsdSchemaPath}}")
               .log("Received validated source ${body}")
               .to(ExchangePattern.InOnly, 
"Target1:{{my.targetType1}}:{{my.targetName1}}")
               .log("Messsage sent to target 1 :: ${body}")
               .to(ExchangePattern.InOnly, 
"Target2:{{my.targetType2}}:{{my.targetName2}}")
               .log("Messsage sent to target 2 :: ${body}")
             .doCatch(ValidationException.class)
               .log("FAILURE")
             .endDoTry();
   
   
   Console output on valid URL:
   
   
![image](https://user-images.githubusercontent.com/16027108/72470143-5f3ea680-37ae-11ea-93af-fc552579b0c2.png)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to