java.lang.ArrayIndexOutOfBoundsException: 2 >= 2

JIRA | Andy Brook | 4 years 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

    {noformat} ArrayIndexOutOfBoundsException: 2 >= 2: java.lang.ArrayIndexOutOfBoundsException: 2 >= 2 at java.util.Vector.elementAt(Vector.java:447) at javax.mail.Multipart.getBodyPart(Multipart.java:156) at javax.mail.internet.MimeMultipart.getBodyPart(MimeMultipart.java:258) at com.javahollic.jira.emh.engine.support.EMHMailUtils.getBodyImpl(EMHMailUtils.java:902) at com.javahollic.jira.emh.engine.support.EMHMailUtils.getBody(EMHMailUtils.java:781) at com.javahollic.jira.emh.engine.support.EMHMailUtils.getBody(EMHMailUtils.java:775) at com.javahollic.jira.emh.service.filter.CommentCountOrSizeFilter.filter(CommentCountOrSizeFilter.java:66) at com.javahollic.jira.emh.service.FilterManager.applyFilters(FilterManager.java:97) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.setupHandlerAndFilters(EnterpriseMessageHandlerImpl.java:648) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleMessage(EnterpriseMessageHandlerImpl.java:210) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerProxy.handleMessage(EnterpriseMessageHandlerProxy.java:43) at com.atlassian.jira.service.services.mail.MailFetcherService$1.process(MailFetcherService.java:356) at com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:259) at com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:344) {noformat} Problem located and fixed locally, awaiting a build for 5.0.x compatible and 5.1.x

    JIRA | 4 years ago | Andy Brook
    java.lang.ArrayIndexOutOfBoundsException: 2 >= 2
  2. 0

    {noformat} ArrayIndexOutOfBoundsException: 2 >= 2: java.lang.ArrayIndexOutOfBoundsException: 2 >= 2 at java.util.Vector.elementAt(Vector.java:447) at javax.mail.Multipart.getBodyPart(Multipart.java:156) at javax.mail.internet.MimeMultipart.getBodyPart(MimeMultipart.java:258) at com.javahollic.jira.emh.engine.support.EMHMailUtils.getBodyImpl(EMHMailUtils.java:902) at com.javahollic.jira.emh.engine.support.EMHMailUtils.getBody(EMHMailUtils.java:781) at com.javahollic.jira.emh.engine.support.EMHMailUtils.getBody(EMHMailUtils.java:775) at com.javahollic.jira.emh.service.filter.CommentCountOrSizeFilter.filter(CommentCountOrSizeFilter.java:66) at com.javahollic.jira.emh.service.FilterManager.applyFilters(FilterManager.java:97) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.setupHandlerAndFilters(EnterpriseMessageHandlerImpl.java:648) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleMessage(EnterpriseMessageHandlerImpl.java:210) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerProxy.handleMessage(EnterpriseMessageHandlerProxy.java:43) at com.atlassian.jira.service.services.mail.MailFetcherService$1.process(MailFetcherService.java:356) at com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:259) at com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:344) {noformat} Problem located and fixed locally, awaiting a build for 5.0.x compatible and 5.1.x

    JIRA | 4 years ago | Andy Brook
    java.lang.ArrayIndexOutOfBoundsException: 2 >= 2
  3. 0

    ArrayOutOfBoundException while reading an email through gmail using javamail

    Stack Overflow | 3 years ago | user3433164
    java.lang.ArrayIndexOutOfBoundsException: 2 >= 2
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Retrieve UnRead Emails from Gmail - JavaMail API + IMAP

    Stack Overflow | 6 years ago | alibenmessaoud
    java.lang.ArrayIndexOutOfBoundsException: 2 >= 2
  6. 0

    Error while sending the email notifcation

    Oracle Community | 5 years ago | Abhinav Mittal
    java.lang.ArrayIndexOutOfBoundsException: 0 >= 0

    3 unregistered visitors
    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.ArrayIndexOutOfBoundsException

      2 >= 2

      at java.util.Vector.elementAt()
    2. Java RT
      Vector.elementAt
      1. java.util.Vector.elementAt(Vector.java:447)
      1 frame
    3. JavaMail API
      MimeMultipart.getBodyPart
      1. javax.mail.Multipart.getBodyPart(Multipart.java:156)
      2. javax.mail.internet.MimeMultipart.getBodyPart(MimeMultipart.java:258)
      2 frames
    4. com.javahollic.jira
      EnterpriseMessageHandlerProxy.handleMessage
      1. com.javahollic.jira.emh.engine.support.EMHMailUtils.getBodyImpl(EMHMailUtils.java:902)
      2. com.javahollic.jira.emh.engine.support.EMHMailUtils.getBody(EMHMailUtils.java:781)
      3. com.javahollic.jira.emh.engine.support.EMHMailUtils.getBody(EMHMailUtils.java:775)
      4. com.javahollic.jira.emh.service.filter.CommentCountOrSizeFilter.filter(CommentCountOrSizeFilter.java:66)
      5. com.javahollic.jira.emh.service.FilterManager.applyFilters(FilterManager.java:97)
      6. com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.setupHandlerAndFilters(EnterpriseMessageHandlerImpl.java:648)
      7. com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleMessage(EnterpriseMessageHandlerImpl.java:210)
      8. com.javahollic.jira.emh.service.EnterpriseMessageHandlerProxy.handleMessage(EnterpriseMessageHandlerProxy.java:43)
      8 frames
    5. com.atlassian.jira
      MailFetcherService.runImpl
      1. com.atlassian.jira.service.services.mail.MailFetcherService$1.process(MailFetcherService.java:356)
      2. com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:259)
      3. com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:344)
      3 frames