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

Stack Overflow | Bo Öberg | 2 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

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

    Stack Overflow | 2 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