Unable to send email using TIBCO BW6 on Windows.

Unable to send email using TIBCO BW6 on Windows.

book

Article ID: KB0094192

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Description:
SendMail activity in BW 6.x fails when the application is running on Windows. However, a BW 5.x application with the same configuration works fine.
Symptoms:
When running the application with SendMail activity, the application fails with the following error:

javax.mail.MessagingException: Could not connect to SMTP host: <host_name>, port: <port>

Test connection for SMTP resource shows the below error:

Configuration error in field [Host] and/or [port], the value must be a valid hostname and/or port

Cause:
The reason for the error is that IPv6 is defaulted on Windows starting from JDK 7.

Issue/Introduction

Unable to send email using TIBCO BW6 on Windows.

Resolution

Add the following property in the JVM arguments. Run Configuration dialog in Studio or appNode.tra file.

"-Djava.net.preferIPv4Stack=true"

Additional Information

http://stackoverflow.com/questions/7477712/sending-email-using-jsp/7478027#7478027