java.net.ConnectException: Connection refused

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Check if your MongoDB is available.


rp
tip

host port isnt set

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.

  • OSM is not able to send the mail
    via by 880544,
  • Code Smart
    via by Unknown author,
  • Mail Session Error
    via by the_assface,
  • Sending E mail in BPM
    via by 799106,
  • Mail error
    via GitHub by manjoel
    ,
    • java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:525) at java.net.Socket.connect(Socket.java:475) at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232) at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189) at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1250) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370) at javax.mail.Service.connect(Service.java:275) at javax.mail.Service.connect(Service.java:156) at javax.mail.Service.connect(Service.java:105) at javax.mail.Transport.send0(Transport.java:168) at javax.mail.Transport.send(Transport.java:98) at com.mslv.oms.automation.plugin.EmailNotificationAutomator.a(Unknown Source) at com.mslv.oms.automation.plugin.EmailNotificationAutomator.run(Unknown Source) at com.mslv.oms.automation.plugin.AbstractAutomator._runAutomator(Unknown Source) at com.mslv.oms.automation.plugin.EmailNotificationAutomator_q2nwa9_EOImpl._runAutomator(EmailNotificationAutomator_q2nwa9_EOImpl.java:63) at com.mslv.oms.automation.AutomationDispatcher.a(Unknown Source) at com.mslv.oms.automation.plugin.AutomationEventHandlerImpl.processMessage(Unknown Source) at com.mslv.oms.automation.AutomationDispatcher.onLocalMessage(Unknown Source) at com.mslv.oms.automation.plugin.AutomationEventHandlerImpl.a(Unknown Source) at com.mslv.oms.automation.plugin.c.a(Unknown Source) at oracle.communications.ordermanagement.cluster.message.ClusterMessageHandlerBean.onMessage(Unknown Source) at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466) at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371) at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327) at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4585) at weblogic.jms.client.JMSSession.execute(JMSSession.java:4271) at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3747) at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114) at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5096) at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)

    Users with the same issue

    Unknown visitor1 times, last one,
    Axelo
    Axelo1 times, last one,
    batwalrus76
    batwalrus764 times, last one,
    musketyr
    musketyr2 times, last one,
    Eric Henderson
    Eric Henderson16 times, last one,
    478 more bugmates