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

ExtractField SMT throws NPE - needs clearer error message

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.3, 2.5.0, 2.3.2, 2.4.1
    • Component/s: KafkaConnect
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              rmoff Robin Moffatt
              Reviewer:
              Randall Hauch

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment