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

JIRA | Anfield Leung | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Direct access of the Mail Server in JEMH for forwarding hints has been found to run into the following. JEMH should probably put such notifications through the JIRA mail queue to get the resilience that even the in-memory queue offers, to reduce these kinds of occurrences. {noformat} ArrayIndexOutOfBoundsException: message number (6) out of bounds (2): java.lang.ArrayIndexOutOfBoundsException: message number (6) out of bounds (2) at com.sun.mail.imap.MessageCache.getMessage(MessageCache.java:132) at com.sun.mail.imap.MessageCache.getMessageBySeqnum(MessageCache.java:162) at com.sun.mail.imap.IMAPFolder.getMessageBySeqNumber(IMAPFolder.java:2809) at com.sun.mail.imap.IMAPFolder.handleResponse(IMAPFolder.java:2486) at com.sun.mail.iap.Protocol.notifyResponseHandlers(Protocol.java:216) at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:1319) at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:1306) at com.sun.mail.imap.IMAPInputStream.fill(IMAPInputStream.java:148) at com.sun.mail.imap.IMAPInputStream.read(IMAPInputStream.java:208) at com.sun.mail.imap.IMAPInputStream.read(IMAPInputStream.java:234) at com.sun.mail.imap.IMAPMessage.writeTo(IMAPMessage.java:721) at com.javahollic.jira.emh.service.DefaultJEMHMessageManager.sendForwardEmail(DefaultJEMHMessageManager.java:750) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleException(EnterpriseMessageHandlerImpl.java:569) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleMessage(EnterpriseMessageHandlerImpl.java:383) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerProxy.handleMessage(EnterpriseMessageHandlerProxy.java:48) at com.atlassian.jira.service.services.mail.MailFetcherService$1.process(MailFetcherService.java:438) at com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:304) at com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:426) at com.atlassian.jira.service.services.file.AbstractMessageHandlingService.run(AbstractMessageHandlingService.java:263) {noformat} I googled, found [this entry|https://community.oracle.com/thread/2491711] that refers to Exchange (is that what you are using?) the entry links to [this|http://kenai.com/projects/javamail/pages/Exchange]. No specific resolution. JEMH can't do anything specifically here as its within the javamail library. This [message|https://java.net/projects/javamail/lists/issues/archive/2010-09/message/1] indicates that some 'improvements' in javamail went in to javamail-1.4.4 JIRA 7 ships with javamail 1.4.5, so that would hopefully work.

    JIRA | 1 year ago | Anfield Leung
    java.lang.ArrayIndexOutOfBoundsException: message number (6) out of bounds (2)
  2. 0

    Direct access of the Mail Server in JEMH for forwarding hints has been found to run into the following. JEMH should probably put such notifications through the JIRA mail queue to get the resilience that even the in-memory queue offers, to reduce these kinds of occurrences. {noformat} ArrayIndexOutOfBoundsException: message number (6) out of bounds (2): java.lang.ArrayIndexOutOfBoundsException: message number (6) out of bounds (2) at com.sun.mail.imap.MessageCache.getMessage(MessageCache.java:132) at com.sun.mail.imap.MessageCache.getMessageBySeqnum(MessageCache.java:162) at com.sun.mail.imap.IMAPFolder.getMessageBySeqNumber(IMAPFolder.java:2809) at com.sun.mail.imap.IMAPFolder.handleResponse(IMAPFolder.java:2486) at com.sun.mail.iap.Protocol.notifyResponseHandlers(Protocol.java:216) at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:1319) at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:1306) at com.sun.mail.imap.IMAPInputStream.fill(IMAPInputStream.java:148) at com.sun.mail.imap.IMAPInputStream.read(IMAPInputStream.java:208) at com.sun.mail.imap.IMAPInputStream.read(IMAPInputStream.java:234) at com.sun.mail.imap.IMAPMessage.writeTo(IMAPMessage.java:721) at com.javahollic.jira.emh.service.DefaultJEMHMessageManager.sendForwardEmail(DefaultJEMHMessageManager.java:750) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleException(EnterpriseMessageHandlerImpl.java:569) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleMessage(EnterpriseMessageHandlerImpl.java:383) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerProxy.handleMessage(EnterpriseMessageHandlerProxy.java:48) at com.atlassian.jira.service.services.mail.MailFetcherService$1.process(MailFetcherService.java:438) at com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:304) at com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:426) at com.atlassian.jira.service.services.file.AbstractMessageHandlingService.run(AbstractMessageHandlingService.java:263) {noformat} I googled, found [this entry|https://community.oracle.com/thread/2491711] that refers to Exchange (is that what you are using?) the entry links to [this|http://kenai.com/projects/javamail/pages/Exchange]. No specific resolution. JEMH can't do anything specifically here as its within the javamail library. This [message|https://java.net/projects/javamail/lists/issues/archive/2010-09/message/1] indicates that some 'improvements' in javamail went in to javamail-1.4.4 JIRA 7 ships with javamail 1.4.5, so that would hopefully work.

    JIRA | 1 year ago | Anfield Leung
    java.lang.ArrayIndexOutOfBoundsException: message number (6) out of bounds (2)
  3. 0

    Malformed IMAP FETCH response throws the wrong exception

    Kenai Bugzilla | 8 months ago | idkcz
    java.lang.ArrayIndexOutOfBoundsException: 16448
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      message number (6) out of bounds (2)

      at com.sun.mail.imap.MessageCache.getMessage()
    2. JavaMail API (compat)
      IMAPMessage.writeTo
      1. com.sun.mail.imap.MessageCache.getMessage(MessageCache.java:132)
      2. com.sun.mail.imap.MessageCache.getMessageBySeqnum(MessageCache.java:162)
      3. com.sun.mail.imap.IMAPFolder.getMessageBySeqNumber(IMAPFolder.java:2809)
      4. com.sun.mail.imap.IMAPFolder.handleResponse(IMAPFolder.java:2486)
      5. com.sun.mail.iap.Protocol.notifyResponseHandlers(Protocol.java:216)
      6. com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:1319)
      7. com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:1306)
      8. com.sun.mail.imap.IMAPInputStream.fill(IMAPInputStream.java:148)
      9. com.sun.mail.imap.IMAPInputStream.read(IMAPInputStream.java:208)
      10. com.sun.mail.imap.IMAPInputStream.read(IMAPInputStream.java:234)
      11. com.sun.mail.imap.IMAPMessage.writeTo(IMAPMessage.java:721)
      11 frames
    3. com.javahollic.jira
      EnterpriseMessageHandlerProxy.handleMessage
      1. com.javahollic.jira.emh.service.DefaultJEMHMessageManager.sendForwardEmail(DefaultJEMHMessageManager.java:750)
      2. com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleException(EnterpriseMessageHandlerImpl.java:569)
      3. com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleMessage(EnterpriseMessageHandlerImpl.java:383)
      4. com.javahollic.jira.emh.service.EnterpriseMessageHandlerProxy.handleMessage(EnterpriseMessageHandlerProxy.java:48)
      4 frames
    4. com.atlassian.jira
      AbstractMessageHandlingService.run
      1. com.atlassian.jira.service.services.mail.MailFetcherService$1.process(MailFetcherService.java:438)
      2. com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:304)
      3. com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:426)
      4. com.atlassian.jira.service.services.file.AbstractMessageHandlingService.run(AbstractMessageHandlingService.java:263)
      4 frames