StreamUtils.copy() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
Javadoc
Thrown when the Java Virtual Machine cannot allocate an object because it is out of memory, and no more memory could be made available by the garbage collector. {@code OutOfMemoryError} objects may be constructed by the virtual machine as if {@linkplain Throwable#Throwable(String, Throwable, boolean, boolean) suppression were disabled and/or the stack trace was not writable}. @author unascribed @since JDK1.0
at java.util.Arrays.copyOf
(source)
at java.io.ByteArrayOutputStream.grow
(source)
at java.io.ByteArrayOutputStream.ensureCapacity
(source)
at java.io.ByteArrayOutputStream.write
(source)
at org.springframework.util.StreamUtils.copy
(source)
4 frames hidden

Typical Exception Messages

  1. Java heap space

Origin

ByteArrayOutputStream.write() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
3 frames hidden
java.io.ByteArrayOutputStream.write
227Web pages

Similar

External results for this pattern (3)

  1. Mitsuyoshi Hasegawavia Spring JIRA1 month ago
  2. Karthik Ramacahndranvia Spring JIRA1 month ago
  3. micheljungvia GitHub10 months ago
    Java heap space
    Show stack trace