[JAVA-849] No Such Method Exception When Instantiating Mongo Client Created: 07/Jun/13 Updated: 19/Oct/16 Resolved: 07/Jun/13 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Mike Delano | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
When creating a new mongo client:
I'm getting an exception:
I have recreated this issue on the following version of the java driver: 2.11.1 OS: Ubuntu 12.04 LTS My code is as follows:
|
| Comments |
| Comment by Jeffrey Yemin [ 07/Jun/13 ] |
|
No problem. |
| Comment by Mike Delano [ 07/Jun/13 ] |
|
I found the issue. You were right, we were using Kundera which had an older version dependency. I've updated to 2.11 and it's resolved. Thanks Jeff. |
| Comment by Jeffrey Yemin [ 07/Jun/13 ] |
|
I bet you have an older version of the driver in your classpath. Try running with -verbose:class to see where the ReadPreference class is being loaded from. |