"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 FEBRUARY 08, 2017

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 oracle.odi.runtime.agent.execution.SessionTask.executeOdiCommand(SessionTask.java:551)
 at oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(OdiCommandExecutor.java:32)
 at oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(OdiCommandExecutor.java:18)
 at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:52)
 at oracle.odi.runtime.agent.execution.SessionTask.processTask(SessionTask.java:189)
 at oracle.odi.runtime.agent.execution.SessionTask.doExecuteTask(SessionTask.java:111)
 at oracle.odi.runtime.agent.execution.AbstractSessionTask.execute(AbstractSessionTask.java:864)
 at oracle.odi.runtime.agent.execution.SessionExecutor$SerialTrain.runTasks(SessionExecutor.java:2024)
 at oracle.odi.runtime.agent.execution.SessionExecutor.executeSession(SessionExecutor.java:562)
 at oracle.odi.runtime.agent.processor.TaskExecutorAgentRequestProcessor$1.doAction(TaskExecutorAgentRequestProcessor.java:718)
 at oracle.odi.runtime.agent.processor.TaskExecutorAgentRequestProcessor$1.doAction(TaskExecutorAgentRequestProcessor.java:611)
 at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:203)
 at oracle.odi.runtime.agent.processor.TaskExecutorAgentRequestProcessor.doProcessStartAgentTask(TaskExecutorAgentRequestProcessor.java:800)
 at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$1400(StartSessRequestProcessor.java:74)
 at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:702)
 at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:180)
 at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:108)
 at java.lang.Thread.run(Thread.java:745)
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 oracle.odi.runtime.agent.execution.SessionTask.executeOdiCommand(SessionTask.java:551)
 at oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(OdiCommandExecutor.java:32)
 at oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(OdiCommandExecutor.java:18)
 at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:52)
 at oracle.odi.runtime.agent.execution.SessionTask.processTask(SessionTask.java:189)
 at oracle.odi.runtime.agent.execution.SessionTask.doExecuteTask(SessionTask.java:111)
 at oracle.odi.runtime.agent.execution.AbstractSessionTask.execute(AbstractSessionTask.java:864)
 at oracle.odi.runtime.agent.execution.SessionExecutor$SerialTrain.runTasks(SessionExecutor.java:2024)
 ...

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