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

3.0.5: NoClassDefFoundError for mongo dependency #393

Open
mdeso opened this issue Oct 23, 2020 · 2 comments
Open

3.0.5: NoClassDefFoundError for mongo dependency #393

mdeso opened this issue Oct 23, 2020 · 2 comments

Comments

@mdeso
Copy link

mdeso commented Oct 23, 2020

If I switch to 3.0.5 I get a java.lang.NoClassDefFoundError: com/mongodb/internal/async/client/AsyncMongoClients. I assume that is due to the change to a legacy mongodb dependency in the build script.

@mdeso mdeso changed the title 3.0.5: NoClassDefFoundError 3.0.5: NoClassDefFoundError for mongo dependency Oct 23, 2020
@scullxbones
Copy link
Owner

Hi @nleso,

I'm not seeing that in the test suite, where I would expect to see it. Is it possible that the 4.1.1 scala driver is not in the classpath for some reason? I briefly looked at one of the maven poms and it looked sane.

@mdeso
Copy link
Author

mdeso commented Oct 26, 2020

I'm not sure how exactly this is caused - I'm only using an Akka framework in my Java application. The app uses MongoDB as the Akka Persistence storage and therefore this library as the driver. When I upgraded the dependency to 3.0.5 I got the described runtime error, without any other changes in my depedencies. If I change the version to 3.0.4 or lower the error no longer occurs. When looking into the sole commit of 3.0.5 (7fcd25d) I noticed that the MongoDB dependency has been changed from mongodb-driver to mongodb-driver-legacy. So I assumed that this causes the dependency error.

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

No branches or pull requests

2 participants