java.lang.IndexOutOfBoundsException: Index -2 out-of-bounds for length 23 at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248) at java.base/java.util.Objects.checkIndex(Objects.java:371) at java.base/java.util.ArrayList.get(ArrayList.java:439)

apache.org | 4 days 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

    POI regression testing report

    apache.org | 4 days ago
    java.lang.IndexOutOfBoundsException: Index -2 out-of-bounds for length 4 at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248) at java.base/java.util.Objects.checkIndex(Objects.java:371) at java.base/java.util.ArrayList.get(ArrayList.java:439)

    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.IndexOutOfBoundsException

      Index -2 out-of-bounds for length 23 at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248) at java.base/java.util.Objects.checkIndex(Objects.java:371) at java.base/java.util.ArrayList.get(ArrayList.java:439)

      at o.a.p.hssf.model.InternalWorkbook.getBSERecord()
    2. o.a.p
      HSSFFileHandler.handleFile
      1. o.a.p.hssf.model.InternalWorkbook.getBSERecord(InternalWorkbook.java:2469)
      2. o.a.p.hssf.usermodel.HSSFPicture.getPictureData(HSSFPicture.java:208)
      3. o.a.p.hssf.usermodel.HSSFPicture.getPictureData(HSSFPicture.java:47)
      4. o.a.p.ss.extractor.EmbeddedExtractor$PdfExtractor.canExtract(EmbeddedExtractor.java:220)
      5. o.a.p.ss.extractor.EmbeddedExtractor.extractOne(EmbeddedExtractor.java:89)
      6. o.a.p.ss.extractor.EmbeddedExtractor.extractAll(EmbeddedExtractor.java:125)
      7. o.a.p.ss.extractor.EmbeddedExtractor.extractAll(EmbeddedExtractor.java:102)
      8. o.a.p.stress.SpreadsheetHandler.extractEmbedded(SpreadsheetHandler.java:103)
      9. o.a.p.stress.SpreadsheetHandler.handleWorkbook(SpreadsheetHandler.java:60)
      10. o.a.p.stress.HSSFFileHandler.handleFile(HSSFFileHandler.java:37)
      10 frames
    3. org.dstadler.commoncrawl
      FileHandlingRunnable.run
      1. org.dstadler.commoncrawl.FileHandlingRunnable.run(FileHandlingRunnable.java:64)
      1 frame