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

[BUG]: Protobuf incompatibility with the KCL #608

Open
etspaceman opened this issue Nov 8, 2024 · 2 comments
Open

[BUG]: Protobuf incompatibility with the KCL #608

etspaceman opened this issue Nov 8, 2024 · 2 comments
Labels

Comments

@etspaceman
Copy link

etspaceman commented Nov 8, 2024

Seems there was an upgrade of Protobuf in the 3.0.0 version of the KCL. Unfortunately, I discovered this because upgrading to the 3.0.0 KCL produces a new error for Protobuf when the KPL is also in use in the same project. I believe this is because the KPL is on 3.25.5.

etspaceman/kinesis-mock#942 is the PR in my project to upgrade the KCL to 3.0.0. The error:

Error: Exception in thread "kpl-daemon-0005" java.lang.NoSuchMethodError: 'void com.amazonaws.services.kinesis.producer.protobuf.Messages$Message.makeExtensionsImmutable()'
	at com.amazonaws.services.kinesis.producer.protobuf.Messages$Message.<init>(Messages.java:3447)
	at com.amazonaws.services.kinesis.producer.protobuf.Messages$Message.<init>(Messages.java:3280)
	at com.amazonaws.services.kinesis.producer.protobuf.Messages$Message$1.parsePartialFrom(Messages.java:5434)
	at com.amazonaws.services.kinesis.producer.protobuf.Messages$Message$1.parsePartialFrom(Messages.java:5428)
	at com.google.protobuf.AbstractParser.parsePartialFrom(AbstractParser.java:77)
	at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:97)
	at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:102)
	at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:25)
	at com.amazonaws.services.kinesis.producer.protobuf.Messages$Message.parseFrom(Messages.java:3995)
	at com.amazonaws.services.kinesis.producer.Daemon.receiveMessage(Daemon.java:253)
	at com.amazonaws.services.kinesis.producer.Daemon.access$500(Daemon.java:60)
	at com.amazonaws.services.kinesis.producer.Daemon$3.run(Daemon.java:297)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:840)

I would think the best path forward is to upgrade Protobuf in the KPL to match what is in the KCL and provide a new release.

@etspaceman etspaceman changed the title Protobuf incompatibility with the KCL [BUG]: Protobuf incompatibility with the KCL Nov 8, 2024
@mpviau
Copy link

mpviau commented Nov 28, 2024

Facing same issue here.

@mpviau
Copy link

mpviau commented Dec 14, 2024

Also now incompatible with KCL 2.6.1 which also bumped protobuf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants