StreamUtils.copyToByteArray() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
Javadoc
Thrown to indicate that a method has been passed an illegal or inappropriate argument. @author unascribed @since JDK1.0
at org.springframework.util.Assert.notNull
(Source)
at org.springframework.util.StreamUtils.copy
(Source)
at org.springframework.util.StreamUtils.copyToByteArray
(Source)

Typical Exception Messages

  1. No InputStream specified

Origin

We have seen this error pattern in the following webpages (3)

  1. sarnowskivia GitHub1 year ago
    No InputStream specified
  2. Gena Makhomedvia Spring JIRA1 year ago
  3. Gena Makhomedvia Spring JIRA2 years ago