com.mongodb.MongoException: can't find a master

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 swc...@sina.com, 2 years ago
via Google Groups by swc...@sina.com, 2 years ago
can't find a master
com.mongodb.MongoException: can't find a master
at com.mongodb.DBTCPConnector.checkMaster(DBTCPConnector.java:437)
at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:208)
at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:313)
at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:298)
at com.mongodb.DBCursor._check(DBCursor.java:369)
at com.mongodb.DBCursor._hasNext(DBCursor.java:492)
at com.mongodb.DBCursor.hasNext(DBCursor.java:517)
at test.real_mongo_0_1.real_mongo.tMongoDBInput_1Process(real_mongo.java:937)
at test.real_mongo_0_1.real_mongo.tMongoDBRow_1Process(real_mongo.java:540)
at test.real_mongo_0_1.real_mongo.tMongoDBConnection_1Process(real_mongo.java:410)
at test.real_mongo_0_1.real_mongo.runJobInTOS(real_mongo.java:1304)
at test.real_mongo_0_1.real_mongo.main(real_mongo.java:1163)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 times, 1 year ago
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
1 more bugmates

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