"No login methods supported" Or "Command is not valid in this state" When Attempting to Read Mail via IMAP/POP3 with the ODI OdiReadMail Tool

(Doc ID 1989375.1)

Last updated on MAY 22, 2018

Applies to:

Oracle Data Integrator - Version 10.1.3.2.0 and later
Information in this document applies to any platform.

Symptoms

When attempting to read email messages from a Microsoft Exchange Server 2010 SP3 (version 14.3 - build 123.4) set up with POP3 port 995 with TLS using the Oracle Data Integrator (ODI) OdiReadMail tool with either of the following protocols:

and using the following syntaxes:

OdiReadMail "-MAILHOST=msx.intranet.mycompany.com" "-USER=H-MSX/xxx" "-PASS=xxx" "-FOLDER=D:\Testfall" "-PROTOCOL=imap" "-FOLDER_OPT=NONE" "-KEEP=YES" "-EXTRACT_MSG=YES" "-EXTRACT_ATT=NO" "-MSG_PRF= " "-TIMEOUT=1000" "-POLLINT=1000" "-MAX_MSG=1"

or

OdiReadMail "-MAILHOST=msx.intranet.mycompany.com" "-USER=H-MSX/xxx" "-PASS=xxx" "-FOLDER=D:\Testfall" "-PROTOCOL=POP3" "-FOLDER_OPT=NONE" "-KEEP=YES" "-EXTRACT_MSG=YES" "-EXTRACT_ATT=NO" "-MSG_PRF= " "-TIMEOUT=1000" "-POLLINT=1000" "-MAX_MSG=1"

the following message stacks are returned:

    IMAP:

com.sunopsis.tools.core.exception.SnpsSimpleMessageException: No login methods supported!
 at com.sunopsis.dwg.tools.ReadMail.actionExecute(ReadMail.java:282)
 at com.sunopsis.dwg.function.SnpsFunctionBaseRepositoryConnected.execute(SnpsFunctionBaseRepositoryConnected.java:209)
 at oracle.odi.runtime.agent.execution.SessionTask.execIntegratedFunction(SessionTask.java:870)
 at ...
Caused by: javax.mail.MessagingException: No login methods supported!;
 nested exception is:
com.sun.mail.iap.ProtocolException: No login methods supported!
 at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:663)
 at javax.mail.Service.connect(Service.java:295)
 at com.sunopsis.dwg.tools.ReadMail.getConnected(ReadMail.java:937)
 at com.sunopsis.dwg.tools.ReadMail.actionExecute(ReadMail.java:243)
 ... 20 more
Caused by: com.sun.mail.iap.ProtocolException: No login methods supported!
 at com.sun.mail.imap.IMAPStore.login(IMAPStore.java:725)
 at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:643)
 ... 23 more

    POP3:

com.sunopsis.tools.core.exception.SnpsSimpleMessageException: Command is not valid in this state.
 at com.sunopsis.dwg.tools.ReadMail.actionExecute(ReadMail.java:282)
 at com.sunopsis.dwg.function.SnpsFunctionBaseRepositoryConnected.execute(SnpsFunctionBaseRepositoryConnected.java:209)
 at oracle.odi.runtime.agent.execution.SessionTask.execIntegratedFunction(SessionTask.java:870)
 at ...

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