[JAVA-1967] IncompatibleClassChangeError: Class com.mongodb.connection.ByteBufferBsonOutput does not implement the requested interface org.bson.io.BsonOutput Created: 16/Sep/15 Updated: 11/Sep/19 Resolved: 17/Sep/15 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | None |
| Affects Version/s: | 3.0.4 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Noam Dayan | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
windows 10, java 8, Spring 4.2, morphia 1.0.1 |
||
| Description |
|
I've upgraded my code from morphia version 0.108 to 1.0.1. -127.0.0.1:27017] INFO org.mongodb.driver.cluster - Exception in monitor thread while connecting to server 127.0.0.1:27017 My code: String[] addresses = mongoHosts.split(","); if (addresses == null || addresses.length == 0) { throw new BeanCreationException("At least one MongoDB address must be specified."); }ArrayList<ServerAddress> listOfAddresses = new ArrayList<ServerAddress>(); try { return new MongoClient(listOfAddresses, mongoOptions); } catch (NumberFormatException | MongoException e) { throw new BeanCreationException(e.toString(), e); } |
| Comments |
| Comment by Noam Dayan [ 17/Sep/15 ] |
|
The issue was fixed. |
| Comment by Jeffrey Yemin [ 16/Sep/15 ] |
|
Try removing this one:
|
| Comment by Noam Dayan [ 16/Sep/15 ] |
|
This is the classpath: Thanks. |
| Comment by Jeffrey Yemin [ 16/Sep/15 ] |
|
Seems like a classpath issue. Can you post your classpath please? |