I started posting this on java newsgroup, as im not really sure it has anything to do 
with tomcat... but as no one replied I will give it a go here :-)

I have this webapplication, that lets You pick a list of pictures to
download. At the en you click on a link that says download and this url is
mapped to a servlet. The servlet looks up the pictures you selected and
prepares to send the pictures as a zip file to you. This is done by setting
the response content type to "application/zip" and wrapping the response
stream to a zipoutputstream and then writing entries to the zipoutputstream.

This works very good when ever the client browser is a windows/IE, but
whenever the browser reads mac/IE the download fails.

The top of the exception stacktrace:
java.net.SocketException: Connection reset
        at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:96)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
        at
org.apache.catalina.connector.ResponseBase.flushBuffer(ResponseBase.java:675
)
        at
org.apache.catalina.connector.HttpResponseBase.doFlushBuffer(HttpResponseBas
e.java:795)
        at
org.apache.catalina.connector.HttpResponseBase.flushBuffer(HttpResponseBase.
java:785)
        at
org.apache.catalina.connector.ResponseBase.write(ResponseBase.java:648)
        at
org.apache.catalina.connector.ResponseStream.write(ResponseStream.java:313)
        at
org.apache.catalina.connector.http.HttpResponseStream.write(HttpResponseStre
am.java:183)
        at
java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:156)
        at
java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:114)
        at java.util.zip.ZipOutputStream.write(ZipOutputStream.java:261)
        at dk.topix.pixdb.servlet.Tiffziper.writeEntry(Tiffziper.java:165)


the application is runing on a tomcat4.1/java1.4/linux box.

Any hints/ideas?

Jan Agermose

Reply via email to