Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15220

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 3.2.0, 3.4.0
    • None
    • camel-mail
    • None
    • Spring Boot 2.2.6 & 2.3.0. JDK 1.8

    • Unknown

    Description

      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]

      ```

      Attachments

        Activity

          People

            Unassigned Unassigned
            bocamel John Yin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: