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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via JIRA by Anfield Leung, 1 year ago
message number (6) out of bounds (2)
via JIRA by Anfield Leung, 1 year ago
message number (6) out of bounds (2)
via Oracle Community by 843834, 1 year ago
message number out of bounds
via Oracle Community by user10546856, 1 year ago
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)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.