You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "John Yin (Jira)" <ji...@apache.org> on 2020/06/21 18:03:00 UTC

[jira] [Closed] (CAMEL-15220) Cannot access Gmail IMAP - javax.mail.AuthenticationFailedException: [AUTHENTICATIONFAILED] Invalid credentials (Failure) (works with Camel 2.x)

     [ https://issues.apache.org/jira/browse/CAMEL-15220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Yin closed CAMEL-15220.
----------------------------
    Resolution: Not A Problem

It was a mistake that I made when constructing the endpoint options.  Never mind.  Sorry about it.

> Cannot access Gmail IMAP - javax.mail.AuthenticationFailedException: [AUTHENTICATIONFAILED] Invalid credentials (Failure) (works with Camel 2.x)
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-15220
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15220
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-mail
>    Affects Versions: 3.2.0, 3.4.0
>         Environment: Spring Boot 2.2.6 & 2.3.0. JDK 1.8
>            Reporter: John Yin
>            Priority: Major
>
> Cannot access a Gmail IMAP account that could be accessed with Camel 2.x (so it is not caused by Gmail account configuration).
>  OK Gimap ready for requests from 104.251.134.235 v6mb20621913vsq
> B0 CAPABILITY
>  CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH2 AUTH=PLAIN AUTH=PLAIN-CLIENTTOKEN AUTH=OAUTHBEARER AUTH=XOAUTH
> B0 OK Thats all she wrote! v6mb20621913vsq
> DEBUG IMAPS: AUTH: XOAUTH2
> DEBUG IMAPS: AUTH: PLAIN
> DEBUG IMAPS: AUTH: PLAIN-CLIENTTOKEN
> DEBUG IMAPS: AUTH: OAUTHBEARER
> DEBUG IMAPS: AUTH: XOAUTH
> DEBUG IMAPS: protocolConnect login, host=imap.gmail.com, user=test@e-bonding.com, password=<non-null>
> DEBUG IMAPS: AUTHENTICATE PLAIN command trace suppressed
> DEBUG IMAPS: AUTHENTICATE PLAIN command result: B1 NO [AUTHENTICATIONFAILED] Invalid credentials (Failure)
> ```
> 2020-06-21 12:00:05.584 [Camel (camel-1) thread #3 - imaps://imap.gmail.com:993] MailConsumer - Consumer Consumer[imaps://imap.gmail.com:993?debugMode=true&delay=60000&delete=true&password=xxxxxx&searchTerm.fromSentDate=now-24h&username=test%40e-bonding.com] failed polling endpoint: imaps://imap.gmail.com:993?debugMode=true&delay=60000&delete=true&password=xxxxxx&searchTerm.fromSentDate=now-24h&username=test%40e-bonding.com. Will try again at next poll. Caused by: [javax.mail.AuthenticationFailedException - [AUTHENTICATIONFAILED] Invalid credentials (Failure)]2020-06-21 12:00:05.584 [Camel (camel-1) thread #3 - imaps://imap.gmail.com:993] MailConsumer - Consumer Consumer[imaps://imap.gmail.com:993?debugMode=true&delay=60000&delete=true&password=xxxxxx&searchTerm.fromSentDate=now-24h&username=test%40e-bonding.com] failed polling endpoint: imaps://imap.gmail.com:993?debugMode=true&delay=60000&delete=true&password=xxxxxx&searchTerm.fromSentDate=now-24h&username=test%40e-bonding.com. Will try again at next poll. Caused by: [javax.mail.AuthenticationFailedException - [AUTHENTICATIONFAILED] Invalid credentials (Failure)]javax.mail.AuthenticationFailedException: [AUTHENTICATIONFAILED] Invalid credentials (Failure)
> at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:708) ~[jakarta.mail-1.6.5.jar:1.6.5]
> at javax.mail.Service.connect(Service.java:364) ~[jakarta.mail-1.6.5.jar:1.6.5] at org.apache.camel.component.mail.MailConsumer.ensureIsConnected(MailConsumer.java:570) ~[camel-mail-3.2.0.jar:3.2.0]
> at org.apache.camel.component.mail.MailConsumer.poll(MailConsumer.java:127) ~[camel-mail-3.2.0.jar:3.2.0]
> at org.apache.camel.support.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:187) [camel-support-3.2.0.jar:3.2.0]
> at org.apache.camel.support.ScheduledPollConsumer.run(ScheduledPollConsumer.java:106) [camel-support-3.2.0.jar:3.2.0] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_181] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:1.8.0_181] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_181] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:1.8.0_181] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_181] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_181] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]
> ```



--
This message was sent by Atlassian Jira
(v8.3.4#803005)