AuthenticationFailedException and 'Command Received in Invalid State' When Configuring Mailer (Doc ID 853484.1)

Last updated on OCTOBER 06, 2016

Applies to:

Oracle Workflow - Version 11.5.10.2 to 12.1.3 [Release 11.5.10 to 12.1]
Information in this document applies to any platform.
Checked for relevance on 19-AUG-2012
***Checked for relevance on 6-Oct-2016***

Symptoms

You are configuring workflow notification mailer in Oracle Application Manager (OAM). After entering information in the E-Mail Servers page (ie the page where the Inbound and Outbound E-Mail servers are defined); you receive the following error:

Error:
Unhandled Exception when creating a folder -> javax.mail.AuthenticationFailedException: Command received in Invalid state.

Stack Trace -> javax.mail.AuthenticationFailedException:
Command received in Invalid state. at com.sun.mail.imap.IMAPStore.
protocolConnect(IMAPStore.java:330) at javax.mail.Service.connect(Service.java:
255) at javax.mail.Service.connect(Service.java:134) at javax.mail.Service.
connect(Service.java:86) at oracle.apps.fnd.wf.mailer.Mailer.createFo
lders(Mailer.java:2845)...

 

Additional diagnostic information:

The telnet test to the IMAP server on port 143 also fails with "Command received in Invalid state":

telnet imap_server_name 143 
Trying XX.XX.XX.XX... 
Connected to imap_server_name (XX.XX.XX.XX). 
Escape character is '^]'. 
* OK The Microsoft Exchange IMAP4 service is ready. 
1 login account password  
1 BAD Command received in Invalid state.


For further details on how to perform this test please refer to step b) Verify IMAP server in <Note 242941.1> "How To Troubleshoot Java-based Workflow Notification Mailer"

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms