Skip to content

ProtobufConverter is failing to convert protobuf messages #3360

Closed
@koladilip

Description

@koladilip

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions