Need urgent help on Java RMI - java.rmi.NoSuchObjectException
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Navneet_Yadav
Posted On:   Thursday, November 26, 2009 03:26 AM

Pleas Hi friends, I have a RMI application on which multiple clients invoke server methods remotely. The server is running on Unix box. The application runs fine normally. But sometimes the users get an exception "java.rmi.NoSuchObjectException: no such object in table". This error is fixed when i restart the server. Previously we used to get his problem once in a month but now it’s more frequent, creating a lot of problems at times. As per the RMI documentation this exception comes when we try to invoke a method on an object which is no longer available. Its quiet obvious that the object which the users try to invoke is garbage collected by the DGC, but why it is garbage collected even when it has a reference t   More>>


Pleas Hi friends,

I have a RMI application on which multiple clients invoke server methods remotely. The server is running on Unix box. The application runs fine normally. But sometimes the users get an exception "java.rmi.NoSuchObjectException: no such object in table". This error is fixed when i restart the server.

Previously we used to get his problem once in a month but now it’s more frequent, creating a lot of problems at times.

As per the RMI documentation this exception comes when we try to invoke a method on an object which is no longer available. Its quiet obvious that the object which the users try to invoke is garbage collected by the DGC, but why it is garbage collected even when it has a reference to it.

Restarting the server rebinds all the objects to the RMI registry again and the error disappears. But it again appears after sometime. This is really causing frustration among the users.

Can anyone suggest a permanent solution to this problem??

I tried to locally stimulate this problem by a small RMI example but did not get this exception in any case. Is there any way to stimulate this exception by an example so that I can find a solution to this???

Thanks in advance

Regards
Navneet Yadav

   <<Less
About | Sitemap | Contact