nifi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Payne (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (NIFI-1246) ListFiles fails when using a relative path
Date Thu, 03 Dec 2015 21:07:11 GMT

     [ https://issues.apache.org/jira/browse/NIFI-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mark Payne updated NIFI-1246:
-----------------------------
    Attachment:     (was: 0001-NIFI-1246-When-calculating-relative-paths-ensure-tha.patch)

> 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
>            Assignee: Mark Payne
>             Fix For: 0.4.0
>
>         Attachments: 0001-NIFI-1246-When-calculating-relative-paths-ensure-tha.patch
>
>
> 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)

Mime
View raw message