java.net.ConnectException

tip

Check if your MongoDB is available.


rprp
tip

host port isnt set

tip

Check if your server (or a proxy server) is not going up and down. There might be something between a proxy and a client sending intermittent requests to non-functioning hosts as well. There might as well be too many requests in a short amount of time.

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.


rafaelrafael
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.


rafaelrafael
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.


rafaelrafael
tip

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

tip

Check if your server (or a proxy server) is not going up and down. There might be something between a proxy and a client sending intermittent requests to non-functioning hosts as well. There might as well be too many requests in a short amount of time.

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

  • Upload file FTP server
    via Stack Overflow by Souvik
    ,
  • Huge question about developing
    via by ali amiri,
  • Remote API call: I/O error
    via by Steve Roy,
  • linhaibin
    via by Unknown author,
    • java.net.ConnectException: Connection refused at net.jini.jeri.BasicInvocationHandler.wrapSafeIOException(Unknown Source) at net.jini.jeri.BasicInvocationHandler.invokeRemoteMethodOnce(Unknown Source) at net.jini.jeri.BasicInvocationHandler.invokeRemoteMethod(Unknown Source) at net.jini.jeri.BasicInvocationHandler.invoke(Unknown Source) at com.sun.jini.reggie.$Proxy0.lookup(Unknown Source) at com.sun.jini.reggie.RegistrarProxy.lookup(RegistrarProxy.java:112) at client.TransAbstractConfigurationClient.discovered(TransAbstractConfigurationClient.java:111) at net.jini.discovery.LookupDiscovery$Notifier$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at net.jini.discovery.LookupDiscovery$Notifier.run(Unknown Source) Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384) at java.net.Socket.connect(Socket.java:546) at net.jini.jeri.tcp.TcpEndpoint$ConnectionEndpointImpl.connectToSocketAddress(UnknownSource) at net.jini.jeri.tcp.TcpEndpoint$ConnectionEndpointImpl.connectToHost(UnknownSource) at net.jini.jeri.tcp.TcpEndpoint$ConnectionEndpointImpl.connect(Unknown Source) at net.jini.jeri.connection.ConnectionManager.connect(Unknown Source) at net.jini.jeri.connection.ConnectionManager$ReqIterator.next(Unknown Source) at net.jini.jeri.BasicObjectEndpoint$1.next(Unknown Source) ... 9 more

    Users with the same issue

    tvrmsmithtvrmsmith
    11 times, last one,
    batwalrus76batwalrus76
    4 times, last one,
    musketyrmusketyr
    2 times, last one,
    Eric HendersonEric Henderson
    16 times, last one,
    raytestraytest
    2 times, last one,
    479 more bugmates