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

FileSedaShutdownCompleteAllTasksTest is failing on Windows

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 4.1.0
    • 4.1.0
    • camel-core, camel-file
    • None
    • Unknown

    Description

      org.apache.camel.FailedToStartRouteException: Failed to start route route1 because of Illegal char <:> at index 6: ${file:parent}\.camel\${file:onlyname}
      	at org.apache.camel.impl.engine.RouteService.setUp(RouteService.java:131)
      	at org.apache.camel.impl.engine.InternalRouteStartupManager.doWarmUpRoutes(InternalRouteStartupManager.java:305)
      	at org.apache.camel.impl.engine.InternalRouteStartupManager.safelyStartRouteServices(InternalRouteStartupManager.java:189)
      	at org.apache.camel.impl.engine.InternalRouteStartupManager.safelyStartRouteServices(InternalRouteStartupManager.java:240)
      	at org.apache.camel.impl.engine.AbstractCamelContext.startRouteService(AbstractCamelContext.java:3079)
      	at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:725)
      	at org.apache.camel.impl.DefaultModel.addRouteDefinitions(DefaultModel.java:251)
      	at org.apache.camel.impl.DefaultCamelContext.addRouteDefinitions(DefaultCamelContext.java:283)
      	at org.apache.camel.builder.RouteBuilder.populateRoutes(RouteBuilder.java:790)
      	at org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:619)
      	at org.apache.camel.impl.engine.AbstractCamelContext.addRoutes(AbstractCamelContext.java:1016)
      	at org.apache.camel.component.seda.FileSedaShutdownCompleteAllTasksTest.testShutdownCompleteAllTasks(FileSedaShutdownCompleteAllTasksTest.java:47)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      	at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
      	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
      	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
      	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
      	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
      	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
      Caused by: java.nio.file.InvalidPathException: Illegal char <:> at index 6: ${file:parent}\.camel\${file:onlyname}
      	at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
      	at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
      	at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
      	at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
      	at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:232)
      	at java.base/java.nio.file.Path.of(Path.java:147)
      	at java.base/java.nio.file.Paths.get(Paths.java:69)
      	at org.apache.camel.component.file.strategy.FileProcessStrategyFactory.getDefaultCommitRenamer(FileProcessStrategyFactory.java:101)
      	at org.apache.camel.component.file.strategy.FileProcessStrategyFactory.createGenericFileProcessStrategy(FileProcessStrategyFactory.java:93)
      	at org.apache.camel.component.file.FileEndpoint.createGenericFileStrategy(FileEndpoint.java:230)
      	at org.apache.camel.component.file.FileEndpoint.newFileConsumer(FileEndpoint.java:216)
      	at org.apache.camel.component.file.FileEndpoint.createConsumer(FileEndpoint.java:122)
      	at org.apache.camel.component.file.FileEndpoint.createConsumer(FileEndpoint.java:1)
      	at org.apache.camel.impl.engine.DefaultRoute.gatherRootServices(DefaultRoute.java:636)
      	at org.apache.camel.impl.engine.DefaultRoute.gatherServices(DefaultRoute.java:620)
      	at org.apache.camel.impl.engine.DefaultRoute.initializeServices(DefaultRoute.java:205)
      	at org.apache.camel.impl.engine.RouteService.doSetup(RouteService.java:150)
      	at org.apache.camel.impl.engine.RouteService.setUp(RouteService.java:129)
      	... 18 more
      
      

      it seems that it has been introduced with this PR https://github.com/apache/camel/pull/11499 related to the issue CAMEL-19877

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              apupier Aurélien Pupier
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: