My Oracle Support Banner

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

Last updated on MAY 18, 2023

Applies to:

Oracle Workflow - Version to 12.1.3 [Release 11.5.10 to 12.1]
Information in this document applies to any platform.
*** ***


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:

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( at javax.mail.Service.connect(
255) at javax.mail.Service.connect( at javax.mail.Service.
connect( at


Additional diagnostic information:

The telnet test to the IMAP server on port 143 also fails with "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"


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.