tc / RMongo

R client to interface with MongoDB
102 stars 34 forks source link

JavaIO exception #4

Closed skilpinen closed 13 years ago

skilpinen commented 13 years ago

I encountered following problem:

library(RMongo) Loading required package: rJava Loading required package: RUnit mongo.con<-mongoDbConnect("tickets",host="localhost",port=27017) dbShowCollections(mongo.con) Feb 4, 2011 7:01:39 PM com.mongodb.DBTCPConnector$MyPort error SEVERE: MyPort.error called java.io.IOException: couldn't connect to [machine.name/127.0.1.1:27017] bc:java.net.ConnectException: Connection refused at com.mongodb.DBPort._open(DBPort.java:172) at com.mongodb.DBPort.go(DBPort.java:79) at com.mongodb.DBPort.call(DBPort.java:55) at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:201) at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:256) at com.mongodb.DB.getCollectionNames(DB.java:200) at com.quid.RMongo.dbShowCollections(RMongo.scala:24)

Any attempt to use the connection object leads to similar kind of error. Any help is appreciated. MongoDB has been setup and there is collection "tickets".

skilpinen commented 13 years ago

Sorry, solved, just the matter of wrong lo address. Might be useful to give more informative error in this case.