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.

Check if your MongoDB is available.


host port isnt set


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


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


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.


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.


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
    • Connection refused at Method) at at at at at at at com.sun.mail.util.SocketFetcher.createSocket( at com.sun.mail.util.SocketFetcher.getSocket( at com.sun.mail.smtp.SMTPTransport.openServer( at com.sun.mail.smtp.SMTPTransport.protocolConnect( at javax.mail.Service.connect( at javax.mail.Service.connect( at javax.mail.Service.connect( at javax.mail.Transport.send0( at javax.mail.Transport.send( at com.mslv.oms.automation.plugin.EmailNotificationAutomator.a(Unknown Source) at Source) at com.mslv.oms.automation.plugin.AbstractAutomator._runAutomator(Unknown Source) at com.mslv.oms.automation.plugin.EmailNotificationAutomator_q2nwa9_EOImpl._runAutomator( 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( at weblogic.ejb.container.internal.MDListener.transactionalOnMessage( at weblogic.ejb.container.internal.MDListener.onMessage( at weblogic.jms.client.JMSSession.onMessage( at weblogic.jms.client.JMSSession.execute( at weblogic.jms.client.JMSSession.executeMessage( at weblogic.jms.client.JMSSession.access$000( at weblogic.jms.client.JMSSession$ at at weblogic.kernel.ExecuteThread.execute( at

    Users with the same issue

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