[ 
https://issues.apache.org/jira/browse/CAMEL-5792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13498652#comment-13498652
 ] 

Claus Ibsen commented on CAMEL-5792:
------------------------------------

Yeah its an issue in compactPath method in FileUtil. I have a Windows test ran 
overnight to verify no regressions caused by this fix.
                
> Validator component - Error loading resource on windows
> -------------------------------------------------------
>
>                 Key: CAMEL-5792
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5792
>             Project: Camel
>          Issue Type: Test
>          Components: camel-core, tests
>    Affects Versions: 2.10.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>
> Doing CI tests on Windows spotted this on multiple occasions. It may be an 
> issue in the Camel validator component itself.
> Test Name   
> Duration   
> Age   
> >>> org.apache.camel.itest.validator.ValidatorSchemaImportTest.testRelativeParentSchemaImport
> >>>          0.647   1
> >>> org.apache.camel.itest.validator.ValidatorSchemaImportTest.testDotSlashSchemaImport
> >>>        0.08    1
> >>> org.apache.camel.itest.validator.ValidatorSchemaImportTest.testRelativeDoubleSlashSchemaImport
> >>>     0.067   1
> {code}
> org.apache.camel.FailedToCreateRouteException: Failed to create route route3 
> at: >>> 
> DoTry[[To[validator:org/apache/camel/component/validator/doubleslash/child.xsd],
>  To[mock:valid], DoCatch[ [class org.apache.camel.ValidationException] -> 
> [To[mock:invalid]]], DoFinally[[To[mock:finally]]]]] <<< in route: 
> Route[[From[direct:start]] -> [DoTry[[To[validator:org/apach... because of 
> Failed to resolve endpoint: 
> validator://org/apache/camel/component/validator/doubleslash/child.xsd due 
> to: java.io.FileNotFoundException: Cannot find resource in classpath for URI: 
> org/apache/camel/component/validator/doubleslash/.//parent.xsd
>       at 
> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:873)
>       at 
> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:171)
>       at 
> org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:723)
>       at 
> org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1795)
>       at 
> org.apache.camel.impl.DefaultCamelContext.addRouteDefinitions(DefaultCamelContext.java:667)
>       at 
> org.apache.camel.builder.RouteBuilder.populateRoutes(RouteBuilder.java:337)
>       at 
> org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:264)
>       at 
> org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.java:629)
>       at 
> org.apache.camel.itest.validator.ValidatorSchemaImportTest.testRelativeDoubleSlashSchemaImport(ValidatorSchemaImportTest.java:98)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to