<HTML dir=ltr><HEAD><TITLE>[Spread-users] SpreadException: spread.SpreadException: Connection closed while reading header</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16939" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText82635 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>There is a bug in the client side piece of Spread-4.0.jar where it does not clear the state of a boolean variable if the spread daemon dies. Reconnection logic just checks for the boolean variable and if its' true, it assumed it's already connected, and does not attempt a re-connection.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>I'd sent an email about this to the spread group about 2-3 months back along with a fix to the source code.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>Let me know if you can't find it. I should be able to dig it for you - but only after I get back from my vacation in late Dec.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>Renee.</FONT></DIV>
<DIV dir=ltr>&nbsp;</DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> spread-users-bounces@lists.spread.org on behalf of Michael Di Stefano<BR><B>Sent:</B> Sat 11/28/2009 12:51 PM<BR><B>To:</B> spread-users@lists.spread.org<BR><B>Subject:</B> [Spread-users] SpreadException: spread.SpreadException: Connection closed while reading header<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Hi<BR><BR>I am testing my application for error conditions and purposefully<BR>killing the spread server.&nbsp; There is no message activity, the<BR>application is just sitting listening for a message.&nbsp;&nbsp; (I am using a<BR>Basic Message Listener)<BR><BR>When I kill the server I get<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp; SpreadException: spread.SpreadException: Connection closed while<BR>reading header<BR><BR>printed to standard out.&nbsp;&nbsp; I do not seem to be able to find where this<BR>exception is being thrown/printed and where to catch the exception so I<BR>can exit my program.<BR><BR>My environment is<BR><BR>&nbsp;&nbsp; --- spread server is running on a MAC<BR>&nbsp;&nbsp; --- Application is a written in Java using spread-4.0.0.jar<BR><BR>Any advise is appreciated.<BR><BR>Thanks<BR><BR>Michael<BR><BR><BR></FONT></P></DIV></BODY></HTML> <HTML><BODY><P><hr size=1></P>
<P><STRONG>                                                                                                                                     
                                                         
<CENTER>******* CONFIDENTIALITY NOTICE *******</CENTER><BR>
This e-mail message and all attachments transmitted with it may contain legally privileged and confidential information intended solely for the use of the addressee. If the reader of this message is not the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately and delete this message from your system. Thank you.
</STRONG></P></BODY></HTML>