Cannot start agent
I somehow managed to get the Pogamut environment into a weird state. After developing (and succesfully running) bots for couple hours I now mysteriously can't run even the EmptyBot example. The first occurence of this state was marked by a bot being present in the UT, while there was no running thread in the IDE.
Since then, everytime i start a bot I get the ouput below.
Restarting the IDE and / or the UT server does not help. I have initialized the server using the UT 2004 GUI as mentioned in the "Starting the GameBots server" chapter in the gamebots tutorial. (I somehow can't make it work through the command-line startup).
I am using Pogamut version 3.08 (installed over a previous 3.03 installation).
I am going to try to restart the whole machine and reinstall Pogamut hoping it helps, however, this seems as a bug to me.
I think this issue might be related to the one described at
http://diana.ms.mff.cuni.cz/main/tiki-view_forum_thread.php?forumId=4&comments_parentId=61&comments_per_page=1&thread_style=commentStyle_plain
however, I am not using any modules (it's just the EmptyBot from pogamut samples) and the bug should be already fixed in 3.0.8
Thanks
Martin Cerny
The output:
(EmptyBot1) WARNING 19:09:39.234 Starting agent EmptyBot1-1@babicka/b5a06b1d-0d2b-16be-fb00-2f616242aea2
(EmptyBot1) WARNING 19:09:39.250 Connecting to SocketConnectionAddresslocalhost:3000.
(EmptyBot1) WARNING 19:09:39.281 Log level set to WARNING.
(EmptyBot1) WARNING 19:09:39.312 Thread 0: Thread started.
5.5.2010 19:09:39 cz.cuni.amis.pogamut.base.utils.DefaultPogamutPlatform getMBeanServer
WARNING: Creating registry at 4420 ...
5.5.2010 19:09:39 cz.cuni.amis.pogamut.base.utils.DefaultPogamutPlatform getMBeanServer
WARNING: Starting MBean server.
(EmptyBot1) SEVERE 19:09:40.125 Fatal error in WorldView116: Exception raising event InfoMessageAddInventoryMsg | Id = WorldObjectIdDM-TrainingDay.AssaultRifle | Type = XWeapons.AssaultRifle | PickupType = ItemTypename = XWeapons.AssaultRiflePickup, category = WEAPON, group = ASSAULT_RIFLE |
(EmptyBot1) SEVERE 19:09:40.140 Fatal error happenned - component bus is stopping.
FatalErrorEvent[
Component=UT2004SyncLockableWorldView
Message=Exception raising event InfoMessageAddInventoryMsg | Id = WorldObjectIdDM-TrainingDay.AssaultRifle | Type = XWeapons.AssaultRifle | PickupType = ItemTypename = XWeapons.AssaultRiflePickup, category = WEAPON, group = ASSAULT_RIFLE |
Cause=java.lang.NullPointerException
Cause stacktrace:
cz.cuni.amis.pogamut.ut2004.agent.module.sensomotoric.Weaponry$Ammunition.getPriAmmoForWeapon(Weaponry.java:532)
cz.cuni.amis.pogamut.ut2004.agent.module.sensomotoric.Weaponry$AddInventoryMsgListener.notify(Weaponry.java:767)
cz.cuni.amis.pogamut.ut2004.agent.module.sensomotoric.Weaponry$AddInventoryMsgListener.notify(Weaponry.java:758)
cz.cuni.amis.pogamut.base.communication.worldview.impl.AbstractWorldView$ListenerNotifier.notify(AbstractWorldView.java:98)
cz.cuni.amis.pogamut.base.communication.worldview.impl.AbstractWorldView$ListenerNotifier.notify(AbstractWorldView.java:77)
cz.cuni.amis.utils.listener.Listeners.notify(Listeners.java:252)
cz.cuni.amis.utils.listener.ListenersMap.notify(ListenersMap.java:76)
cz.cuni.amis.pogamut.base.communication.worldview.impl.AbstractWorldView.notifyLevelAListeners(AbstractWorldView.java:629)
cz.cuni.amis.pogamut.base.communication.worldview.impl.AbstractWorldView.innerRaiseEvent(AbstractWorldView.java:700)
cz.cuni.amis.pogamut.base.communication.worldview.impl.AbstractWorldView.raiseEvent(AbstractWorldView.java:604)
cz.cuni.amis.pogamut.base.communication.worldview.impl.EventDrivenWorldView.raiseEvent(EventDrivenWorldView.java:102)
cz.cuni.amis.pogamut.base.communication.worldview.impl.EventDrivenWorldView.innerNotify(EventDrivenWorldView.java:126)
cz.cuni.amis.pogamut.base.communication.worldview.impl.EventDrivenWorldView.notify(EventDrivenWorldView.java:223)
cz.cuni.amis.pogamut.base3d.worldview.impl.BatchAwareWorldView.notify(BatchAwareWorldView.java:83)
cz.cuni.amis.pogamut.ut2004.communication.worldview.UT2004SyncLockableWorldView.notify(UT2004SyncLockableWorldView.java:221)
cz.cuni.amis.pogamut.base.communication.mediator.impl.Mediator$Worker.run(Mediator.java:315)
java.lang.Thread.run(Thread.java:619)
(EmptyBot1) SEVERE 19:09:40.140 Received fatal error from WorldView.
(EmptyBot1) WARNING 19:09:40.140 Calling Connection.kill().
(continues along the lines of killing everything and then exiting for several dozen lines)