Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NPE on instantiation when GroupID missing

See original GitHub issue

Issue Description

Exception appeared in io.confluent.parallelconsumer.ParallelEoSStreamProcessor.checkAutoCommitIsDisabled. Looks like (ConsumerCoordinator)coordinatorField.get(consumer) returns a null;

The code of a creation of ParallelStreamProcessor:

public class ParallelConsumer {
    String inputTopic = "test-topic";

    public ParallelConsumer() {

    public ParallelStreamProcessor getParallelConsumer(){
        org.apache.kafka.clients.consumer.Consumer<String, String> kafkaConsumer = getKafkaConsumer(); // (1)

        ParallelConsumerOptions<String, String> options = ParallelConsumerOptions.<String, String>builder()
                .ordering(KEY) // (2)
                .maxConcurrency(1000) // (3)

        ParallelStreamProcessor<String, String> eosStreamProcessor =

        eosStreamProcessor.subscribe(of(inputTopic)); // (4)

        return eosStreamProcessor;

    org.apache.kafka.clients.consumer.Consumer<String, String> getKafkaConsumer() {
        Properties properties = new Properties();
        properties.setProperty(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, "localhost:9092");
        properties.setProperty(ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG, StringDeserializer.class.getName());
        properties.setProperty(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, StringDeserializer.class.getName());
        properties.setProperty(ConsumerConfig.ENABLE_AUTO_COMMIT_CONFIG, "false");
        return new KafkaConsumer<>(properties);

    public void consume () {
        getParallelConsumer().poll(record ->
      "Concurrently processing a record: {}", record));


Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (10 by maintainers)

github_iconTop GitHub Comments

kartiuscommented, May 5, 2021

Thanks for your reply! @astubbs Could you also provide please proper release version?

astubbscommented, May 24, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Fixes #101: NPE on auto commit check by astubbs · Pull Request ...
Successfully merging this pull request may close these issues. NPE on instantiation when GroupID missing. 1 participant. @astubbs.
Read more >
Unable to instantiate default tuplizer [org.hibernate.tuple.entity ...
I was simply missing a setter for a property. ... JDK version as 8. the error is gone. ... Hibernate core --> <dependency>...
Read more >
Maven Surefire Plugin – Class Loading and Forking
The problem with using an isolated class loader is that your classpath isn't really correct, and some applications can detect this and object....
Read more >
Null pointer exception on imported dependency. (Maven ...
So, I just got done coding all day, and I get this wacky error where it seems as though none of my projects...
Read more >
Resolving Failed to Configure a DataSource Error - Baeldung
<dependency> <groupId>org.springframework.boot</groupId> ... Since the issue occurs due to the missing database connection, we can solve the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found