Wed Oct 03 17:02:10 CEST 2012 Exception in thread "main" com.mongodb.MongoException: error creating initial database config information :: caused by :: ReplicaSetMonitor no master found for set: rs1 at com.mongodb.MongoException.parse(MongoException.java:82) at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:293) at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:274) at com.mongodb.DBCursor._check(DBCursor.java:368) at com.mongodb.DBCursor._hasNext(DBCursor.java:459) at com.mongodb.DBCursor.hasNext(DBCursor.java:484) at PrimaryPreferredTest.main(PrimaryPreferredTest.java:20)