Skip to content

protobuf deserialize as pojo failure with quarkus #186

@mathianasj

Description

@mathianasj

When you try to deserialize a protobuf message inside of kafka streams using quarkus, the quarkus class loader has layered loading which causes Class.forName to fail and be blocked. It should be using the current thread class loader.

Currently ProtobufWireFormatDecoder.java at line 72 is
final Class classType = Class.forName(className); But to make it compatible with layered class loaders it should be final Class classType = Thread.currentThread().getContextClassLoader().loadClass(className);

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