A fix is available
APAR status
Closed as program error.
Error description
javax.mail.AuthenticationFailedException is seen such as the following: 2010-06-10 09:02:02,648? - ERROR - ( FetchMailTask.java:98 ): Could not open Mail Connection javax.mail.AuthenticationFailedException at javax.mail.Service.connect(Service.java:306) at javax.mail.Service.connect(Service.java:156) at javax.mail.Service.connect(Service.java:105) 2010-06-10 09:02:02,649? - ERROR - ( FetchMailTask.java:263 ): Error occurred while reading mails... java.lang.IllegalStateException: Not connected at com.sun.mail.imap.IMAPStore.checkConnected (IMAPStore.java:1364) at com.sun.mail.imap.IMAPStore.getFolder(IMAPStore.java:1201)
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: All users of IBM WebSphere Application * * Server V7.0 * **************************************************************** * PROBLEM DESCRIPTION: If the mail transport or store port * * is specified for the mail session * * resources or if the username contains * * a special character such as "" in the * * username, * * javax.mail.AuthenticationFailedExceptio * * n is thrown when it tries to connect * * to the mail server. * **************************************************************** * RECOMMENDATION: * **************************************************************** The SessionFactory does not setPasswordAuthentication properly on the session resource in a way that getPasswordAuthentication could not get the Password to connect when the session has a mail transport or store port specified or the username contains an encoded character.
Problem conclusion
The SessionFactory is fixed to handle URLName and PasswordAuthenication properly when the mail transport or store port is specified or the username contains a speciail character. APAR PM23410 is currently targeted for inclusion in Service Level (Fix Pack) 7.0.0.15 of WebSphere Application Server V7.0. Please refer to URL: //www.ibm.com/support/docview.wss?rs=404&uid=swg27006970 for Fix Pack availability.
Temporary fix
Before connecting to store or transport, perform the following on the session returned from the lookup: session.setPasswordAuthentication( new UrlNameConstructor( protocol, host, intPort, null, user, null), new PasswordAuthentication( user, password ));
Comments
APAR Information
APAR number
PM23410
Reported component name
WEBSPHERE APP S
Reported component ID
5724J0800
Reported release
700
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2010-09-28
Closed date
2010-09-28
Last modified date
2010-09-30
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
WEBSPHERE APP S
Fixed component ID
5724J0800
Applicable component levels
R700 PSY
UP
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
25 October 2021