java.lang.NoSuchMethodError: com.mongodb.ConnectionString.getRetryWritesValue()Ljava/lang/Boolean
up vote
0
down vote
favorite
I was trying to move to mongodb new drivers from 3.8 to 3.9.
After the change, I then get this error:
java.lang.NoSuchMethodError: com.mongodb.ConnectionString.getRetryWritesValue()Ljava/lang/Boolean
Here is my connection string:
String connectionString = "mongodb://admin:admin@localhost:27017/?authSource=test&connectTimeoutMS=30000"
And here is the line throwing exception:
new MongoClient(new MongoClientURI(connectionString));
java mongodb
add a comment |
up vote
0
down vote
favorite
I was trying to move to mongodb new drivers from 3.8 to 3.9.
After the change, I then get this error:
java.lang.NoSuchMethodError: com.mongodb.ConnectionString.getRetryWritesValue()Ljava/lang/Boolean
Here is my connection string:
String connectionString = "mongodb://admin:admin@localhost:27017/?authSource=test&connectTimeoutMS=30000"
And here is the line throwing exception:
new MongoClient(new MongoClientURI(connectionString));
java mongodb
You might be missing the Mongo Java Driver .jar from your classpath. Q: Do you have it? Q: Are you using Maven or Gradle? Here are the 3.8 API and 3.9 API docs.
– paulsm4
Nov 11 at 2:06
i am using maven
– cool cool
Nov 11 at 13:43
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I was trying to move to mongodb new drivers from 3.8 to 3.9.
After the change, I then get this error:
java.lang.NoSuchMethodError: com.mongodb.ConnectionString.getRetryWritesValue()Ljava/lang/Boolean
Here is my connection string:
String connectionString = "mongodb://admin:admin@localhost:27017/?authSource=test&connectTimeoutMS=30000"
And here is the line throwing exception:
new MongoClient(new MongoClientURI(connectionString));
java mongodb
I was trying to move to mongodb new drivers from 3.8 to 3.9.
After the change, I then get this error:
java.lang.NoSuchMethodError: com.mongodb.ConnectionString.getRetryWritesValue()Ljava/lang/Boolean
Here is my connection string:
String connectionString = "mongodb://admin:admin@localhost:27017/?authSource=test&connectTimeoutMS=30000"
And here is the line throwing exception:
new MongoClient(new MongoClientURI(connectionString));
java mongodb
java mongodb
edited Nov 11 at 2:03
Bsquare
1,8541525
1,8541525
asked Nov 10 at 21:25
cool cool
23
23
You might be missing the Mongo Java Driver .jar from your classpath. Q: Do you have it? Q: Are you using Maven or Gradle? Here are the 3.8 API and 3.9 API docs.
– paulsm4
Nov 11 at 2:06
i am using maven
– cool cool
Nov 11 at 13:43
add a comment |
You might be missing the Mongo Java Driver .jar from your classpath. Q: Do you have it? Q: Are you using Maven or Gradle? Here are the 3.8 API and 3.9 API docs.
– paulsm4
Nov 11 at 2:06
i am using maven
– cool cool
Nov 11 at 13:43
You might be missing the Mongo Java Driver .jar from your classpath. Q: Do you have it? Q: Are you using Maven or Gradle? Here are the 3.8 API and 3.9 API docs.
– paulsm4
Nov 11 at 2:06
You might be missing the Mongo Java Driver .jar from your classpath. Q: Do you have it? Q: Are you using Maven or Gradle? Here are the 3.8 API and 3.9 API docs.
– paulsm4
Nov 11 at 2:06
i am using maven
– cool cool
Nov 11 at 13:43
i am using maven
– cool cool
Nov 11 at 13:43
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53243558%2fjava-lang-nosuchmethoderror-com-mongodb-connectionstring-getretrywritesvaluel%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You might be missing the Mongo Java Driver .jar from your classpath. Q: Do you have it? Q: Are you using Maven or Gradle? Here are the 3.8 API and 3.9 API docs.
– paulsm4
Nov 11 at 2:06
i am using maven
– cool cool
Nov 11 at 13:43