FileCopyUtils.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.write
(source)
at org.springframework.util.FileCopyUtils.copy
(source)

Typical Exception Messages

  1. Java heap space

Origin

ByteArrayOutputStream.write() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
1 frames hidden
java.io.ByteArrayOutputStream.write
124Web pages

Similar

External results for this pattern (3)

  1. Karthik Ramacahndranvia Spring JIRA1 month ago
  2. Karthik Ramacahndranvia Spring JIRA2 years ago
  3. Arjen Poutsmavia Spring JIRA2 years ago