java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Requested array size exceeds VM limit

Stack Overflow | Bo Öberg | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Using iText: java.lang.OutOfMemoryError: Requested array size exceeds VM limit

    Stack Overflow | 3 years ago | Bo Öberg
    java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Requested array size exceeds VM limit

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Requested array size exceeds VM limit

      at com.itextpdf.text.io.StreamUtil.inputStreamToArray()
    2. iText, a Free Java-PDF library
      PdfReader.<init>
      1. com.itextpdf.text.io.StreamUtil.inputStreamToArray(StreamUtil.java:74)
      2. com.itextpdf.text.io.RandomAccessSourceFactory.createSource(RandomAccessSourceFactory.java:146)
      3. com.itextpdf.text.pdf.PdfReader.<init>(PdfReader.java:351)
      4. com.itextpdf.text.pdf.PdfReader.<init>(PdfReader.java:371)
      4 frames
    3. Unknown
      PdfHelper.randomizePDFStream
      1. PdfHelper.randomizePDFStream(PdfHelper.java:65)
      1 frame