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

NPE in RouteWatcherReloadStrategy.onRouteReload(RouteWatcherReloadStrategy.java:300)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.6.0
    • 4.7.0
    • camel-core
    • None
    • Unknown

    Description

      Error reloading routes from file: to/Initial.yaml due to Cannot invoke "org.apache.camel.ServiceStatus.name()" because the return value of "org.apache.camel.spi.RouteController.getRouteStatus(String)" is null. This exception is ignored.
      java.lang.NullPointerException: Cannot invoke "org.apache.camel.ServiceStatus.name()" because the return value of "org.apache.camel.spi.RouteController.getRouteStatus(String)" is null
              at org.apache.camel.support.RouteWatcherReloadStrategy.onRouteReload(RouteWatcherReloadStrategy.java:300) ~[camel-support-4.6.0.jar:4.6.0]
              at org.apache.camel.support.RouteWatcherReloadStrategy.lambda$doStart$1(RouteWatcherReloadStrategy.java:154) ~[camel-support-4.6.0.jar:4.6.0]
              at org.apache.camel.support.FileWatcherResourceReloadStrategy$WatchFileChangesTask.run(FileWatcherResourceReloadStrategy.java:311) ~[camel-support-4.6.0.jar:4.6.0]
              at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572) ~[?:?]
              at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) ~[?:?]
              at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
              at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
              at java.base/java.lang.Thread.run(Thread.java:1583) [?:?] 

      not sure about steps to reproduce (yet) but surely related to suspending a route and doing a change of the file which is tried to be automatically reloaded

      Attachments

        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: