javax.mail.MessagingException: Could not connect to SMTP host: usdc2spam2.slingmedia.com, port: 9000; nested exception is: java.net.ConnectException: Connection refused: connect

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via Stack Overflow by LittlePanda

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

,
Expert tip

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

Solutions on the web

via Stack Overflow by SAR
, 11 months ago
Could not connect to SMTP host: usdc2spam2.slingmedia.com, port: 9000; nested exception is: java.net.ConnectException: Connection refused: connect
via Oracle Community by 917768, 1 year ago
Could not connect to SMTP host: localhost, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect
via java-samples.com by Unknown author, 1 year ago
Could not connect to SMTP host: smtp.gmail.com, port:25; nested exception is: java.net.ConnectException: Connection timed out: connect
via Oracle Community by 843830, 6 months ago
Could not connect to SMTP host: smtp.gmail.com, port: 587; nested exception is: java.net.SocketException: Malformed reply from SOCKS server
via blogspot.com by Unknown author, 2 years ago
Could not connect to SMTP host: smtp.gmail.com, port: 465
via knowcoding.com by Unknown author, 2 years ago
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 java.net.Socket.connect(Unknown Source)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:288)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:231)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1900)

Users with the same issue

142 times, 2 days ago
8 times, 3 days ago
552 times, 3 days ago
11 times, 6 days ago
26943 times, 6 days ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.