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

JIRA | arun singh | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    mongodb java driver - com.mongodb.MongoException: can't find a master

    Stack Overflow | 4 years ago | user826323
    com.mongodb.MongoException: can't find a master
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Data retrieval from mongodb java api

    Stack Overflow | 3 years ago | Jose Ramon
    com.mongodb.MongoException: interrupted at shutdown
  4. 0

    Lots of index failures throws error in Web UI

    GitHub | 3 years ago | jaxxstorm
    com.mongodb.MongoException: too much data for sort() with no index. add an index or specify a smaller limit

  1. sriharshakiran 2 times, last 12 months ago
5 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. com.mongodb.MongoException

    can't find a master

    at com.mongodb.DBTCPConnector.checkMaster()
  2. MongoDB Java Driver
    DBCursor.hasNext
    1. com.mongodb.DBTCPConnector.checkMaster(DBTCPConnector.java:437)
    2. com.mongodb.DBTCPConnector.call(DBTCPConnector.java:208)
    3. com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:313)
    4. com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:298)
    5. com.mongodb.DBCursor._check(DBCursor.java:369)
    6. com.mongodb.DBCursor._hasNext(DBCursor.java:492)
    7. com.mongodb.DBCursor.hasNext(DBCursor.java:517)
    7 frames
  3. test.real_mongo_0_1
    real_mongo.main
    1. test.real_mongo_0_1.real_mongo.tMongoDBInput_1Process(real_mongo.java:937)
    2. test.real_mongo_0_1.real_mongo.tMongoDBRow_1Process(real_mongo.java:540)
    3. test.real_mongo_0_1.real_mongo.tMongoDBConnection_1Process(real_mongo.java:410)
    4. test.real_mongo_0_1.real_mongo.runJobInTOS(real_mongo.java:1304)
    5. test.real_mongo_0_1.real_mongo.main(real_mongo.java:1163)
    5 frames