org.springframework.integration.MessagingException: failure occurred while polling for mail

Spring JIRA | sb | 1 year ago
  1. 0

    {noformat} 2015-10-20 02:53:25,619 ERROR LoggingHandler::handleMessageInternal > org.springframework.integration.MessagingException: failure occurred while polling for mail at org.springframework.integration.mail.MailReceivingMessageSource.receive(MailReceivingMessageSource.java:73) at org.springframework.integration.endpoint.SourcePollingChannelAdapter.receiveMessage(SourcePollingChannelAdapter.java:111) at org.springframework.integration.endpoint.AbstractPollingEndpoint.doPoll(AbstractPollingEndpoint.java:184) at org.springframework.integration.endpoint.AbstractPollingEndpoint.access$000(AbstractPollingEndpoint.java:51) at org.springframework.integration.endpoint.AbstractPollingEndpoint$1.call(AbstractPollingEndpoint.java:143) at org.springframework.integration.endpoint.AbstractPollingEndpoint$1.call(AbstractPollingEndpoint.java:141) at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller$1.run(AbstractPollingEndpoint.java:273) at org.springframework.integration.util.ErrorHandlingTaskExecutor$1.run(ErrorHandlingTaskExecutor.java:52) at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49) at org.springframework.integration.util.ErrorHandlingTaskExecutor.execute(ErrorHandlingTaskExecutor.java:49) at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller.run(AbstractPollingEndpoint.java:268) at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:53) at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.NullPointerException at org.springframework.integration.mail.ImapMailReceiver.searchForNewMessages(ImapMailReceiver.java:188) at org.springframework.integration.mail.AbstractMailReceiver.receive(AbstractMailReceiver.java:237) at org.springframework.integration.mail.MailReceivingMessageSource.receive(MailReceivingMessageSource.java:59) ... 20 more {noformat}

    Spring JIRA | 1 year ago | sb
    org.springframework.integration.MessagingException: failure occurred while polling for mail
  2. 0

    {noformat} 2015-10-20 02:53:25,619 ERROR LoggingHandler::handleMessageInternal > org.springframework.integration.MessagingException: failure occurred while polling for mail at org.springframework.integration.mail.MailReceivingMessageSource.receive(MailReceivingMessageSource.java:73) at org.springframework.integration.endpoint.SourcePollingChannelAdapter.receiveMessage(SourcePollingChannelAdapter.java:111) at org.springframework.integration.endpoint.AbstractPollingEndpoint.doPoll(AbstractPollingEndpoint.java:184) at org.springframework.integration.endpoint.AbstractPollingEndpoint.access$000(AbstractPollingEndpoint.java:51) at org.springframework.integration.endpoint.AbstractPollingEndpoint$1.call(AbstractPollingEndpoint.java:143) at org.springframework.integration.endpoint.AbstractPollingEndpoint$1.call(AbstractPollingEndpoint.java:141) at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller$1.run(AbstractPollingEndpoint.java:273) at org.springframework.integration.util.ErrorHandlingTaskExecutor$1.run(ErrorHandlingTaskExecutor.java:52) at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49) at org.springframework.integration.util.ErrorHandlingTaskExecutor.execute(ErrorHandlingTaskExecutor.java:49) at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller.run(AbstractPollingEndpoint.java:268) at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:53) at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.NullPointerException at org.springframework.integration.mail.ImapMailReceiver.searchForNewMessages(ImapMailReceiver.java:188) at org.springframework.integration.mail.AbstractMailReceiver.receive(AbstractMailReceiver.java:237) at org.springframework.integration.mail.MailReceivingMessageSource.receive(MailReceivingMessageSource.java:59) ... 20 more {noformat}

    Spring JIRA | 1 year ago | sb
    org.springframework.integration.MessagingException: failure occurred while polling for mail
  3. 0

    Inappropriate class cast in ImapMailReceiver

    Stack Overflow | 2 years ago | Brian Harris
    org.springframework.integration.MessagingException: failure occurred while polling for mail
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    In addition to https://jira.spring.io/browse/INT-3859 ticket after up gradation we are receiving new error, kindly assist: Spring integration version is 3.0.8.RELEASE: {noformat} 2015-11-18 06:28:09,575 ERROR LoggingHandler::handleMessageInternal > org.springframework.integration.MessagingException: failure occurred while polling for mail at org.springframework.integration.mail.MailReceivingMessageSource.receive(MailReceivingMessageSource.java:73) at org.springframework.integration.endpoint.SourcePollingChannelAdapter.receiveMessage(SourcePollingChannelAdapter.java:111) at org.springframework.integration.endpoint.AbstractPollingEndpoint.doPoll(AbstractPollingEndpoint.java:184) at org.springframework.integration.endpoint.AbstractPollingEndpoint.access$000(AbstractPollingEndpoint.java:51) at org.springframework.integration.endpoint.AbstractPollingEndpoint$1.call(AbstractPollingEndpoint.java:143) at org.springframework.integration.endpoint.AbstractPollingEndpoint$1.call(AbstractPollingEndpoint.java:141) at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller$1.run(AbstractPollingEndpoint.java:273) at org.springframework.integration.util.ErrorHandlingTaskExecutor$1.run(ErrorHandlingTaskExecutor.java:52) at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49) at org.springframework.integration.util.ErrorHandlingTaskExecutor.execute(ErrorHandlingTaskExecutor.java:49) at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller.run(AbstractPollingEndpoint.java:268) at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:53) at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: javax.mail.MessagingException: A79 NO Server Unavailable. 15; nested exception is: com.sun.mail.iap.CommandFailedException: A79 NO Server Unavailable. 15 at com.sun.mail.imap.IMAPFolder.doCommand(IMAPFolder.java:2588) at com.sun.mail.imap.IMAPFolder.exists(IMAPFolder.java:519) at org.springframework.integration.mail.AbstractMailReceiver.openFolder(AbstractMailReceiver.java:237) at org.springframework.integration.mail.AbstractMailReceiver.receive(AbstractMailReceiver.java:257) at org.springframework.integration.mail.MailReceivingMessageSource.receive(MailReceivingMessageSource.java:59) ... 20 more Caused by: com.sun.mail.iap.CommandFailedException: A79 NO Server Unavailable. 15 at com.sun.mail.iap.Protocol.handleResult(Protocol.java:341) at com.sun.mail.imap.protocol.IMAPProtocol.doList(IMAPProtocol.java:869) at com.sun.mail.imap.protocol.IMAPProtocol.list(IMAPProtocol.java:821) at com.sun.mail.imap.IMAPFolder$1.doCommand(IMAPFolder.java:521) at com.sun.mail.imap.IMAPFolder.doProtocolCommand(IMAPFolder.java:2639) at com.sun.mail.imap.IMAPFolder.doCommand(IMAPFolder.java:2583) {noformat}

    Spring JIRA | 1 year ago | sb
    org.springframework.integration.MessagingException: failure occurred while polling for mail
  6. 0

    In addition to https://jira.spring.io/browse/INT-3859 ticket after up gradation we are receiving new error, kindly assist: Spring integration version is 3.0.8.RELEASE: {noformat} 2015-11-18 06:28:09,575 ERROR LoggingHandler::handleMessageInternal > org.springframework.integration.MessagingException: failure occurred while polling for mail at org.springframework.integration.mail.MailReceivingMessageSource.receive(MailReceivingMessageSource.java:73) at org.springframework.integration.endpoint.SourcePollingChannelAdapter.receiveMessage(SourcePollingChannelAdapter.java:111) at org.springframework.integration.endpoint.AbstractPollingEndpoint.doPoll(AbstractPollingEndpoint.java:184) at org.springframework.integration.endpoint.AbstractPollingEndpoint.access$000(AbstractPollingEndpoint.java:51) at org.springframework.integration.endpoint.AbstractPollingEndpoint$1.call(AbstractPollingEndpoint.java:143) at org.springframework.integration.endpoint.AbstractPollingEndpoint$1.call(AbstractPollingEndpoint.java:141) at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller$1.run(AbstractPollingEndpoint.java:273) at org.springframework.integration.util.ErrorHandlingTaskExecutor$1.run(ErrorHandlingTaskExecutor.java:52) at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49) at org.springframework.integration.util.ErrorHandlingTaskExecutor.execute(ErrorHandlingTaskExecutor.java:49) at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller.run(AbstractPollingEndpoint.java:268) at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:53) at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: javax.mail.MessagingException: A79 NO Server Unavailable. 15; nested exception is: com.sun.mail.iap.CommandFailedException: A79 NO Server Unavailable. 15 at com.sun.mail.imap.IMAPFolder.doCommand(IMAPFolder.java:2588) at com.sun.mail.imap.IMAPFolder.exists(IMAPFolder.java:519) at org.springframework.integration.mail.AbstractMailReceiver.openFolder(AbstractMailReceiver.java:237) at org.springframework.integration.mail.AbstractMailReceiver.receive(AbstractMailReceiver.java:257) at org.springframework.integration.mail.MailReceivingMessageSource.receive(MailReceivingMessageSource.java:59) ... 20 more Caused by: com.sun.mail.iap.CommandFailedException: A79 NO Server Unavailable. 15 at com.sun.mail.iap.Protocol.handleResult(Protocol.java:341) at com.sun.mail.imap.protocol.IMAPProtocol.doList(IMAPProtocol.java:869) at com.sun.mail.imap.protocol.IMAPProtocol.list(IMAPProtocol.java:821) at com.sun.mail.imap.IMAPFolder$1.doCommand(IMAPFolder.java:521) at com.sun.mail.imap.IMAPFolder.doProtocolCommand(IMAPFolder.java:2639) at com.sun.mail.imap.IMAPFolder.doCommand(IMAPFolder.java:2583) {noformat}

    Spring JIRA | 1 year ago | sb
    org.springframework.integration.MessagingException: failure occurred while polling for mail

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.springframework.integration.mail.ImapMailReceiver.searchForNewMessages()
    2. org.springframework.integration
      MailReceivingMessageSource.receive
      1. org.springframework.integration.mail.ImapMailReceiver.searchForNewMessages(ImapMailReceiver.java:188)
      2. org.springframework.integration.mail.AbstractMailReceiver.receive(AbstractMailReceiver.java:237)
      3. org.springframework.integration.mail.MailReceivingMessageSource.receive(MailReceivingMessageSource.java:59)
      3 frames
    3. Spring Integration Core
      ErrorHandlingTaskExecutor$1.run
      1. org.springframework.integration.endpoint.SourcePollingChannelAdapter.receiveMessage(SourcePollingChannelAdapter.java:111)
      2. org.springframework.integration.endpoint.AbstractPollingEndpoint.doPoll(AbstractPollingEndpoint.java:184)
      3. org.springframework.integration.endpoint.AbstractPollingEndpoint.access$000(AbstractPollingEndpoint.java:51)
      4. org.springframework.integration.endpoint.AbstractPollingEndpoint$1.call(AbstractPollingEndpoint.java:143)
      5. org.springframework.integration.endpoint.AbstractPollingEndpoint$1.call(AbstractPollingEndpoint.java:141)
      6. org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller$1.run(AbstractPollingEndpoint.java:273)
      7. org.springframework.integration.util.ErrorHandlingTaskExecutor$1.run(ErrorHandlingTaskExecutor.java:52)
      7 frames
    4. Spring Core
      SyncTaskExecutor.execute
      1. org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
      1 frame
    5. Spring Integration Core
      AbstractPollingEndpoint$Poller.run
      1. org.springframework.integration.util.ErrorHandlingTaskExecutor.execute(ErrorHandlingTaskExecutor.java:49)
      2. org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller.run(AbstractPollingEndpoint.java:268)
      2 frames
    6. Spring Context
      ReschedulingRunnable.run
      1. org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:53)
      2. org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81)
      2 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
      5. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      7. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      8. java.lang.Thread.run(Thread.java:662)
      8 frames