/ Forside / Teknologi / Udvikling / Java / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Java
#NavnPoint
molokyle 3688
Klaudi 855
strarup 740
Forvirret 660
gøgeungen 500
Teil 373
Stouenberg 360
vnc 360
pmbruun 341
10  mccracken 320
mac/stream problem
Fra : Jan Agermose


Dato : 04-09-03 15:12

Er der nogen her, der har noget input til denne:

I have this webapplication, that lets You pick a list of pictures to
download. At the en you klik 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 fil 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




 
 
Søg
Reklame
Statistik
Spørgsmål : 177558
Tips : 31968
Nyheder : 719565
Indlæg : 6408924
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste