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 GitHub by pthewizard
, 1 year ago
Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}. Client view of cluster state is {type=UNKNOWN, servers=[{address=10.10.64.179:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.ConnectException: Connection refused}}]
via Stack Overflow by kheffner
, 9 months ago
Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}. Client view of cluster state is {type=UNKNOWN, servers=[{address=[dbAddress]:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.SocketTimeoutException: connect timed out}}]
via GitHub by BTGBIMobile
, 1 year ago
Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}. Client view of cluster state is {type=UNKNOWN, servers=[{address=localhost:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.SocketTimeoutException: connect timed out}}]
via baidu.com by Unknown author, 2 years ago
Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}. Client view of cluster state is {type=REPLICA_SET, servers=[{address=zcdb-1:27017, type=UNKNOWN, state=CONNECTING, exception
via Google Groups by Tam Truong, 11 months ago
Timed out after 30000 ms while wai ting for a server that matches ReadPreferenceServerSelector{readPreference=prima ry}. Client view of cluster state is {type=UNKNOWN, servers=[{address=locahost:2 7017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketExceptio n: locahost}, *caused by* {java.net.UnknownHostException: locahost}}]
via oschina.net by Unknown author, 2 years ago
Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}. Client view of cluster state is {type=REPLICA_SET, servers=[{address=10.96.0.18:27017, type=UNKNOWN, state=CONNECTING, exception
com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}. Client view of cluster state is {type=UNKNOWN, servers=[{address=10.10.64.179:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.ConnectException: Connection refused}}]	at com.mongodb.connection.BaseCluster.createTimeoutException(BaseCluster.java:375)	at com.mongodb.connection.BaseCluster.selectServer(BaseCluster.java:104)	at com.mongodb.binding.ClusterBinding$ClusterBindingConnectionSource.(ClusterBinding.java:75)	at com.mongodb.binding.ClusterBinding$ClusterBindingConnectionSource.(ClusterBinding.java:71)	at com.mongodb.binding.ClusterBinding.getReadConnectionSource(ClusterBinding.java:63)	at com.mongodb.operation.OperationHelper.withConnection(OperationHelper.java:212)	at com.mongodb.operation.FindOperation.execute(FindOperation.java:483)	at com.mongodb.operation.FindOperation.execute(FindOperation.java:80)	at com.mongodb.Mongo.execute(Mongo.java:818)	at com.mongodb.Mongo$2.execute(Mongo.java:805)	at com.mongodb.FindIterableImpl$FindOperationIterable.first(FindIterableImpl.java:207)	at com.mongodb.FindIterableImpl.first(FindIterableImpl.java:148)	at com.relevantcodes.extentreports.reporter.ExtentXReporter.setupProject(ExtentXReporter.java:195)	at com.relevantcodes.extentreports.reporter.ExtentXReporter.start(ExtentXReporter.java:161)	at com.relevantcodes.extentreports.Report.attach(Report.java:38)	at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)	at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)	at com.relevantcodes.extentreports.ExtentReports.attachReporter(ExtentReports.java:11)	at ExtentReport.beforeTest(ExtentReport.java:61)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:86)	at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:514)	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:215)	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:142)	at org.testng.TestRunner.beforeRun(TestRunner.java:656)	at org.testng.TestRunner.run(TestRunner.java:624)	at org.testng.SuiteRunner.runTest(SuiteRunner.java:366)	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:361)	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:319)	at org.testng.SuiteRunner.run(SuiteRunner.java:268)	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1244)	at org.testng.TestNG.runSuitesLocally(TestNG.java:1169)	at org.testng.TestNG.run(TestNG.java:1064)	at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:126)	at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:152)	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:57)