java.lang.ArrayIndexOutOfBoundsException: message number (7) out of bounds (6)

Stack Overflow | Kirill G. | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    ArrayIndexOutOfBoundsException during IDLE task in Spring Integration Mail

    Stack Overflow | 5 months ago | Kirill G.
    java.lang.ArrayIndexOutOfBoundsException: message number (7) out of bounds (6)
  2. 0

    ArrayIndexOutOfBoundsException when searching in ImapFolder

    Oracle Community | 4 years ago | 986597
    java.lang.ArrayIndexOutOfBoundsException: message number (7) out of bounds (6)

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      message number (7) out of bounds (6)

      at com.sun.mail.imap.MessageCache.getMessage()
    2. JavaMail API (compat)
      IMAPFolder.search
      1. com.sun.mail.imap.MessageCache.getMessage(MessageCache.java:135)
      2. com.sun.mail.imap.MessageCache.getMessageBySeqnum(MessageCache.java:164)
      3. com.sun.mail.imap.IMAPFolder.getMessageBySeqNumber(IMAPFolder.java:3005)
      4. com.sun.mail.imap.IMAPFolder.search(IMAPFolder.java:1863)
      4 frames
    3. org.springframework.integration
      ImapIdleChannelAdapter$ReceivingTask.run
      1. org.springframework.integration.mail.ImapMailReceiver.searchForNewMessages(ImapMailReceiver.java:202)
      2. org.springframework.integration.mail.ImapMailReceiver.waitForNewMessages(ImapMailReceiver.java:167)
      3. org.springframework.integration.mail.ImapIdleChannelAdapter$IdleTask.run(ImapIdleChannelAdapter.java:220)
      4. org.springframework.integration.mail.ImapIdleChannelAdapter$ReceivingTask.run(ImapIdleChannelAdapter.java:190)
      4 frames
    4. Spring Context
      ReschedulingRunnable.run
      1. org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
      2. org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81)
      2 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
      5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      7. java.lang.Thread.run(Thread.java:745)
      7 frames