IBM Support

"The specified user name and password are not valid" error is generated when Adapter for Email V6.1 is configured to use "no security"

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.

[{"Product":{"code":"SSMKUK","label":"WebSphere Adapters Family"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Adapter for Email","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"6.1","Edition":"-NA-","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
15 June 2018

UID

swg21297905