Couldn't connect to my Database (SaslClient not found)
Merkost opened this issue · 3 comments
Merkost commented
Hello everyone! Today I was trying to connect to my database, but I got the next stacktrace:
java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/security/sasl/SaslClient;
at com.mongodb.internal.connection.DefaultAuthenticator.getAuthenticatorForHello(DefaultAuthenticator.java:105)
What can I do about it? Is there any solution for this?
My db connection is without SSL
Thanks in advance!
zigzago commented
Hello,
What is the environment? And the jvm version?
Merkost commented
I am using android studio with Java 11
zigzago commented
the mongo java driver is not supported on Android.
See https://jira.mongodb.org/browse/JAVA-1958
& https://gitlab.com/mvysny/umn/-/issues/1