Re: no such object in table
Mark Brouwer <[email protected]>
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <[email protected]> |
Rikard Elofsson wrote: > Hello all > > I use LookupCaches to keep trail of my service objects. After getting a > call to serviceAdded in ServiceDiscoveryListener i happily try to use > that object (evt.getPostEventServiceItem()). Sometimes but not every > time I get an RMI error. What is wrong? Do I have to wait for something? > Is it possible to check whether this something is ready? This means that at the JVM you exported your service the RMI runtime is still listening on that port (the client is able to connect to), but the object once exported (your service) has gone. The exception you get means the RMI runtime can't find a service with a particular object identifier. This can be due to your service being unexported explicitly or there is no strong reference to your exported service in your JVM, in which it gets GCed. I have no idea how you export your service/remote object but maybe having a look at the documentation (enableDGC flag) in http://java.sun.com/products/jini/2.1/doc/api/net/jini/jeri/BasicJeriExporter.html helps you solve the problem, documentation is at the class level. -- Mark -------------------------------------------------------------------------- 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]