Andrea Di Stefano created NIFI-14465:
----------------------------------------

             Summary: NullPointerException on missing FlowFile contents
                 Key: NIFI-14465
                 URL: https://issues.apache.org/jira/browse/NIFI-14465
             Project: Apache NiFi
          Issue Type: Bug
    Affects Versions: 2.2.0
            Reporter: Andrea Di Stefano
         Attachments: image (1).png, image (2).png, image (3).png

Hello,

we found an issue where a FlowFile had its content somehow deleted (we could 
not find the contents in the content repository folder), but the FlowFile 
itself was still in the queue of one processor and of course it could not be 
processed.

The UI reported the following error:

EvaluateJsonPath[id=648a125b-c17f-3881-8282-1048ccb1c5d7] Processing halted: 
yielding [1 sec]: java.lang.NullPointerException

I attached some screenshot of what we saw in the UI.

I think it can be replicated by queuing one file and manually delete the 
contents from the content repository folder.

Shouldn't NiFi handle this situation gracefully (maybe just log a Warning and 
automatically remove the file from the queue)? Or what could we do to avoid the 
same issue in the future?

 

Thanks!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to