Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-5792

Validator component - Error loading resource on windows

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.10.0
    • 2.9.5, 2.10.3, 2.11.0
    • camel-core, tests
    • None
    • Unknown

    Description

      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

      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)
      

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: