Using TLS Protocol For IMAP Server (Office365, GMAIL, Cloud, etc) to connect with Oracle Workflow Mailer Causes Validation Error, Log File Shows java.io.IOException: Connection dropped by server?

(Doc ID 2051685.1)

Last updated on SEPTEMBER 28, 2017

Applies to:

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

Symptoms

On Oracle Applications 12.1.3, the Workflow Java Mailer Validation errors with the following:

[Jul 31, 2015 4:34:56 PM EDT]:1438374896083:-1:-1:l123437hostname.oracle.com:123-1:-1:1:20420:SYSADMIN(0):-1:Thread[main,5,main]:1297943267:46237:1438374894631:0:EXCEPTION:[MLRTST : oracle.apps.fnd.wf.mailer.MailerUtils.hostConnectionTest(WorkflowContext, Logger, Properties)]:Server {outlook.office365.com} at port {993} is reachable
[Jul 31, 2015 4:34:56 PM EDT]:1438374896095:-1:-1:l123437hostname.oracle.com:123-1:1:20420:SYSADMIN(0):-1:Thread[main,5,main]:1297943267:46237:1438374894631:0:STATEMENT:[MLRTST : oracle.apps.fnd.wf.mailer.IMAPUtils.storeTest(WorkflowContext, Logger, Properties)]:The IMAP SECURE protocol property -> {NONE}
[Jul 31, 2015 4:34:56 PM EDT]:1438374896095:-1:-1:l123437hostname.oracle.com123:-1:-1:1:20420:SYSADMIN(0):-1:Thread[main,5,main]:1297943267:46237:1438374894631:0:EXCEPTION:[MLRTST : oracle.apps.fnd.wf.mailer.IMAPUtils.storeTest(WorkflowContext, Logger, Properties)]:Debug property -> {true}
[Jul 31, 2015 4:35:57 PM EDT]:1438374957067:-1:-1:l123437hostname.oracle.com:123-1:-1:1:20420:SYSADMIN(0):-1:Thread[main,5,main]:1297943267:46237:1438374894631:0:ERROR:[MLRTST : oracle.apps.fnd.wf.mailer.IMAPUtils.storeTest(WorkflowContext, Logger, Properties)]:Test did not complete successfully -> javax.mail.MessagingException: Connection dropped by server?;
  nested exception is:
java.io.IOException: Connection dropped by server?
Stack Trace
javax.mail.MessagingException: Connection dropped by server?;
  nested exception is:
java.io.IOException: Connection dropped by server?
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:618)
at javax.mail.Service.connect(Service.java:313)
at javax.mail.Service.connect(Service.java:172)
at javax.mail.Service.connect(Service.java:121)
at oracle.apps.fnd.wf.mailer.IMAPUtils.storeTest(IMAPUtils.java:503)
at oracle.apps.fnd.wf.mailer.Mailer.main(Mailer.java:2063)
Caused by: java.io.IOException: Connection dropped by server?
at com.sun.mail.iap.ResponseInputStream.readResponse(ResponseInputStream.java:111)
at com.sun.mail.iap.Response.(Response.java:91)
at com.sun.mail.imap.protocol.IMAPResponse.(IMAPResponse.java:56)
at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:130)
at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:261)
at com.sun.mail.iap.Protocol.(Protocol.java:116)
at com.sun.mail.imap.protocol.IMAPProtocol.(IMAPProtocol.java:104)
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:585)
... 5 more


Other Possible Error:

oracle.apps.fnd.wf.mailer.IMAPUtils.storeTest(WorkflowContext, Logger, Properties)]:Test did not complete successfully -> javax.mail.MessagingException: * BYE Connection down;

nested exception is:

 com.sun.mail.iap.ConnectionException: * BYE Connection down

 Stack Trace

 javax.mail.MessagingException: * BYE Connection down;

  nested exception is:

       com.sun.mail.iap.ConnectionException: * BYE Connection down


Other Possible Error:

[MLRTST : oracle.apps.fnd.wf.mailer.IMAPUtils.storeTest(WorkflowContext, Logger, Properties)]:Test did not complete successfully -> javax.mail.MessagingException: STARTTLS failure;
 nested exception is:
com.sun.mail.iap.ProtocolException: STARTTLS failure
Stack Trace
javax.mail.MessagingException: STARTTLS failure;
 nested exception is:
com.sun.mail.iap.ProtocolException: STARTTLS failure
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:616)
at javax.mail.Service.connect(Service.java:313)
at javax.mail.Service.connect(Service.java:172)
at javax.mail.Service.connect(Service.java:121)
at oracle.apps.fnd.wf.mailer.IMAPUtils.storeTest(IMAPUtils.java:503)
at oracle.apps.fnd.wf.mailer.Mailer.main(Mailer.java:2063)
Caused by: com.sun.mail.iap.ProtocolException: STARTTLS failure
at com.sun.mail.imap.protocol.IMAPProtocol.startTLS(IMAPProtocol.java:741)
at com.sun.mail.imap.IMAPStore.login(IMAPStore.java:629)
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:596)
... 5 more
Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

Changes

 Using Office365 as the IMAP Server or the SMTP Server with the Workflow Mailer with TLS Protocol.

 or

 Followed steps from https://blogs.oracle.com/oracleworkflow/entry/configuring_office365_cloud_server_for

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