confluentinc / schema-registry

Confluent Schema Registry for Kafka
https://docs.confluent.io/current/schema-registry/docs/index.html
Other
2.22k stars 1.11k forks source link

ProtobufConverter is failing to convert protobuf messages #3360

Open koladilip opened 1 week ago

koladilip commented 1 week ago

I am getting following Error when using io.confluent.connect.protobuf.ProtobufConverter.

java.lang.VerifyError: Bad return type
Exception Details:
Location:
    io/confluent/protobuf/MetaProto$Meta.internalGetMapFieldReflection(I)Lcom/google/protobuf/MapFieldReflectionAccessor; @24: areturn
  Reason:
    Type 'com/google/protobuf/MapField' (current frame, stack[0]) is not assignable to 'com/google/protobuf/MapFieldReflectionAccessor' (from method signature)
  Current Frame:
    bci: @24
    flags: { }
    locals: { 'io/confluent/protobuf/MetaProto$Meta', integer }
    stack: { 'com/google/protobuf/MapField' }
  Bytecode:
    0000000: 1bab 0000 0000 0018 0000 0001 0000 0002
    0000010: 0000 0013 2ab7 0002 b0bb 000f 59bb 0010
    0000020: 59b7 0011 1212 b600 131b b600 14b6 0015
    0000030: b700 16bf
  Stackmap Table:
    same_frame(@20)
    same_frame(@25)

    at io.confluent.protobuf.MetaProto.<clinit>(MetaProto.java:1112)
    at io.confluent.kafka.schemaregistry.protobuf.ProtobufSchema.<clinit>(ProtobufSchema.java:246)
    at io.confluent.kafka.schemaregistry.protobuf.ProtobufSchemaProvider.parseSchemaOrElseThrow(ProtobufSchemaProvider.java:38)

Versions: io.confluent:kafka-connect-protobuf-converter:7.7.1 com.google.protobuf:protobuf-java:3.25.4 com.google.protobuf:protoc:3.25.4 Java 17

rayokota commented 1 week ago

What is your version of kafka-protobuf-types?

koladilip commented 1 week ago

What is your version of kafka-protobuf-types? 7.7.1