Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-4290

PublishKafkaRecord_0_10: failed to process due to java.lang.NullPointerException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: Extensions
    • Labels:
      None
    • Environment:
      NiFi 1.4 Master
      Confluent Kafka 3.2

      Description

      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!!

        Attachments

        1. Kafka_Record_1.4_Bug.docx
          174 kB
          Mayank Rathi
        2. Kafka_Record_1.4_Bug.xml
          21 kB
          Mayank Rathi
        3. nifi-app_latest.log
          14 kB
          Mayank Rathi
        4. nifi-app.log
          120 kB
          Mayank Rathi

          Issue Links

            Activity

              People

              • Assignee:
                markap14 Mark Payne
                Reporter:
                mayank2711 Mayank Rathi
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: