any idea: StreamCorruptedException
1 posts in topic
Flat View  Flat View

Posted By:   cem_tekin
Posted On:   Wednesday, January 12, 2005 02:12 AM


in the application i'm writing currently, the client connects to the server and receives String[] objects thru an ObjectInputStream.

all works fine for the first object: it gets received by the client. but the second one does not and throws StreamCorrupted...

why? somewhere i read to have the server wait for some time (maybe 100ms?) would that solve it? and would it be a healty cure for the problem?

thanx for your help.


Re: any idea: StreamCorruptedException

Posted By:   S_N  
Posted On:   Monday, February 14, 2005 03:03 AM

I too occasionally get the same error message, but it is sporadic, and doesn't occur consistently on all machines/applications. I get a StreamCorruptedException for the first time, when the client connects to the server. However the next time when it trys to receive some object, it works fine.

Any workarounds? Or what is a solution to this problem? Have you been able to solve it?

thx in advance

About | Sitemap | Contact