Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-7052

ExtractField SMT throws NPE - needs clearer error message

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.2.3, 2.5.0, 2.3.2, 2.4.1
    • connect
    • None

    Description

      With the following Single Message Transform: 

      "transforms.ExtractId.type":"org.apache.kafka.connect.transforms.ExtractField$Key",
      "transforms.ExtractId.field":"id"

      Kafka Connect errors with : 

      java.lang.NullPointerException
      at org.apache.kafka.connect.transforms.ExtractField.apply(ExtractField.java:61)
      at org.apache.kafka.connect.runtime.TransformationChain.apply(TransformationChain.java:38)

      There should be a better error message here, identifying the reason for the NPE.

      Version: Confluent Platform 4.1.1

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rmoff Robin Moffatt
              Randall Hauch Randall Hauch
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: