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. An unexpected error occurred performing the operation.
  2. Java heap space

Origin

ByteArrayOutputStream.write() has thrown an OutOfMemoryError

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

Similar

External results for this pattern (2)

  1. Karthik Ramacahndranvia Spring JIRA4 months ago
  2. Arjen Poutsmavia Spring JIRA2 years ago
    An unexpected error occurred performing the operation.
    Show stack trace