java.lang.OutOfMemoryError: Java heap space

pdfbox-dev | Ilija Pavlic (Commented) (JIRA) | 5 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

    [jira] [Commented] (PDFBOX-1202) org.apache.pdfbox.filter.FlateFilter decode SEVERE: Stop reading corrupt stream

    pdfbox-dev | 5 years ago | Ilija Pavlic (Commented) (JIRA)
    java.lang.OutOfMemoryError: Java heap space

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Java heap space

      at org.apache.pdfbox.io.RandomAccessBuffer.expandBuffer()
    2. Apache PDFBox
      PDFTextStripperByArea.extractRegions
      1. org.apache.pdfbox.io.RandomAccessBuffer.expandBuffer(RandomAccessBuffer.java:151)
      2. org.apache.pdfbox.io.RandomAccessBuffer.write(RandomAccessBuffer.java:131)
      3. org.apache.pdfbox.io.RandomAccessFileOutputStream.write(RandomAccessFileOutputStream.java:108)
      4. org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:117)
      5. org.apache.pdfbox.cos.COSStream.doDecode(COSStream.java:279)
      6. org.apache.pdfbox.cos.COSStream.doDecode(COSStream.java:221)
      7. org.apache.pdfbox.cos.COSStream.getUnfilteredStream(COSStream.java:156)
      8. org.apache.pdfbox.pdfparser.PDFStreamParser.<init>(PDFStreamParser.java:105)
      9. org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:262)
      10. org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:251)
      11. org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:225)
      12. org.apache.pdfbox.util.PDFTextStripper.processPage(PDFTextStripper.java:448)
      13. org.apache.pdfbox.util.PDFTextStripperByArea.extractRegions(PDFTextStripperByArea.java:153)
      13 frames
    3. pdf.test
      Main.main
      1. pdf.test.Main.main(Main.java:61)
      1 frame