java.util.concurrent.ExecutionException

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

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

Stack trace

  • java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Requested array size exceeds VM limit at java_util_concurrent_Future$get.call(Unknown Source) at Main.awaitCompletion(Main.groovy:222) at Main$awaitCompletion.callCurrent(Unknown Source) at Main.run(Main.groovy:113) Caused by: java.lang.OutOfMemoryError: Requested array size exceeds VM limit at com.itextpdf.text.io.StreamUtil.inputStreamToArray(StreamUtil.java:74) at com.itextpdf.text.io.RandomAccessSourceFactory.createSource(RandomAccessSourceFactory.java:146) at com.itextpdf.text.pdf.PdfReader.<init>(PdfReader.java:351) at com.itextpdf.text.pdf.PdfReader.<init>(PdfReader.java:371) at PdfHelper.randomizePDFStream(PdfHelper.java:65)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

We couldn't find other users who have seen this exception.