Re: Connection Refused Exceptions

Bob Scheifler <[email protected]>
Newsgroups gmane.comp.java.sun.jini
Message-ID <[email protected]>
> Sometimes after the restart I
> will get the following sort of Exception:

Can you provide the complete stack trace (don't SNIP)?

> I am using the ServiceDiscoveryManager and the LookupCache, and I call
> discard() when I get an exception.  However, after the discardWait when
> the services are rediscovered the communication also fails with the same
> error, leading to a cycle of repeated discards, rediscovery, and
> ConnectExceptions.

I take it the cycle never terminates on its own?

> However, upon
> restart my services all register back with the lookup service through
> the JoinManager.

Have you verified that they are in fact replacing their old registrations,
and not just adding in new registrations, leaving the old ones in place
until their leases expire?

- Bob

--------------------------------------------------------------------------
Getting Started:     http://www.jini.org/wiki/Category:Getting_Started
Community Web Site:  http://jini.org
jini-users Archive:  http://archives.java.sun.com/archives/jini-users.html
Unsubscribing:       email "signoff JINI-USERS"  to [email protected]
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.