Wed Oct 03 16:43:14 CEST 2012 com.mongodb.MongoException: error creating initial database config information :: caused by :: socket exception [CONNECT_ERROR] for rs1/mongo1:27017,mongo2:27017 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:16) done