George2 0 Junior Poster

Hello everyone,


When reading from a socket, I got error,

java.io.StreamCorruptedException unexpected end of block data

I only get it very randomly and very hard to reproduce. Does anyone encounter this before, any ideas?

Should it be caused by server side (output stream is not flushed)?

BTW: I program both client and server.


thanks in advance,
George

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.