Return-Path: X-Original-To: apmail-nifi-commits-archive@minotaur.apache.org Delivered-To: apmail-nifi-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 73FD118EF7 for ; Thu, 3 Dec 2015 21:07:11 +0000 (UTC) Received: (qmail 96990 invoked by uid 500); 3 Dec 2015 21:07:11 -0000 Delivered-To: apmail-nifi-commits-archive@nifi.apache.org Received: (qmail 96949 invoked by uid 500); 3 Dec 2015 21:07:11 -0000 Mailing-List: contact commits-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list commits@nifi.apache.org Received: (qmail 96925 invoked by uid 99); 3 Dec 2015 21:07:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Dec 2015 21:07:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 1EA612C033A for ; Thu, 3 Dec 2015 21:07:11 +0000 (UTC) Date: Thu, 3 Dec 2015 21:07:11 +0000 (UTC) From: "Mark Payne (JIRA)" To: commits@nifi.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (NIFI-1246) ListFiles fails when using a relative path MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)