<P> I am using the setData,getData &nbsp;methods(not getObject()/setObject() methods ).what do you think is the problem?
<P>&nbsp; <B><I>Daniel Rall &lt;dlr@collab.net&gt;</I></B> wrote: 
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">&gt; &gt; this happens after the application runs for a long time(8-10<BR>&gt; &gt; hrs).how can we know when to reconnect and what is causing this<BR>&gt; &gt; exception?<BR>&gt; &gt; <BR>&gt; &gt; spread.SpreadException: Connection closed while reading header <BR>&gt; &gt; at spread.SpreadConnection.internal_receive(SpreadConnection.java:1045) <BR>&gt; &gt; at spread.SpreadConnection.receive(SpreadConnection.java:1018) <BR>&gt; &gt; at NewsHeadLines$NewsThread.run(NewsHeadLines.java:233) <BR>&gt; <BR>&gt; Your client may be receiving messages too slowly. The daemon will<BR>&gt; eventually disconnect your client, I believe after buffering a certain<BR>&gt; number of messages (I believe it defaults to 1000).<BR>&gt; <BR>&gt; Do you happen to be using SpreadMessage's setObject() and/or<BR>&gt; getObject() methods? They both are implemented using Java's<BR>&gt; serialization mechanism, which is fairly slow.<BR><BR>jasniya badsha <JASNIYA@YAHOO.COM>writes:<BR><BR>&gt; Can u pls suggest a solution for this problem?I have just noticed<BR>&gt; that this happens even after the applet runs for just an hour or<BR>&gt; less.Can we know if the connection is actually being closed -the<BR>&gt; applet gives unexpected results when i tried to reconnect<BR>&gt; again(showing the same spread exception)<BR><BR>Are you then using the getObject()/setObject() methods of<BR>SpreadMessage?<BR><BR>If so, I'd recommend using a format other than Java objects for your<BR>message payload. There are quite a few tools which can turn simple<BR>Java objects into XML (and vice versa). The other getXxx()/setXxx()<BR>methods of SpreadMessage won't have the overhead of Java<BR>Serialization.<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