MongoDB compatibility issue with Rogue 2.2.0

25 views
Skip to first unread message

Roch Delsalle

unread,
Jul 2, 2014, 1:02:55 PM7/2/14
to rogue...@googlegroups.com
Hi,

I'm using Rogue 2.2.0 along with Lift at the moment and I ran into some compatibility issues. This is the error I'm getting : 

java.lang.NoSuchMethodError: com.mongodb.DBCursor.getReadPreference()Lcom/mongodb/ReadPreference;

at com.foursquare.rogue.MongoJavaDriverAdapter$$anonfun$count$1.apply$mcJ$sp(MongoJavaDriverAdapter.scala:61) ~[rogue-core_2.10-2.2.0.jar:2.2.0]

at com.foursquare.rogue.MongoJavaDriverAdapter$$anonfun$count$1.apply(MongoJavaDriverAdapter.scala:46) ~[rogue-core_2.10-2.2.0.jar:2.2.0]

at com.foursquare.rogue.MongoJavaDriverAdapter$$anonfun$count$1.apply(MongoJavaDriverAdapter.scala:46) ~[rogue-core_2.10-2.2.0.jar:2.2.0]

at com.foursquare.rogue.QueryHelpers$DefaultQueryLogger.onExecuteQuery(QueryHelpers.scala:43) ~[rogue-core_2.10-2.2.0.jar:2.2.0]

at com.foursquare.rogue.MongoJavaDriverAdapter.runCommand(MongoJavaDriverAdapter.scala:29) ~[rogue-core_2.10-2.2.0.jar:2.2.0]

at com.foursquare.rogue.MongoJavaDriverAdapter.count(MongoJavaDriverAdapter.scala:46) ~[rogue-core_2.10-2.2.0.jar:2.2.0]

at com.foursquare.rogue.QueryExecutor$class.count(QueryExecutor.scala:30) ~[rogue-core_2.10-2.2.0.jar:2.2.0]

at com.foursquare.rogue.LiftQueryExecutor.count(LiftQueryExecutor.scala:36) ~[rogue-lift_2.10-2.2.0.jar:2.2.0]

at com.foursquare.rogue.ExecutableQuery.count(ExecutableQuery.scala:20) ~[rogue-lift_2.10-2.2.0.jar:2.2.0]


Any Idea how I could solve/avoid this ?

Thanks,

Roch

Roch Delsalle

unread,
Jul 3, 2014, 5:41:47 PM7/3/14
to rogue...@googlegroups.com
My mistake,
There was jetty-nosql in my dependencies adding org.mongodb:mongo-java-driver:2.6.1 in my class path and breaking everything
Reply all
Reply to author
Forward
0 new messages