Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-7306

Camel:Kafka NPE when trying to consume messages from kafka server

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.13.1
    • 2.13.1, 2.14.0
    • camel-kafka
    • None
    • Windows, Java 1.6

    • Unknown

    Description

      I've installed and configured zookeeper and kafka servers using apache quick start guide on ubuntu running in vmware.
      Launch producer for already created topic "page_visits" and try to consume messages and nothing happens.
      Trying to debug KafkaEndpoint i can see that server doesn't send me any key (KafkaConstants.KEY) so here:
      message.setHeader(KafkaConstants.KEY, new String(mm.key()));
      i got NPE and it silently fails.

      Attachments

        1. KafkaConsumer.zip
          6 kB
          Ilya Melnik

        Activity

          People

            ggrzybek Grzegorz Grzybek
            i.melnik Ilya Melnik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: