InputStreamResource.getInputStream() has thrown an IllegalStateException

java.lang.IllegalStateException
Signals that a method has been invoked at an illegal or inappropriate time. In other words, the Java environment or Java application is not in an appropriate state for the requested operation. @author Jonni Kanerva @since JDK1.1
at org.springframework.core.io.InputStreamResource.getInputStream

Matching stack traces (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

Typical exception messages

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