Re: outrigger "I/O error reading from mux connection"

Lachlan O'Dea <[email protected]>
Newsgroups gmane.comp.java.sun.javaspaces
Message-ID <[email protected]>
On 15/09/2005, at 0:30, John W. F. Mcclain wrote:

> I think Gregg is probably right. Logging the
> "writing EntryRep[com.ca.jini.space.hello.StdioHelloEntry] (txn =
> null)"
> message is pretty much the last thing the server side write
> method does before returning the necessary info to create the lease
> in the client. At this point the entry has
> been made visible to other threads (and if this was a persistent space
> made durable). Is the client doing the take doing a blocking
> take? If yes my guess is that when the write happens there is a query
> from a previous, but now dead, instance of the taking client still
> in progress, that take gets the newly written entry, the entry
> gets dumped on the floor (since the previous client is dead)
> and JERI's java.io.EOFException occurs when JERI turns around
> to get the next call from the dead taking client.
>
> See this post for a longer discussion of this issue:
>
>   http://archives.java.sun.com/cgi-bin/wa?A2=ind0405&L=javaspaces-
> users&P=R2084&I=-3
>
> If you are not doing a blocking take or there was no previous
> instance of the taking client, I need more info....
>
> Hope this helps, if not we can try again....

Yep, I think you nailed it. My receiver is doing a blocking take with
Long.MAX_VALUE timeout. Because of the simplistic nature of my test
code, I was just doing a ctrl-c when I needed to stop and restart the
clients. A few more tests confirmed that the problem occurs only
after I ctrl-c the taking process. It always seems obvious in hindsight.

So, if I understand the messages you referenced correctly, this is an
inherent problem with distributed computing and using a transaction
is the standard way to deal with it?

Thank you everyone for your responses. As a newbie to Javaspaces,
it's certainly encouraging to receive such a level of assistance.

--
Lachlan O'Dea
Computer Associates
Senior Software Engineer
tel: +61 3 8416 5627
fax: +61 3 8416 5810
mobile: +61 412 390 650
[email protected]

Relax and enjoy your shoes!



===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff JAVASPACES-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

To view past JAVASPACES-USERS postings, please see:
http://archives.java.sun.com/archives/javaspaces-users.html

JDC members can download the JavaSpaces(tm) Technology from:
http://developer.java.sun.com/developer/products/jini/
PGP.sig (application/pgp-signature, 478 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.