Support Questions
Find answers, ask questions, and share your expertise

Error NPE with consumeKafka


I built a sample dataflow with consumeKafka and putFile and I am having these errors :

16-09-07 02:04:42,965 ERROR [Timer-Driven Process Thread-8] o.a.n.p.kafka.pubsub.ConsumeKafka ConsumeKafka[id=01e31235-0157-1000-23ff-3d5f71289164] ConsumeKafka[id=01e31235-0157-1000-23ff-3d5f71289164] failed to process due to java.lang.NullPointerException; rolling back session: java.lang.NullPointerException
2016-09-07 02:04:42,965 ERROR [Timer-Driven Process Thread-8] o.a.n.p.kafka.pubsub.ConsumeKafka
java.lang.NullPointerException: null

Kafka contains the data and I tested it through

I am using Nifi 1.0 and HDP 2.5 sandbox



Hi @Tim David, are you communicating with a Kafka client using version 0.9 or 0.10?

@Andy LoPresto

I am on Kafka ( HDP 2.5 Sandbox

Rising Star

@Tim David - If you update your conf/logback.xml and add in this line, it should give you a stack trace for this issue:

<logger name="org.apache.nifi.processors.kafka.pubsub.ConsumeKafka" level="DEBUG" />

If you can update that and get the full stack trace and post that here, it will help to determine what the issue is. Also, if you could show us how the processor's properties are configured, that would be useful as well, to try to replicate the issue.