[ 
https://issues.apache.org/jira/browse/NIFI-4290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16126018#comment-16126018
 ] 

Mark Payne commented on NIFI-4290:
----------------------------------

[~joewitt] - yeah I think there's an easy enough to change - to just 
instantiate the object if necessary when calling the getter. We do not create 
it when the lease itself is created because it gets 'nulled out' when completed 
and then re-created again if anything is sent. However, if we just add the 
null-check-and-construct in the getTracker() method I think it addresses the 
issue. Will create a PR shortly.

> PublishKafkaRecord_0_10: failed to process due to 
> java.lang.NullPointerException
> --------------------------------------------------------------------------------
>
>                 Key: NIFI-4290
>                 URL: https://issues.apache.org/jira/browse/NIFI-4290
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 1.4.0
>         Environment: NiFi 1.4 Master
> Confluent Kafka 3.2
>            Reporter: Mayank Rathi
>            Assignee: Mark Payne
>         Attachments: Kafka_Record_1.4_Bug.docx, Kafka_Record_1.4_Bug.xml, 
> nifi-app_latest.log, nifi-app.log
>
>
> Hello All,
> I am moving data to Kafka using NiFi's PublishKafkaRecord processor. I am 
> using ConfluentSchemaRegistry Controller service and getting below error:
> 2017-08-11 20:54:25,937 ERROR [Timer-Driven Process Thread-4] 
> o.a.n.p.k.pubsub.PublishKafkaRecord_0_10 
> PublishKafkaRecord_0_10[id=b3c03961-015d-1000-0946-79ccbe2ffbbd] 
> PublishKafkaRecord_0_10[id=b3c03961-015d-1000-0946-79ccbe2ffbbd] failed to 
> process due to java.lang.NullPointerException; rolling back session: {}
> java.lang.NullPointerException: null
> I do not see any error on Kafka side. 
> Attached are the logs after setting processors in Debug mode. Here is the 
> flow:
> ExecuteSQL --> SplitAvro --> PublishKafkaRecord_0_10
> Thanks!!



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to