<P> I am using the setData,getData methods(not getObject()/setObject() methods ).what do you think is the problem?
<P> <B><I>Daniel Rall <dlr@collab.net></I></B> wrote:
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">> > this happens after the application runs for a long time(8-10<BR>> > hrs).how can we know when to reconnect and what is causing this<BR>> > 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>jasniya badsha <JASNIYA@YAHOO.COM>writes:<BR><BR>> Can u pls suggest a solution for this problem?I have just noticed<BR>> that this happens even after the applet runs for just an hour or<BR>> less.Can we know if the connection is actually being closed -the<BR>> applet gives unexpected results when i tried to reconnect<BR>> 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