You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Eric Ulicny (JIRA)" <ji...@apache.org> on 2018/12/19 19:20:00 UTC

[jira] [Commented] (NIFI-5894) FTPTransfer NullPointerException - FTPFile.getTimestamp() returns null

    [ https://issues.apache.org/jira/browse/NIFI-5894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16725288#comment-16725288 ] 

Eric Ulicny commented on NIFI-5894:
-----------------------------------

Set LastModifiedTime == System time if the circumstance occurs where it is null from the FtpFile.

> FTPTransfer NullPointerException - FTPFile.getTimestamp() returns null
> ----------------------------------------------------------------------
>
>                 Key: NIFI-5894
>                 URL: https://issues.apache.org/jira/browse/NIFI-5894
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 1.8.0
>            Reporter: henning ottesen
>            Assignee: Eric Ulicny
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 2018-12-13 10:34:07,405 WARN [Timer-Driven Process Thread-2] o.a.n.controller.tasks.ConnectableTask Administratively Yielding ListFTP[id=a6cee9c8-0167-1000-2bc2-5e69d2e33af5] due to uncaught Exception: java.lang.NullPointerException java.lang.NullPointerException: null
> 	at org.apache.nifi.processors.standard.util.FTPTransfer.newFileInfo(FTPTransfer.java:305)
> 	at org.apache.nifi.processors.standard.util.FTPTransfer.getListing(FTPTransfer.java:270)
> 	at org.apache.nifi.processors.standard.util.FTPTransfer.getListing(FTPTransfer.java:260)
> 	at org.apache.nifi.processors.standard.util.FTPTransfer.getListing(FTPTransfer.java:191)
> 	at org.apache.nifi.processors.standard.ListFileTransfer.performListing(ListFileTransfer.java:106)
> 	at org.apache.nifi.processor.util.list.AbstractListProcessor.listByTrackingTimestamps(AbstractListProcessor.java:471)
> 	at org.apache.nifi.processor.util.list.AbstractListProcessor.onTrigger(AbstractListProcessor.java:413)
> 	at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
> 	at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1165)
> 	at org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:203)
> 	at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:117)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> 	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> 	at java.lang.Thread.run(Thread.java:748)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)