ERROR - com.mongodb.MongoException - Possible Causes of MongoException

Exception Thrown By:Cause
ClassMethod
MongoClient public MongoClient(MongoClientURI uri) if theres a
failure.
MongoURI public Mongo connect() if
there's a failure.
MongoURI public DB connectDB() if
there's a failure.
DB public void dropDatabase() if the operation failed.
DB public Set getCollectionNames() if
the operation failed.