<P> Can u pls suggest a solution for this problem?I have just noticed that this happens even after the applet runs for just an hour or less.Can we know if the connection is actually being closed -the applet gives unexpected results when i tried to reconnect again(showing the same spread exception)
<P> <B><I>Daniel Rall <dlr@collab.net></I></B> wrote:
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">jasniya badsha <JASNIYA@YAHOO.COM>writes:<BR><BR>> this happens after the application runs for a long time(8-10 hrs).how can we know when to reconnect and what is causing this exception?<BR>> <BR>> spread.SpreadException: Connection closed while reading header <BR>> at spread.SpreadConnection.internal_receive(SpreadConnection.java:1045) <BR>> at spread.SpreadConnection.receive(SpreadConnection.java:1018) <BR>> at NewsHeadLines$NewsThread.run(NewsHeadLines.java:233) <BR><BR>Your client may be receiving messages too slowly. The daemon will<BR>eventually disconnect your client, I believe after buffering a certain<BR>number of messages (I believe it defaults to 1000).<BR><BR>Do you happen to be using SpreadMessage's setObject() and/or<BR>getObject() methods? They both are implemented using Java's<BR>serialization mechanism, which is fairly slow.<BR>-- <BR><BR>Daniel Rall <DLR@FINEMALTCODING.COM><BR><BR>_______________________________________________<BR>Spread-users mailing list<BR>Spread-users@lists.spread.org<BR>http://lists.spread.org/mailman/listinfo/spread-users</BLOCKQUOTE><p><br><hr size=1><b>Do You Yahoo!?</b><br>
<a href="http://health.yahoo.com/">Yahoo! Health</a> - Feel better, live better