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)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by rvaneperen, 1 year ago
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
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(Mongo.java:574)
at com.mongodb.DBApiLayer$MyCollection.insert(DBApiLayer.java:241)
at com.mongodb.DBApiLayer$MyCollection.insert(DBApiLayer.java:211)
at com.mongodb.DBCollection.insert(DBCollection.java:57)
at com.mongodb.DBCollection.insert(DBCollection.java:102)
at com.snap.document.MongoDbHelper.insertDocument(MongoDbHelper.java:138)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.