Hello Bastian,

> The same with a stream over the network failed.
> Look like the first parts of the file will be
> copied over but than the copy stops with the
> following exception:
> 
> 
> 2006-11-30 17:24:37,521 DEBUG [AWT-EventQueue-0]
>    org.apache.commons.httpclient.HttpMethodBase:
>        Resorting to protocol  version default close connection policy
> 2006-11-30 17:24:37,521 DEBUG [AWT-EventQueue-0]
>    org.apache.commons.httpclient.HttpMethodBase:
>        Should NOT close connection, using HTTP/1.1
> 2006-11-30 17:24:37,521 DEBUG [AWT-EventQueue-0]
>      org.apache.commons.httpclient.HttpConnection:
>          Releasing connection back to connection manager.
> 
> java.io.EOFException
>       at 
> java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2435)
>       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1245)
>       at 
> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
>       at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
>       at 
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)

It's hard to tell whether this is a problem on the client or
server side. You could please send a wire log for both header
and content?
http://jakarta.apache.org/commons/httpclient/logging.html

Have you tried receiving the data into a byte array instead
of deserializing it immediately? Are there corresponding
error messages on the server?

> I am using "application/octet-stream" is this ok?

I don't see anything wrong with this.

> Maybe something runs out of memory ?

That should generate a different kind of error.

cheers,
  Roland


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to