I am trying to download a zip file but I get a Stream Closed Exception. When i use using swing gui it get this erro but if i use console there is no problem
I solved it when removed this tag of Primefaces from my xhtml.
<p:media ...
source
http://www.primefaces.org/showcase/ui/multimedia/media.xhtml
This exception usually means the connection was closed abruptly. I would look at the logs on the server to see if there was an error.
it can be due to JVM delays, It can be caused because of unix/linux operating system's random number generator. You should replace it with /dev/./urandom
This link has more details on it.
http://devcorn.com/java-io-ioexception-stream-closed-no-available-router-to-destination/