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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Unknown author, 1 year ago
Unable to connect to any server that satisfies the selector CompositeServerSelector{serverSelectors=[NoOpServerSelector{}, ReadPreferenceServerSelector{readPreference=primary}, LatencyMinimizingServerSelector{acceptableLatencyDifference=15, timeUnit=MILLISECONDS}]}
via Stack Overflow by user2269170
, 8 months ago
Unable to connect to any server that matches {serverSelectors=[ReadPreferenceServerSelector{readPreference=primary}, LatencyMinimizingServerSelector{acceptableLatencyDifference=15 ms}]}
via openclassrooms.com by Unknown author, 2 years ago
Unable to connect to any server that matches AnyServerSelector{}
via GitHub by stray-leone
, 1 year ago
Unable to connect to any server that matches AnyServerSelector{}
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)

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.

Know the solutions? Share your knowledge to help other developers to debug faster.