Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-1246

ListFiles fails when using a relative path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.4.0
    • None
    • None

    Description

      I created a ListFile processor and set the Input Directory to "./data/in/csv"

      When I started the Processor, it just started spewing errors like below:

      2015-12-03 13:27:53,563 ERROR [Timer-Driven Process Thread-2] o.a.nifi.processors.standard.ListFile ListFile[id=20971eba-bee8-483f-80fd-a02563288da2] ListFile[id=20971eba-bee8-483f-80fd-a02563288da2] failed to process session due to java.lang.IllegalArgumentException: 'other' is different type of Path: java.lang.IllegalArgumentException: 'other' is different type of Path
      2015-12-03 13:27:53,563 WARN [Timer-Driven Process Thread-2] o.a.nifi.processors.standard.ListFile ListFile[id=20971eba-bee8-483f-80fd-a02563288da2] Processor Administratively Yielded for 1 sec due to processing failure
      2015-12-03 13:27:53,563 WARN [Timer-Driven Process Thread-2] o.a.n.c.t.ContinuallyRunProcessorTask Administratively Yielding ListFile[id=20971eba-bee8-483f-80fd-a02563288da2] due to uncaught Exception: java.lang.IllegalArgumentException: 'other' is different type of Path
      2015-12-03 13:27:53,564 WARN [Timer-Driven Process Thread-2] o.a.n.c.t.ContinuallyRunProcessorTask
      java.lang.IllegalArgumentException: 'other' is different type of Path
      at sun.nio.fs.UnixPath.relativize(UnixPath.java:416) ~[na:1.8.0_60]
      at sun.nio.fs.UnixPath.relativize(UnixPath.java:43) ~[na:1.8.0_60]
      at org.apache.nifi.processors.standard.ListFile.createAttributes(ListFile.java:223) ~[na:na]
      at org.apache.nifi.processors.standard.ListFile.createAttributes(ListFile.java:65) ~[na:na]
      at org.apache.nifi.processors.standard.AbstractListProcessor.onTrigger(AbstractListProcessor.java:382) ~[na:na]
      at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27) ~[nifi-api-0.4.0-SNAPSHOT.jar:0.4.0-SNAPSHOT]
      at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1146) ~[nifi-framework-core-0.4.0-SNAPSHOT.jar:0.4.0-SNAPSHOT]
      at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:139) [nifi-framework-core-0.4.0-SNAPSHOT.jar:0.4.0-SNAPSHOT]
      at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:49) [nifi-framework-core-0.4.0-SNAPSHOT.jar:0.4.0-SNAPSHOT]
      at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:119) [nifi-framework-core-0.4.0-SNAPSHOT.jar:0.4.0-SNAPSHOT]
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_60]
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [na:1.8.0_60]
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_60]
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [na:1.8.0_60]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_60]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_60]
      at java.lang.Thread.run(Thread.java:745) [na:1.8.0_60]

      Attachments

        Activity

          People

            markap14 Mark Payne
            markap14 Mark Payne
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: