[JAVA-2590] java.lang.NoSuchMethodError when initiating Created: 30/Aug/17 Updated: 27/Oct/23 Resolved: 30/Aug/17 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API, Builders |
| Affects Version/s: | 3.5.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Rahadian Ahmad | Assignee: | Unassigned |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | crash | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows, Java 1.8, Gradle |
||
| Description |
|
I'm trying to initialize the client with this code: MongoClientURI clientURI = new MongoClientURI("mongodb://spammer:123mongo456@67.205.151.97/spammer"); but i got this exception: i installed the lib with gradle : |
| Comments |
| Comment by Jeffrey Yemin [ 30/Aug/17 ] |
|
The com.mongodb.connection.SslSettings.Builder#context method was introduced in the 3.5 release, so I suspect what's happening is that somewhere in your gradle configuration an older version of mongodb-driver-core is being pulled in. Try executing the dependencies gradle task to see the dependency tree for your project. It should help to determine where an older version of mongodb-driver-core is being pulled in. |