Skip to content

Incompatible wtih Mongo Java Driver 4.5 #3963

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
hantsy opened this issue Feb 14, 2022 · 3 comments
Closed

Incompatible wtih Mongo Java Driver 4.5 #3963

hantsy opened this issue Feb 14, 2022 · 3 comments
Labels
status: invalid An issue that we don't feel is valid

Comments

@hantsy
Copy link

hantsy commented Feb 14, 2022

Update to 4.4->4.5.0, there is an exception like this.

Handler dispatch failed; nested exception is java.lang.NoSuchMethodError:
 'int com.mongodb.internal.binding.ReadBinding.release()'

The Github Actions log: https://github.com/hantsy/spring6-sandbox/runs/5181552934?check_suite_focus=true

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 14, 2022
@hantsy hantsy changed the title Incompatible wtih Mongo Java Driver 4.5.1 Incompatible wtih Mongo Java Driver 4.5 Feb 14, 2022
@mp911de
Copy link
Member

mp911de commented Feb 14, 2022

Care to provide more details? Currently, main (Spring Data MongoDB 3.4 snapshots) and the 3.3.x branch (Spring Data MongoDB 3.3.2 snapshots) were upgraded to MongoDB driver 4.5 via #3962. Please make sure to use consistent versions. It's also a good reminder to ask MongoDB to provide a driver BOM.

@mp911de mp911de added the status: waiting-for-feedback We need additional information before we can continue label Feb 14, 2022
@hantsy
Copy link
Author

hantsy commented Feb 14, 2022

@mp911de Currently I am using the latest milestones of all spring projects in my sample projects. The data-mongo sample is here, all tests are failed in PR: spring-sandbox#37. The project is NOT based on Spring Boot, see Mongo Config check if I miss something.

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Feb 14, 2022
@mp911de
Copy link
Member

mp911de commented Feb 15, 2022

This is because the PR doesn't consider that Spring Data MongoDB depends on org.mongodb:mongodb-driver-core:4.4.1. If you update the top-level dependency mongodb-driver-sync to 4.5, then you create an incompatibility between mongodb-driver-sync and mongodb-driver-core. As per my previous comment, you need to ensure consistent dependency versions across the MongoDB artifacts.

@mp911de mp911de closed this as completed Feb 15, 2022
@mp911de mp911de added status: invalid An issue that we don't feel is valid and removed status: waiting-for-triage An issue we've not yet triaged status: feedback-provided Feedback has been provided labels Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: invalid An issue that we don't feel is valid
Projects
None yet
Development

No branches or pull requests

3 participants