[ https://issues.apache.org/jira/browse/NIFI-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Payne updated NIFI-1246: ----------------------------- Summary: ListFiles fails when using a relative path (was: ListFiles fails with Error message indicating wrong type of path) > ListFiles fails when using a relative path > ------------------------------------------ > > Key: NIFI-1246 > URL: https://issues.apache.org/jira/browse/NIFI-1246 > Project: Apache NiFi > Issue Type: Bug > Reporter: Mark Payne > Fix For: 0.4.0 > > > 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] -- This message was sent by Atlassian JIRA (v6.3.4#6332)