com.mongodb.MongoServerSelectionException

Unable to connect to any server that satisfies the selector CompositeServerSelector{serverSelectors=[NoOpServerSelector{}, ReadPreferenceServerSelector{readPreference=primary}, LatencyMinimizingServerSelector{acceptableLatencyDifference=15, timeUnit=MILLISECONDS}]}

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web4

  • via Unknown by Unknown author,
  • via GitHub by stray-leone
    ,
  • Stack trace

    • 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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.