com.mongodb.MongoException$Network

can't call something : /127.0.0.1:27017/imdb

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web62

  • via Unknown by Douglas Hubler,
  • via Unknown by Joseph Wang,
  • via GitHub by ignatov
    ,
  • Stack trace

    • com.mongodb.MongoException$Network: can't call something : /127.0.0.1:27017/imdb at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:227) at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:305) at com.mongodb.DBCollection.findOne(DBCollection.java:647) at com.mongodb.DBCollection.findOne(DBCollection.java:626) at Test.main(Test.java:14) Caused by: java.io.IOException: couldn't connect to [/127.0.0.1:27017] bc:java.net.ConnectException: Connection refused at com.mongodb.DBPort._open(DBPort.java:228) at com.mongodb.DBPort.go(DBPort.java:112) at com.mongodb.DBPort.call(DBPort.java:79) at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:218)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    abrazenebabrazeneb
    688 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitor2 times, last one
    Unknown visitor
    Unknown visitorOnce,