java.security.PrivilegedActionException: java.net.ConnectException: Connection refused: connect

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

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

tip

Check if your MongoDB is available.


rp
tip

host port isnt set

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

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

  • H2 in Servermode Url,File,Port,Parameters Question
    via by Christian123456789,
  • Distributed Testing with Jmeter
    via Stack Overflow by HappyDev
    ,
  • Grid 2 testers
    via by Unknown author,
    • java.security.PrivilegedActionException: java.net.ConnectException: Connection refused: connect at java.security.AccessController.doPrivileged(Native Method) at org.apache.derby.impl.store.replication.net.ReplicationMessageTransmit.initConnection(Unknown Source) at org.apache.derby.impl.store.replication.master.MasterController.handleExceptions(Unknown Source) at org.apache.derby.impl.store.replication.master.AsynchronousLogShipper.run(Unknown Source) Caused by: java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at org.apache.derby.impl.store.replication.net.ReplicationMessageTransmit$1.run(Unknown Source) ... 4 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    jf-ast
    jf-ast3 times, last one,
    Axelo
    Axelo2 times, last one,
    Andreas Häber
    Andreas Häber2 times, last one,
    478 more bugmates