[JAVA-2321] java.lang.NoSuchMethodError: org.bson.codecs.BsonTypeClassMap.keys()Ljava/util/Set Created: 23/Sep/16  Updated: 11/Sep/19  Resolved: 02/Oct/16

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Sheik Tajudeen Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

With spring boot 1.4.0.Release, when the application boots up, getting the below error with bson codecs,

Using:

compile("org.mongodb:mongo-java-driver:3.3.0")
compile('org.mongodb:bson:3.3.0')

java.lang.NoSuchMethodError: org.bson.codecs.BsonTypeClassMap.keys()Ljava/util/Set; at org.bson.codecs.BsonTypeCodecMap.<init>(BsonTypeCodecMap.java:41) at com.mongodb.DBObjectCodec.<init>(DBObjectCodec.java:117) at com.mongodb.DBObjectCodec.<init>(DBObjectCodec.java:104) at com.mongodb.DBObjectCodec.<init>(DBObjectCodec.java:94) at com.mongodb.MongoClient.getCommandCodec(MongoClient.java:358) at com.mongodb.DB.<init>(DB.java:86) at com.mongodb.Mongo.getDB(Mongo.java:481) at org.springframework.data.mongodb.core.MongoDbUtils.doGetDB(MongoDbUtils.java:124) at org.springframework.data.mongodb.core.MongoDbUtils.getDB(MongoDbUtils.java:94)



 Comments   
Comment by Jeffrey Yemin [ 02/Oct/16 ]

See this mongodb-user thread for the resolution.

Generated at Thu Feb 08 08:56:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.