Troubleshooting
Problem
When the option "No security" is selected in a WebSphere Adapter for Email configuration and the SMTP server is open and does not require authentication, the following error is generated: "The specified user name and password are not valid."
Symptom
The following error is logged in the trace file:
00000061 LogUtils E com.ibm.j2ca.email.EmailManagedConnection execute CWYEM0003E: The specified user name and password are not valid. Explanation=The user name is the same as your e-mail account ID used with the e-mail server.
UserAction=Specify a valid user name and password in the Email InteractionSpec.
00000061 MCWrapper E J2CA0021E: An exception occurred while trying to get a connection from the Managed Connection resource <project>/adapters/EmailImport_CF :
javax.resource.spi.InvalidPropertyException: ERROR : Username or password is wrong please verify. username and password should match with that of Email account id and password.
Cause
Prior to version 6.1, the adapter did not pick the default connection specification properties from the ra.xml file as it now does in version 6.1. Therefore, the default values in the ra.xml file that were previously ignored in 6.0 and 6.0.2 are being used and must be removed.
Resolving The Problem
When no security is selected, the adapter picks a default password. The default password is picked from the managed connection factory properties of the ra.xml file located in CMYEM_Email/connectorModule/META-INF/ra.xml. It might be taking some default values for user name and password.
To resolve the problem, either remove the entries that correspond to the <config-property-value> of the user name and password properties, or set the values to an empty string.
.
Ensure that those default values are either not present or are empty, as shown in the following screen capture.

Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21297905