Sign in to follow this  
Sklo:D

Moving guard towers - Endless exception loop - LAG Spam

Recommended Posts

Moving guard towers as a GM no matter if push / pull or summon will cause an endless exception loop of nullpointerexceptions in the pollCreatures method.

 

The problem is that the Creature class for the guards left in the old place still have this.guardTower !=null after the move, but the GuardTower.class doesn't remember the guardTower before the move and causes and NPE exception when it tries to load the kingdom of it.

 

 

Apr 14, 2019 4:57:04 PM com.wurmonline.server.creatures.Creatures pollAllCreatures

INFO: null

java.lang.NullPointerException

at com.wurmonline.server.kingdom.GuardTower.getKingdom(GuardTower.java:111)

at com.wurmonline.server.creatures.Creature.checkForEnemies(Creature.java:17183)

at com.wurmonline.server.creatures.Creature.checkForEnemies(Creature.java:17176)

at com.wurmonline.server.creatures.Creature.poll(Creature.java:6219)

at com.wurmonline.server.creatures.Creatures.pollAllCreatures(Creatures.java:1834)

at com.wurmonline.server.zones.Zones.pollNextZones(Zones.java:1975)

at com.wurmonline.server.Server.run(Server.java:1911)

at java.util.TimerThread.mainLoop(Timer.java:555)

at java.util.TimerThread.run(Timer.java:505)



Apr 14, 2019 4:57:05 PM com.wurmonline.server.creatures.Creatures pollAllCreatures

INFO: null

java.lang.NullPointerException

at com.wurmonline.server.kingdom.GuardTower.getKingdom(GuardTower.java:111)

at com.wurmonline.server.creatures.Creature.checkForEnemies(Creature.java:17183)

at com.wurmonline.server.creatures.Creature.checkForEnemies(Creature.java:17176)

at com.wurmonline.server.creatures.Creature.poll(Creature.java:6219)

at com.wurmonline.server.creatures.Creatures.pollAllCreatures(Creatures.java:1834)

at com.wurmonline.server.zones.Zones.pollNextZones(Zones.java:1975)

at com.wurmonline.server.Server.run(Server.java:1911)

at java.util.TimerThread.mainLoop(Timer.java:555)

at java.util.TimerThread.run(Timer.java:505)



Apr 14, 2019 4:57:06 PM com.wurmonline.server.creatures.Creatures pollAllCreatures

INFO: null

java.lang.NullPointerException

at com.wurmonline.server.kingdom.GuardTower.getKingdom(GuardTower.java:111)

at com.wurmonline.server.creatures.Creature.checkForEnemies(Creature.java:17183)

at com.wurmonline.server.creatures.Creature.checkForEnemies(Creature.java:17176)

at com.wurmonline.server.creatures.Creature.poll(Creature.java:6219)

at com.wurmonline.server.creatures.Creatures.pollAllCreatures(Creatures.java:1834)

at com.wurmonline.server.zones.Zones.pollNextZones(Zones.java:1975)

at com.wurmonline.server.Server.run(Server.java:1911)

at java.util.TimerThread.mainLoop(Timer.java:555)

at java.util.TimerThread.run(Timer.java:505)



Apr 14, 2019 4:57:07 PM com.wurmonline.server.creatures.Creatures pollAllCreatures

INFO: null

java.lang.NullPointerException



Apr 14, 2019 4:57:07 PM com.wurmonline.server.creatures.Creatures pollAllCreatures

INFO: null

java.lang.NullPointerException

Apr 14, 2019 4:57:07 PM com.wurmonline.server.creatures.Creatures pollAllCreatures

INFO: null

java.lang.NullPointerException

Apr 14, 2019 4:57:07 PM com.wurmonline.server.creatures.Creatures pollAllCreatures

INFO: null

java.lang.NullPointerException

Apr 14, 2019 4:57:07 PM com.wurmonline.server.creatures.Creatures pollAllCreatures

INFO: null

java.lang.NullPointerException

Apr 14, 2019 4:57:07 PM com.wurmonline.server.creatures.Creatures pollAllCreatures

INFO: null

java.lang.NullPointerException

Apr 14, 2019 4:57:07 PM com.wurmonline.server.creatures.Creatures pollAllCreatures

INFO: null

java.lang.NullPointerException


and a few 100 other NPEs....

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this