Send Email Activity failing with errorjava.net.SocketException: Network is unreachable: connect.
book
Article ID: KB0094431
calendar_today
Updated On:
Products
Versions
TIBCO ActiveMatrix BusinessWorks
-
Not Applicable
-
Description
Description: The same process may work on one machine but fail on another machine with the error: "<msg>Error sending mail message. Cause: javax.mail.MessagingException: Could not connect to SMTP host: abc.xyz.com, port: 25; nested exception is: java.net.SocketException: Network is unreachable: connect"
Issue/Introduction
Send Email Activity failing with errorjava.net.SocketException: Network is unreachable: connect.
Resolution
Add the following property in the designer tra file.
On dual stack machines, system properties are provided for setting the preferred protocol stack—IPv4 or IPv6—as well as the preferred address family types—inet4 or inet6. IPv6 stack is preferred by default since on a dual-stack machine IPv6 socket can talk to both IPv4 and IPv6 peers. This setting can be changed through the java.net.preferIPv4Stack=<true|false> system property.