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

Exception Thrown By:Cause
MongoClient public MongoClient(MongoClientURI uri) if theres a
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.