org.apache.kafka.connect.errors.DataException: Avro union types containing null are only supported as optional fields and should have exactly two entries.

GitHub | zako | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Avro schemas generated using 1.8.1 fail in AvroData "Avro union types containing null..."

    GitHub | 7 months ago | zako
    org.apache.kafka.connect.errors.DataException: Avro union types containing null are only supported as optional fields and should have exactly two entries.
  2. 0

    Exception while consuming bottledwater messages from Sink connector

    Google Groups | 11 months ago | Unmesh Joshi
    org.apache.kafka.connect.errors.DataException: Avro union types containing null are only supported as optional fields and should have exactly two entries.
  3. 0

    kafka connect fails to decode fixed properly

    GitHub | 9 months ago | jdehrlich
    org.apache.kafka.connect.errors.DataException: Invalid class for bytes type, expecting byte[] or ByteBuffer but found class org.apache.avro.generic.GenericData$Fixed
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Records containing union schemas with enums are not handled properly.

    GitHub | 8 months ago | jcustenborder
    org.apache.kafka.connect.errors.DataException: Did not find matching union field for data: PROD
  6. 0

    Error while writing to HDFS using Kafka HDFS Connect

    Stack Overflow | 8 months ago | Sanchit
    org.apache.kafka.connect.errors.DataException: Did not find matching union field for data: PROD

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.kafka.connect.errors.DataException

      Avro union types containing null are only supported as optional fields and should have exactly two entries.

      at io.confluent.connect.avro.AvroData.toConnectSchema()
    2. io.confluent.connect
      AvroData.toConnectData
      1. io.confluent.connect.avro.AvroData.toConnectSchema(AvroData.java:1135)
      2. io.confluent.connect.avro.AvroData.toConnectSchema(AvroData.java:1105)
      3. io.confluent.connect.avro.AvroData.toConnectSchema(AvroData.java:1017)
      4. io.confluent.connect.avro.AvroData.toConnectData(AvroData.java:781)
      4 frames