java.lang.ArrayIndexOutOfBoundsException: 2 >= 2

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Printing the contents of a Vector
    via by MaryT Tsele,
  • Vectors
    via by 807598,
  • Vector - please help (urgent)
    via by ahansen,
  • {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
    via by Andy Brook,
    • java.lang.ArrayIndexOutOfBoundsException: 2 >= 2 at java.util.Vector.elementAt(Unknown Source) at Test.<init>(Test.java:15) at Test.main(Test.java:19)

    Users with the same issue

    Axelo
    Axelo2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    2 more bugmates