java.util.concurrent.CompletionException: com.mongodb.MongoTimeoutExc eption: Timed out after 30000 ms while waiting for a server that matches ReadPre ferenceServerSelector{readPreference=primary}. Client view of cluster state is { type=UNKNOWN, servers=[{address=locahost:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketException: locahost}, caused by {java.net.Unkn ownHostException: locahost}}]

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 Tam Truong, 5 months ago
com.mongodb.MongoTimeoutExc eption: Timed out after 30000 ms while waiting for a server that matches ReadPre ferenceServerSelector{readPreference=primary}. Client view of cluster state is { type=UNKNOWN, servers=[{address=locahost:27017, type
via GitHub by pizirun
, 1 year ago
net.kuujo.copycat.protocol.ProtocolException: Invalid server address bar
via GitHub by schleichardt
, 1 year ago
io.sphere.sdk.http.HttpException: The underlying HTTP client detected a problem.
via GitHub by electrum
, 1 year ago
java.lang.IllegalArgumentException: size is negative
via GitHub by atomsfat
, 11 months ago
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "prefix" (class com.neovim.ApiInfo$Id), not marked as ignorable (one known property: "id"]) at [Source: N/A; line: -1, column: -1] (through reference chain: com.neovim.ApiInfoHolder["apiInfo"]->com.neovim.ApiInfo["types"]->java.util.LinkedHashMap["Buffer"]->com.neovim.Id["prefix"])
via Google Groups by Unknown author, 5 months ago
java.lang.IllegalArgumentException: size is negative
java.util.concurrent.CompletionException: com.mongodb.MongoTimeoutExc eption: Timed out after 30000 ms while waiting for a server that matches ReadPre ferenceServerSelector{readPreference=primary}. Client view of cluster state is { type=UNKNOWN, servers=[{address=locahost:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketException: locahost}, caused by {java.net.Unkn ownHostException: locahost}}]
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292)
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308)
at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:593)
at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577)
at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)
at scala.concurrent.java8.FuturesConvertersImpl$CF.apply(FutureConvertersImpl.scala:21)
at scala.concurrent.java8.FuturesConvertersImpl$CF.apply(FutureConvertersImpl.scala:18)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

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