com.mongodb.MongoServerSelectionException: Unable to connect to any server that satisfies the selector CompositeServerSelector{serverSelectors=[NoOpServerSelector{}, ReadPreferenceServerSelector{readPreference=primary}, LatencyMinimizingServerSelector{acceptableLatencyDifference=15, timeUnit=MILLISECONDS}]}
at com.mongodb.BaseCluster.getServer(BaseCluster.java:79)
at com.mongodb.DBTCPConnector.getServer(DBTCPConnector.java:649)
at com.mongodb.DBTCPConnector.access$300(DBTCPConnector.java:42)
at com.mongodb.DBTCPConnector$MyPort.getConnection(DBTCPConnector.java:508)
at com.mongodb.DBTCPConnector$MyPort.get(DBTCPConnector.java:456)
at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:287)
at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:272)
at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:77)
at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:60)
at com.mongodb.DBCollection.findOne(DBCollection.java:869)
at com.mongodb.DBCursor.one(DBCursor.java:677)
at com.mongodb.casbah.MongoCollectionBase$class.findOne(MongoCollection.scala:260)
at com.mongodb.casbah.MongoCollection.findOne(MongoCollection.scala:1109)
at com.adbrain.segment.store.casbah.CasbahSegmentDAO.getSegment(CasbahSegmentDAO.scala:87)
Everything works find if connect to a local instance of MongodDB.
I would be grateful for any suggestion to reolve the above.
Thanks in advance for any assistance !
Shing
--
You received this message because you are subscribed to the Google Groups "mongodb-casbah-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-casbah-u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
{ name : "Ross Lawley",
title : "Scala and Python Engineer",
location : "London, UK",
twitter : ["@RossC0", "@MongoDB", "@MongoDBInc"],
facebook : ["MongoDB", "MongoDB, Inc."] }