Loading...
 

PogamutUT2004


RMI stub

Every once in a while, my code stops running and finishes with the following warnings:

Jan 8, 2011 1:30:32 PM ClientCommunicatorAdmin restart
WARNING: Failed to restart: java.io.IOException: Failed to get a RMI stub: javax.naming.NameNotFoundException: server
Jan 8, 2011 1:30:32 PM ClientCommunicatorAdmin Checker-run
WARNING: Failed to check connection: java.rmi.NoSuchObjectException: no such object in table
Jan 8, 2011 1:30:32 PM ClientCommunicatorAdmin Checker-run
WARNING: stopping

This error is very unpredictable. I'm evolving bots, and restarting the server each time. This error can happen 20+ generations into evolution, or it could happen during the first generation. What I find really strange is that my code is set up to restart the server and redo the evaluation if any kind of bad termination happens, but whenever this error comes up it stops all servers and makes the code hang. Because the errors are so irregular, I wonder if they might be caused by things happening on my system, such as other programs running or network traffic, but I don't know.

I'm still using the downloaded Pogamut 3.1 (though I'll probably switch to SVN soon).

What is an RMI stub anyway?
Looks like bad things is happening inside JMX part of the code (who knows who is to blame...).

Seems like we need the switch, whether JMX is required for the UT2004 bot. JMX stands for Java Management Extension (or something like that)
and defines how to create interfaces which may be remotely called. Currently the mediator is the RMI, which is being started/stopped as agents
are created/destroyed. I have not test these in long run.

Are you closing Pogamut platform in your code every evolution iteration? You should truly call Pogamut.getPlatform().close() only in the case you're going to
exit JVM.

Best,
Jimmy
 

News

News RSS RSS feed for News link



Pogamut

Quarterly RSS RSS feed for quarterly reports

Acknowledgement

This work is supported by GA UK 1053/2007/A-INF/MFF (2007-8), GA UK 351/2006/A-INF/MFF (2006-8), the Ministry of Education of the Czech Republic (grant MSM0021620838) (2008-9), by the Program "Information Society" under project 1ET100300517 (2006-9), and the project Integration of IT Tools into Education of Humanities (2006-8) and by the project CZ.2.17/3.1.00/31162, which are financed by the European Social Fund, the state budget of the Czech Republic, and by the budget of Municipal House Prague.