com.mongodb.MongoException: java.io.IOException: ConnectEx failed

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 Josh Kim, 1 year ago
java.io.IOException: ConnectEx failed
via Stack Overflow by riccardo.cardin
, 11 months ago
java.io.IOException: Il computer remoto ha rifiutato la connessione di rete.
com.mongodb.MongoException: java.io.IOException: ConnectEx failed
at sun.nio.ch.WindowsAsynchronousSocketChannelImpl.connect0(Native Method)
at sun.nio.ch.WindowsAsynchronousSocketChannelImpl.access$200(WindowsAsynchronousSocketChannelImpl.java:43)
at sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.run(WindowsAsynchronousSocketChannelImpl.java:235)
at sun.nio.ch.WindowsAsynchronousSocketChannelImpl.implConnect(WindowsAsynchronousSocketChannelImpl.java:382)
at sun.nio.ch.AsynchronousSocketChannelImpl.connect(AsynchronousSocketChannelImpl.java:209)
at com.mongodb.connection.AsynchronousSocketChannelStream.openAsync(AsynchronousSocketChannelStream.java:79)
at com.mongodb.connection.AsynchronousSocketChannelStream.open(AsynchronousSocketChannelStream.java:61)
at com.mongodb.connection.InternalStreamConnection.open(InternalStreamConnection.java:114)
at java.lang.Thread.run(Thread.java:745)

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.