java.net.ConnectException: Connection refused >> at com.mongodb.DBPort._open(DBPort.java:222) [mongo-2.8.0.jar:] >> at com.mongodb.DBPort.go(DBPort.java:111) [mongo-2.8.0.jar:] >> at com.mongodb.DBPort.go(DBPort.java:92) [mongo-2.8.0.jar:] >> at com.mongodb.DBPort.findOne(DBPort.java:145) [mongo-2.8.0.jar:] >> at com.mongodb.DBPort.runCommand(DBPort.java:156) [mongo-2.8.0.jar:] >> at >> com.mongodb.DBTCPConnector.fetchMaxBsonObjectSize(DBTCPConnector.java:467)

Google Groups | rvaneperen | 4 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Re: Setting up Mongo on CentOs for remote access

    Google Groups | 4 years ago | rvaneperen
    java.net.ConnectException: Connection refused >> at com.mongodb.DBPort._open(DBPort.java:222) [mongo-2.8.0.jar:] >> at com.mongodb.DBPort.go(DBPort.java:111) [mongo-2.8.0.jar:] >> at com.mongodb.DBPort.go(DBPort.java:92) [mongo-2.8.0.jar:] >> at com.mongodb.DBPort.findOne(DBPort.java:145) [mongo-2.8.0.jar:] >> at com.mongodb.DBPort.runCommand(DBPort.java:156) [mongo-2.8.0.jar:] >> at >> com.mongodb.DBTCPConnector.fetchMaxBsonObjectSize(DBTCPConnector.java:467)
  2. 0

    Unable to connect to mongodb on AWS instance - com.mongodb.MongoSocketOpenException

    Stack Overflow | 2 years ago | Pratheeksha D
    java.net.ConnectException: Connection refused}}]
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.net.ConnectException

      Connection refused >> at com.mongodb.DBPort._open(DBPort.java:222) [mongo-2.8.0.jar:] >> at com.mongodb.DBPort.go(DBPort.java:111) [mongo-2.8.0.jar:] >> at com.mongodb.DBPort.go(DBPort.java:92) [mongo-2.8.0.jar:] >> at com.mongodb.DBPort.findOne(DBPort.java:145) [mongo-2.8.0.jar:] >> at com.mongodb.DBPort.runCommand(DBPort.java:156) [mongo-2.8.0.jar:] >> at >> com.mongodb.DBTCPConnector.fetchMaxBsonObjectSize(DBTCPConnector.java:467)

      at com.mongodb.Mongo.getMaxBsonObjectSize()
    2. MongoDB Java Driver
      DBCollection.insert
      1. com.mongodb.Mongo.getMaxBsonObjectSize(Mongo.java:574)
      2. com.mongodb.DBApiLayer$MyCollection.insert(DBApiLayer.java:241)
      3. com.mongodb.DBApiLayer$MyCollection.insert(DBApiLayer.java:211)
      4. com.mongodb.DBCollection.insert(DBCollection.java:57)
      5. com.mongodb.DBCollection.insert(DBCollection.java:102)
      5 frames
    3. com.snap.document
      MongoDbHelper.insertDocument
      1. com.snap.document.MongoDbHelper.insertDocument(MongoDbHelper.java:138)
      1 frame