Skip to content

v5.0.0.CR5 - RabbitMQ - Illegal Access Exception - #5485

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

Closed
GedMarc opened this issue Feb 17, 2025 · 6 comments
Closed

v5.0.0.CR5 - RabbitMQ - Illegal Access Exception - #5485

GedMarc opened this issue Feb 17, 2025 · 6 comments
Labels
Milestone

Comments

@GedMarc
Copy link

GedMarc commented Feb 17, 2025

Version

5.0.0.CR5

Context

Looks like a package hasn't been opened to the rabbitmq module

Do you have a reproducer?

java.lang.IllegalAccessError: class io.vertx.rabbitmq.impl.RabbitMQConsumerImpl (in module io.vertx.rabbitmq) cannot access class io.vertx.core.streams.impl.InboundBuffer (in module io.vertx.core) because module io.vertx.core does not export io.vertx.core.streams.impl to module io.vertx.rabbitmq

Steps to reproduce

  1. Create any consumer and publish a message
@GedMarc GedMarc added the bug label Feb 17, 2025
@GedMarc
Copy link
Author

GedMarc commented Feb 17, 2025

java.lang.IllegalAccessError: class io.vertx.rabbitmq.impl.RabbitMQConsumerImpl (in module io.vertx.rabbitmq) cannot access class io.vertx.core.streams.impl.InboundBuffer (in module io.vertx.core) because module io.vertx.core does not export io.vertx.core.streams.impl to module io.vertx.rabbitmq
	at io.vertx.rabbitmq@2.0.0-SNAPSHOT/io.vertx.rabbitmq.impl.RabbitMQConsumerImpl.<init>(RabbitMQConsumerImpl.java:33) ~[vertx-rabbitmq-2.0.0-SNAPSHOT.jar:?]
	at io.vertx.rabbitmq@2.0.0-SNAPSHOT/io.vertx.rabbitmq.impl.QueueConsumerHandler.<init>(QueueConsumerHandler.java:29) ~[vertx-rabbitmq-2.0.0-SNAPSHOT.jar:?]
	at io.vertx.rabbitmq@2.0.0-SNAPSHOT/io.vertx.rabbitmq.impl.RabbitMQClientImpl.lambda$basicConsumer$13(RabbitMQClientImpl.java:297) ~[vertx-rabbitmq-2.0.0-SNAPSHOT.jar:?]
	at io.vertx.rabbitmq@2.0.0-SNAPSHOT/io.vertx.rabbitmq.impl.RabbitMQClientImpl.lambda$forChannel$42(RabbitMQClientImpl.java:593) ~[vertx-rabbitmq-2.0.0-SNAPSHOT.jar:?]
	at io.vertx.core@5.0.0.CR5/io.vertx.core.impl.WorkerPool$1.execute(WorkerPool.java:62) ~[vertx-core-5.0.0.CR5.jar:?]
	at io.vertx.core@5.0.0.CR5/io.vertx.core.impl.WorkerTask.run(WorkerTask.java:57) ~[vertx-core-5.0.0.CR5.jar:?]
	at io.vertx.core@5.0.0.CR5/io.vertx.core.impl.TaskQueue.run(TaskQueue.java:81) ~[vertx-core-5.0.0.CR5.jar:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
	at io.netty.common@4.2.0.RC3/io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.2.0.RC3.jar:?]
	at java.base/java.lang.Thread.run(Thread.java:1575) [?:?]

@tsegismont
Copy link
Contributor

Thank you @GedMarc

@vietj this sounds like a candidate for replacement with inbound message queue

@vietj
Copy link
Member

vietj commented May 12, 2025

I think for now the client does not support modules and should be used outside of the module path as well.

@GedMarc
Copy link
Author

GedMarc commented May 12, 2025

I saw the planned release date from CR8 being this month :)
There's quite a few though- I've managed to create shades that modularize for me,

Is the goal still to reach modular level 3? :) I saw the vertx-mutiny as well, which is becoming painful to make compliant lol
Maybe it can assist though -

https://github.com/GuicedEE/Services/blob/master/Vert.x/vertx-rabbitmq/src/moditect/module-info.java
https://github.com/GuicedEE/Services/tree/master/Vert.x/vertx-mutiny

@vietj
Copy link
Member

vietj commented May 12, 2025

I' m looking into the issue for GA @GedMarc

@vietj
Copy link
Member

vietj commented May 12, 2025

@vietj vietj closed this as completed May 12, 2025
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