3

While trying to access mongodb from my QA enviornment its showing the below error.

java.lang.NoSuchMethodError: com.mongodb.MongoClient.<init> (Ljava/util/List;Lcom/mongodb/MongoCredential;Lcom/mongodb/MongoClientOptions;)V]

The same is working from my local env. The mongo driver im using in 3.6.2 and java version is 1.8.

Please help

1 Answer 1

1

When I updated to version 3.8.0, it worked. My problem occurred because I've updated the Spring Data Mongo and forgot to update the Mongo Driver.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.