[
https://issues.apache.org/jira/browse/NIFI-6682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16937894#comment-16937894
]
Frank Chen edited comment on NIFI-6682 at 9/25/19 4:30 PM:
-----------------------------------------------------------
The issue is essentially caused by that the dependent jackson-databind.jar's
ObjectReader has different ways to handle ”null“ string and other non-json
format data such as "aaa", and "null" strings are resolved to null and other
non-json format strings throw parse exception.
The name ”ObjectReader“ seems to be right in this way, but in nifi the
flowfile can not be processed in the queue until the queue is emptied rather
than faliure route is definitely problematic.
And I fix it locally by adding once read from flowfile and judging whether
the content is "null" string, but I dont think it is a good way and wonder if
there is a better way to deal with it.
was (Author: dust2sleep):
The issue is essentially caused by that the dependent jackson-databind.jar's
ObjectReader different handling of ”null“ strings and other non-json format
data such as "aaa", where "null" strings are resolved to null and other
non-json format strings throw parse exceptions.
The name ”ObjectReader“ seems to be right in this way, but in nifi the flowfile
can not be processed in the queue until the queue is emptied rather than
faliure route is definitely problematic.
And I fix it locally by adding once read from flowfile and judging whether
the content is "null" string, but I dont think it is a good way and wonder if
there is a better way to deal with it.
> SplitJson does not work if the input is null
> ---------------------------------------------
>
> Key: NIFI-6682
> URL: https://issues.apache.org/jira/browse/NIFI-6682
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Affects Versions: 1.9.2
> Reporter: Frank Chen
> Priority: Major
> Attachments: image-2019-09-17-18-18-19-860.png,
> image-2019-09-17-18-33-33-708.png
>
>
> When the input is null, the SplitJson processor should output to failure
> route rather than report error.As a result, the flowfile is not processed in
> the queue all the time.
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)