Re: no such object in table
Dan Creswell <[email protected]>
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <[email protected]> |
Hi Chaps, Mark Brouwer wrote: > Rikard Elofsson wrote: >> Mark Brouwer skrev: >>> 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. >> >> Thanks! I really need to learn not to be sloppy about object >> references... I'll read up on DGC but thanks so far for the help! > > Rikard, > > FYI personally I don't enable DGC as I want to have my service up > regardless of whether there are any consumers any given moment and it > has some drawbacks as stated in the specs. I always make sure an > exported object is strongly referenced so it won't be GCed (actually the > framework I'm using does that for me but the idea stays the same). > > I think Gregg and Dan discussed this subject recently, but I'm not able > to find the reference to that discussion that quickly, maybe they can > provide a pointer. Yeah, so Gregg and I were talking specifically about keeping the back-end element of a service alive when run from Service Starter. We discussed all of that here: http://archives.java.sun.com/cgi-bin/wa?A1=ind0701&L=jini-users#32 However, given the symptoms of your problem there are multiple potential causes so we need to figure out exactly what causes it. i.e. Why the back-end service is no longer present. So, it _might_ be DGC but it _might_ be something else such as the way you are doing development and testing. Hope that helps, Dan. > -- > 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] > -------------------------------------------------------------------------- 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]