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

Client dependency conflict, cause NoClassDefFoundError. Require for shaded client #6264

Open
HScarb opened this issue Mar 7, 2023 · 2 comments
Labels
dependencies Pull requests that update a dependency file type/question

Comments

@HScarb
Copy link
Contributor

HScarb commented Mar 7, 2023

I run into an issue identical to https://blog.51cto.com/u_15127641/2875028
In rocketmq_client.log:

java.lang.NoClassDefFoundError:Could not initialize class org.apache.rocketmq.common.message.MessageClientIDSetter

And it is caused by package conflict.


These issues will appear since Rocketmq clients share the same package with users' service.
It would be better to have a shaded client, which dependencies are in an individual package.

Ref: https://github.com/apache/pulsar/blob/master/pulsar-client-shaded/pom.xml

@aaron-ai
Copy link
Member

aaron-ai commented Mar 7, 2023

RocketMQ 5.x client provides the shaded jar. which you could refer to here.

@Oliverwqcwrw Oliverwqcwrw added type/question dependencies Pull requests that update a dependency file labels Mar 8, 2023
@GoodAjman
Copy link

GoodAjman commented Aug 10, 2023

Dependency conflicts
commons-validator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file type/question
Projects
None yet
Development

No branches or pull requests

4 participants