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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this