Send mail activity fails throwing the exception,"java.net.ConnectException: Connection refused: connect".
book
Article ID: KB0086165
calendar_today
Updated On:
Products
Versions
TIBCO ActiveMatrix BusinessWorks
-
Not Applicable
-
Description
Resolution: Description: ============ Send mail activity fails throwing the following exception:
<ns0:SendFailedException xmlns:ns0 = "http://schemas.tibco.com/bw/plugins/mail/5.0/mailExceptions"> <msg>Error sending mail message. Cause: javax.mail.MessagingException: Could not connect to SMTP host:<host name>, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect
Environment: ========= All
Symptoms: ======== User can access the host and port directly from the same machine. But when trying to connect to a mail server through BW, it fails to connect. The following exception is thrown:
<ns0:SendFailedException xmlns:ns0 = "http://schemas.tibco.com/bw/plugins/mail/5.0/mailExceptions"> <msg>Error sending mail message. Cause: javax.mail.MessagingException: Could not connect to SMTP host:<host name>, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect
Cause: ===== This can happen because of a firewall or antivirus program running on the machine. Antivirus blocks the port on which BW is trying to open a connection resulting in the exception, "java.net.ConnectException: Connection refused: connect".
Resolution: ======= Disable the firewall and antivirus software and try to connect to the mail server using BW.
Issue/Introduction
Send mail activity fails throwing the exception,"java.net.ConnectException: Connection refused: connect".