[
https://issues.apache.org/jira/browse/NIFI-14465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18011406#comment-18011406
]
WojciechWitos commented on NIFI-14465:
--------------------------------------
[~exceptionfactory]
!image-2025-08-01-12-07-53-767.png!
```
{code:java}
{"identifier":"ec34c820-c4b1-3d8f-a9a2-8fa5099e8d5b","instanceIdentifier":"0ebf327d-f99f-1553-a0df-6da5eaa4f3fe","name":"EvaluateJsonPath","comments":"","position":{"x":1600.0,"y":-552.0},"type":"org.apache.nifi.processors.standard.EvaluateJsonPath","bundle":{"group":"org.apache.nifi","artifact":"nifi-standard-nar","version":"2.4.0"},"properties":{"con_agentid":"$.con_agentid","Destination":"flowfile-attribute","con_destination":"$.con_destination","Max
String Length":"20 MB","Return Type":"auto-detect","Null Value
Representation":"empty
string","con_agentname":"$.con_agentname","con_last_global_event_processed":"$.con_last_global_event_processed","Path
Not Found
Behavior":"ignore"},"propertyDescriptors":{"con_agentid":{"name":"con_agentid","displayName":"con_agentid","identifiesControllerService":false,"sensitive":false,"dynamic":true},"Destination":{"name":"Destination","displayName":"Destination","identifiesControllerService":false,"sensitive":false,"dynamic":false},"con_destination":{"name":"con_destination","displayName":"con_destination","identifiesControllerService":false,"sensitive":false,"dynamic":true},"Max
String Length":{"name":"Max String Length","displayName":"Max String
Length","identifiesControllerService":false,"sensitive":false,"dynamic":false},"Return
Type":{"name":"Return Type","displayName":"Return
Type","identifiesControllerService":false,"sensitive":false,"dynamic":false},"Null
Value Representation":{"name":"Null Value Representation","displayName":"Null
Value
Representation","identifiesControllerService":false,"sensitive":false,"dynamic":false},"con_agentname":{"name":"con_agentname","displayName":"con_agentname","identifiesControllerService":false,"sensitive":false,"dynamic":true},"con_last_global_event_processed":{"name":"con_last_global_event_processed","displayName":"con_last_global_event_processed","identifiesControllerService":false,"sensitive":false,"dynamic":true},"Path
Not Found Behavior":{"name":"Path Not Found Behavior","displayName":"Path Not
Found
Behavior","identifiesControllerService":false,"sensitive":false,"dynamic":false}},"style":{},"schedulingPeriod":"0
sec","schedulingStrategy":"TIMER_DRIVEN","executionNode":"ALL","penaltyDuration":"30
sec","yieldDuration":"1
sec","bulletinLevel":"WARN","runDurationMillis":0,"concurrentlySchedulableTaskCount":1,"autoTerminatedRelationships":["failure","unmatched"],"scheduledState":"ENABLED","retryCount":10,"retriedRelationships":[],"backoffMechanism":"PENALIZE_FLOWFILE","maxBackoffPeriod":"10
mins","componentType":"PROCESSOR","groupIdentifier":"de4e2560-d1e1-3716-9fd6-9da45b0dedb2"}
{code}
This is how it looks like, but it happens on others too. The flow above is
empty, content can't by accessed anyhow.
It seems like the content has been lost during the flow?
In version 1.28.1 this issue wasn't present and also it happens "sometimes",
not on daily basis.
As I said, observed also in 2.4 as on the screenshot
> 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-06-44-975.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)