java.net.ConnectException

tip

host port isnt set

tip

Check if your MongoDB is available.


rp
tip

To restart the Selenium Webdriver mock browser in a testcase, first use 'driver.close()' and then reinstantiate the driver.

tip

Firewall might be blocking your connection, or MySQL it's not running on your server machine.


rafael
tip

Check if you have started your server, or if your server is set to listen to the port you're trying to connect and is waiting to accept connections and check if the firewall isn't blocking your connection.


rafael
tip

Check if ip adress is correct, if the port is correct, and if the server is up and running and waiting for connections. Also, check if there's no firewall blocking you and if your internet connection is working.


rafael
tip

spring-data-redis requires redis 2.6+ to work properly.

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

  • java.net.ConnectException: Connection timed out at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:117) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:178) at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304) at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445) at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106) at au.org.ala.biocache.util.LayersStore.samplingStatus(LayersStore.scala:155) at au.org.ala.biocache.util.LayersStore.sample(LayersStore.scala:51) at au.org.ala.biocache.tool.Sampling.processBatchRemote(Sampling.scala:463) at au.org.ala.biocache.tool.Sampling.sampling(Sampling.scala:367) at au.org.ala.biocache.tool.Sampling$.main(Sampling.scala:114) at au.org.ala.biocache.cmd.CMD2$.main(CMD2.scala:134) at au.org.ala.biocache.cmd.CMD2.main(CMD2.scala)

Users with the same issue

Unknown visitor1 times, last one,
batwalrus76
4 times, last one,
rocday
3 times, last one,
Andreas Häber
2 times, last one,
Unknown User
2 times, last one,
479 more bugmates