[
https://issues.apache.org/jira/browse/NIFI-14465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18011045#comment-18011045
]
David Handermann commented on NIFI-14465:
-----------------------------------------
Thanks [~wojciechwitos]. It looks like that error doesn't provide much
additional detail regarding the exact source. Do you have any more details that
could help reproduce the problem? An example JSON file and configuration
settings for EvaluteJsonPath would be helpful.
> 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
>
>
> 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)