Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Glue SerDe does does not load #665

Closed
4 tasks done
olivd4400 opened this issue Nov 20, 2024 · 4 comments
Closed
4 tasks done

Custom Glue SerDe does does not load #665

olivd4400 opened this issue Nov 20, 2024 · 4 comments
Labels
area/serde Serialization & Deserialization (plugins) status/triage/completed Automatic triage completed status/triage/manual Manual triage in progress type/bug Something isn't working

Comments

@olivd4400
Copy link

Issue submitter TODO list

  • I've looked up my issue in FAQ
  • I've searched for an already existing issues here
  • I've tried running main-labeled docker image and the issue still persists there
  • I'm running a supported version of the application which is listed here

Describe the bug (actual behavior)

Provided sample Glue Serde https://github.com/kafbat/ui-serde-glue/tree/main
does not load and prevent UI from starting with exception below
Caused by: java.lang.ClassCastException: class io.kafbat.ui.serde.glue.GlueSerde cannot be cast to class io.kafbat.ui.serde.api.Serde (io.kafbat.ui.serde.glue.GlueSerde is in unnamed module of loader io.kafbat.ui.serdes.CustomSerdeLoader$ChildFirstClassloader @59496961; io.kafbat.ui.serde.api.Serde is in unnamed module of loader org.springframework.boot.loader.LaunchedURLClassLoader @179d3b25) at io.kafbat.ui.serdes.CustomSerdeLoader.loadAndConfigure(CustomSerdeLoader.java:46) at io.kafbat.ui.serdes.SerdesInitializer.loadAndInitCustomSerde(SerdesInitializer.java:265) at io.kafbat.ui.serdes.SerdesInitializer.createSerdeFromConfig(SerdesInitializer.java:186) at io.kafbat.ui.serdes.SerdesInitializer.init(SerdesInitializer.java:105)

Expected behavior

Custom Serde is loaded and Kafka UI starts

Your installation details

v1.0.0

Steps to reproduce

  1. compile Glue Serde from https://github.com/kafbat/ui-serde-glue/tree/main (with depencies)
  2. copy jar in installation path
  3. modify application.yml to include this custom serializer
    - name: GlueSerde(dev) className: io.kafbat.ui.serde.glue.GlueSerde filePath: /opt/kafka-ui/glue-serde/kafkaui-glue-serde.jar

Screenshots

No response

Logs

No response

Additional context

No response

@olivd4400 olivd4400 added status/triage Issues pending maintainers triage type/bug Something isn't working labels Nov 20, 2024
@kapybro kapybro bot added status/triage/manual Manual triage in progress area/serde Serialization & Deserialization (plugins) status/triage/completed Automatic triage completed and removed status/triage Issues pending maintainers triage labels Nov 20, 2024
@Haarolean Haarolean self-assigned this Nov 24, 2024
@Haarolean
Copy link
Member

1.0.1 works fine for me.
Please try the latest release first to make sure you compiled it properly.

Copy link

kapybro bot commented Nov 24, 2024

Further user feedback is requested. Please reply within 7 days or we might close the issue.

@kapybro kapybro bot assigned olivd4400 and unassigned Haarolean Nov 24, 2024
@olivd4400
Copy link
Author

olivd4400 commented Nov 27, 2024

Thanks @Haarolean,

Indeed I was already using 1.0.1 but I did rebuild it from sources and forgot the "provided" scope in pom file. With "provided" scope this work fine

    <dependency>
	    <groupId>io.kafbat.ui</groupId>
	    <artifactId>serde-api</artifactId>
	    <version>1.0.0</version>
	    <scope>provided</scope>
	</dependency>

Copy link

kapybro bot commented Nov 27, 2024

Thanks for the additional feedback! We'll get back to your issue soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/serde Serialization & Deserialization (plugins) status/triage/completed Automatic triage completed status/triage/manual Manual triage in progress type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants