[
https://issues.apache.org/jira/browse/NIFI-14465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18011883#comment-18011883
]
David Handermann commented on NIFI-14465:
-----------------------------------------
Thanks for the additional details [~wojciechwitos].
The JSON Path library includes some low-level null checking and throws an
{{IllegalArgumentException}} in some circumstances, but apparently something
else is causing the {{NullPointerException}}.
Can you clarify what you mean by "the content has been lost during the flow"?
Do you mean that the content of the particular FlowFile is actually empty, or
something happened to the content repository directory that NiFi is using?
> NullPointerException on missing FlowFile contents in EvaluateJsonPath
> ---------------------------------------------------------------------
>
> 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
> Priority: Major
> Attachments: image (1).png, image (2).png, image (3).png,
> image-2025-08-01-12-07-53-767.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)