javax.mail.MessagingException: Could not connect to SMTP host: 10.149.24.5, port: 25

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

,

You are not deploying the oracle driver with the application. Place the driver jars in a shared or library extension folder of your application server. (You should go with option one or two though

,
Expert tip

This might be an issue with the file location in the Spark submit command. Try it with

spark-submit --master spark://master:7077 \
     hello_world_from_pyspark.py {file location}

Solutions on the web

via exoplatform.com by Unknown author, 1 year ago
Could not connect to SMTP host: 10.149.24.5, port: 25
via Oracle Community by 843830, 1 year ago
Could not connect to SMTP host: XXXXXX, port: 25, response: -1
via Oracle Community by 843834, 1 year ago
Could not connect to SMTP host: 172.17.240.7, port: 25; nested exception is: java.net.SocketException: Software caused connection abort: connect
via Stack Overflow by CorporateSlave
, 1 week ago
Could not connect to SMTP host: mail.value-exch.com, port: 25, response: -1
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 blogspot.com by Unknown author, 1 year ago
Could not connect to SMTP host: smtp.gmail.com, port: 465
javax.mail.MessagingException: Could not connect to SMTP host: 10.149.24.5, port: 25
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at com.sun.mail.util.SocketFetcher.getSocketFactory(SocketFetcher.java:326)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:191)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
1421 more bugmates

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