com.mongodb.MongoServerSelectionException

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


Solutions on the web6

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

Solution icon of stackoverflow
Unable to connect to any server that matches {serverSelectors=[ReadPreferenceServerSelector{readPreference=primary}, LatencyMinimizingServerSelector{acceptableLatencyDifference=15 ms}]}

Solution icon of googlegroups
Unable to connect to any server that matches {serverSelectors=[ReadPreferenceServerSelector{readPreference=primary}, LatencyMinimizingServer│ot el│Selector{acceptableLatencyDifference=15 ms}]} │ ja│ at com.mongodb.BaseCluster.getServer(BaseCluster.java:80)

Solution icon of web
via openclassrooms.com by Unknown author, 1 year ago
Unable to connect to any server that matches AnyServerSelector{}

Solution icon of github
via GitHub by stray-leone
, 1 year ago
Unable to connect to any server that matches AnyServerSelector{}

Solution icon of stackoverflow
Unable to connect to any servers

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

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.