[EMAIL PROTECTED] wrote:

> Has anyone ever come across this exception:
>
> System Error:java.rmi.NoSuchObjectException: no such object in table
> System Error:at 
>sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:249)
> System Error:at 
>sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:224)
> System Error:at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
> System Error:at 
>com.teamenergy.secure.permissionsserver.GamekeeperRemoteServer_Stub.getActivityPermissions(UnknownSource)
>
> I have a small RMI Server which happily runs on a Jdk1.2.2rc2 under Linux.
> It works fine, but after a while the client gives the above error when it
> tries to connect. If I just restart the server, it work

<snip>

>From the javadoc:

ublic class NoSuchObjectException
extends RemoteException

A NoSuchObjectException is thrown if an attempt is made to invoke a method on an 
object that no longer exists in the remote
virtual machine. If a
NoSuchObjectException occurs attempting to invoke a method on a remote object, the 
call may be retransmitted and still
preserve RMI's "at most once" call semantics. A
NoSuchObjectException is also thrown by the method java.rmi.server.RemoteObject.toStub 
and by the unexportObject methods of
java.rmi.server.UnicastRemoteObject and java.rmi.activation.Activatable and



... so perhaps the distributed garbage collection is not working properly?  Trying 
putting a printline in your finalize
method so you know when your object is garbage collected.


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to