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

Transitive dependency problem with Zookeeper and Curator5 log jars #13188

Closed
oxsean opened this issue Oct 11, 2023 · 0 comments
Closed

Transitive dependency problem with Zookeeper and Curator5 log jars #13188

oxsean opened this issue Oct 11, 2023 · 0 comments
Labels
type/bug Bugs to being fixed

Comments

@oxsean
Copy link
Collaborator

oxsean commented Oct 11, 2023

Environment

  • Dubbo version: 3.3
  • Operating System version: Windows 11
  • Java version: 1.8

Steps to Reproduce the Issue

  1. Create a dubbo application with dependencies on dubbo-registry-zookeeper and dubbo-remoting-zookeeper-curator5, start the app.

Example

You can find an example here. Provider by @chickenlj

Expected Behavior

The application should start successfull.

Actual Behavior

After starting, the following error occurs: Exception in thread "main" java.lang.IllegalArgumentException: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath.

Proposal

The root cause is that Zookeeper and Curator5 bring in transitive dependencies of log4j and older versions of slf4j-api, leading to a log component conflict.
image
image

Exclude the relevant log jars. In a properly configured application, it will directly include the required log jars. Indirectly dependencies can leading to jar version mistake.

@oxsean oxsean added the type/bug Bugs to being fixed label Oct 11, 2023
oxsean added a commit to oxsean/dubbo that referenced this issue Oct 11, 2023
oxsean added a commit to oxsean/dubbo that referenced this issue Oct 17, 2023
oxsean added a commit to oxsean/dubbo that referenced this issue Oct 18, 2023
oxsean added a commit to oxsean/dubbo that referenced this issue Oct 18, 2023
oxsean added a commit to oxsean/dubbo that referenced this issue Oct 18, 2023
oxsean added a commit to oxsean/dubbo that referenced this issue Oct 19, 2023
oxsean added a commit to oxsean/dubbo that referenced this issue Oct 19, 2023
oxsean added a commit to oxsean/dubbo that referenced this issue Oct 20, 2023
oxsean added a commit to oxsean/dubbo that referenced this issue Oct 29, 2023
oxsean added a commit to oxsean/dubbo that referenced this issue Oct 29, 2023
oxsean added a commit to oxsean/dubbo that referenced this issue Oct 30, 2023
oxsean added a commit to oxsean/dubbo that referenced this issue Oct 30, 2023
oxsean added a commit to oxsean/dubbo that referenced this issue Oct 30, 2023
oxsean added a commit to oxsean/dubbo that referenced this issue Oct 30, 2023
oxsean added a commit to oxsean/dubbo that referenced this issue Oct 30, 2023
oxsean added a commit to oxsean/dubbo that referenced this issue Oct 30, 2023
oxsean added a commit to oxsean/dubbo that referenced this issue Oct 30, 2023
AlbumenJ pushed a commit that referenced this issue Nov 2, 2023
@oxsean oxsean closed this as completed Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Bugs to being fixed
Projects
None yet
Development

No branches or pull requests

1 participant