InputStreamResource.getInputStream() has thrown an IllegalStateException

java.lang.IllegalStateException
at org.springframework.core.io.InputStreamResource.getInputStream

Typical Exception Messages

  1. InputStream has already been read - do not use InputStreamResource if a stream needs to be read multiple times

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

  1. Greg Adamsvia Spring JIRA1 year ago
    InputStream has already been read - do not use InputStreamResource if a stream needs to be read multiple times
  2. Hal Hildebrandvia Spring JIRA1 year ago
    InputStream has already been read - do not use InputStreamResource if a stream needs to be read multiple times
  3. Greg Adamsvia Spring JIRA2 years ago
    InputStream has already been read - do not use InputStreamResource if a stream needs to be read multiple times
  4. Hal Hildebrandvia Spring JIRA2 years ago
    InputStream has already been read - do not use InputStreamResource if a stream needs to be read multiple times