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 JIRA by rengith manickam, 1 year ago
couldn't connect to [ec2-XX-XXX-XX-XX.compute-1.amazonaws.com/XX.XXX.XX.XX:27017] bc:java.net.SocketTimeoutException: connect timed out
via JIRA by rengith manickam, 1 year ago
couldn't connect to [ec2-XX-XXX-XX-XX.compute-1.amazonaws.com/XX.XXX.XX.XX:27017] bc:java.net.SocketTimeoutException: connect timed out
via GitHub by joel-costigliola
, 2 years ago
couldn't connect to [/127.0.0.1:27017] bc:java.net.ConnectException: Connection refused
via Stack Overflow by Russ Bateman
, 1 year ago
couldn't connect to [russ-elite-book/127.0.1.1:27017] bc:java.net.ConnectException: Connection refused
via GitHub by timforgach
, 2 years ago
couldn't connect to [/127.0.0.1:0] bc:java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine
via JIRA by Alan Williamson, 1 year ago
couldn't connect to [/127.0.0.1:27017] bc:java.net.ConnectException: Connection refused: connect
java.io.IOException: couldn't connect to [ec2-XX-XXX-XX-XX.compute-1.amazonaws.com/XX.XXX.XX.XX:27017] bc:java.net.SocketTimeoutException: connect timed out	at com.mongodb.DBPort._open(DBPort.java:214)	at com.mongodb.DBPort.go(DBPort.java:107)	at com.mongodb.DBPort.go(DBPort.java:88)	at com.mongodb.DBPort.findOne(DBPort.java:143)	at com.mongodb.DBPort.runCommand(DBPort.java:148)	at com.mongodb.DBTCPConnector.initDirectConnection(DBTCPConnector.java:548)	at com.mongodb.DBTCPConnector.isMongosConnection(DBTCPConnector.java:372)	at com.mongodb.Mongo.isMongosConnection(Mongo.java:627)	at com.mongodb.DB.wrapCommand(DB.java:294)	at com.mongodb.DB.command(DB.java:272)	at com.mongodb.DB.command(DB.java:256)	at com.mongodb.DB.command(DB.java:313)	at com.mongodb.DB.command(DB.java:211)	at com.mongodb.DB.command(DB.java:326)