IBM Support

PM23410; 7.0.0.9: JAVAX.MAIL.AUTHENTICATIONFAILEDEXCEPTION is seen when

Download


Abstract

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.Authenticatio

Download Description

PM23410 resolves the following problem:

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.AuthenticationFailedException is thrown when it tries to connect to the mail server.

RECOMMENDATION:
None

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 special 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:
http://www.ibm.com/support/docview.wss?uid=swg27006970
for Fix Pack availability.

Prerequisites

Download the UpdateInstaller below to install this fix.

[{"PRLabel":"UpdateInstaller","PRLang":"US English","PRSize":"7250000","PRPlat":{"label":"AIX","code":"PF002"},"PRURL":"http://www.ibm.com/support/docview.wss?rs=180&uid=swg21205991"}]

Installation Instructions

Review the readme.txt for detailed installation instructions.

[{"INLabel":"Readme","INLang":"US English","INSize":"7612","INURL":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PM23410/readme.txt"}]
On
[{"DNLabel":"7.0.0.0-WS-WAS-IFPM23410","DNDate":"09-30-2010","DNLang":"US English","DNSize":"13735","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":"http://www.ibm.com/support/fixcentral/quickorder?fixids=7.0.0.0-WS-WAS-IFPM23410&product=ibm%2FWebSphere%2FWebSphere%20Application%20Server&source=dbluesearch","DNURL_FTP":null,"DDURL":null}]

Technical Support

Contact IBM Support using SR (http://www.ibm.com/software/support/probsub.html), visit the WebSphere Application Server support web site (http://www.ibm.com/software/webservers/appserv/was/support/), or contact 1-800-IBM-SERV (U.S. only).

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.0;7.0.0.1;7.0.0.11;7.0.0.3;7.0.0.5;7.0.0.7;7.0.0.9","Edition":"Base;Network Deployment","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg24028145