Server crashes on startup when trying to spawn temporary spawns

Results 1 to 2 of 2
  1. #1
    Enthusiast OldTimeDev is offline
    MemberRank
    Sep 2013 Join Date
    CanadaLocation
    40Posts

    Server crashes on startup when trying to spawn temporary spawns

    I've had my AL v2.5 server running for some time, but all of a sudden it crashes on startup now, with the following error:

    Code:
    11:14:42.560 INFO [main]: - Spawned houses 710010000 [1] : 500
    11:14:42.560 INFO [main]: - Spawned 710020000 [1] : 0
    11:14:42.560 INFO [main]: - Spawned 900020000 [1] : 0
    11:14:42.560 INFO [main]: - Spawned 900030000 [1] : 0
    11:14:42.560 INFO [main]: - Spawned 900100000 [1] : 0
    11:14:42.560 INFO [main]: - Spawned 900110000 [1] : 0
    11:14:42.560 INFO [main]: - Spawned 900120000 [1] : 0
    11:14:42.560 INFO [main]: - Spawned 900130000 [1] : 0
    11:14:42.560 INFO [main]: - Spawned 900140000 [1] : 0
    11:14:42.560 INFO [main]: - Spawned 990010110 [1] : 0
    11:14:42.575 INFO [main]: - Loaded 91425 npc spawns
    11:14:42.575 INFO [main]: - Loaded 19490 gatherable spawns
    11:14:42.638 ERROR[main]: - Critical Error - Thread: main terminated abnormaly: java.lang.NullPointerException
    java.lang.NullPointerException: null
            at com.aionemu.gameserver.model.templates.spawns.TemporarySpawn.getTime(TemporarySpawn.java:68) ~[AL-Game.jar:na]
            at com.aionemu.gameserver.model.templates.spawns.TemporarySpawn.geSpawnHour(TemporarySpawn.java:44) ~[AL-Game.jar:na]
            at com.aionemu.gameserver.model.templates.spawns.TemporarySpawn.canSpawn(TemporarySpawn.java:93) ~[AL-Game.jar:na]
            at com.aionemu.gameserver.spawnengine.TemporarySpawnEngine.spawn(TemporarySpawnEngine.java:88) ~[AL-Game.jar:na]
            at com.aionemu.gameserver.spawnengine.TemporarySpawnEngine.spawnAll(TemporarySpawnEngine.java:39) ~[AL-Game.jar:na]
            at com.aionemu.gameserver.GameServer.main(GameServer.java:217) ~[AL-Game.jar:na]
    I've looked at the code where it is crashing, and obviously the temporarySpawn object it is trying to query is NULL. What I can't figure out is why it started barfing all of a sudden as I haven't changed anything on the server. I'm assuming it's failing to read something from data/static_data/spawns but I have yet to find exactly what is failing.

    If anyone has encountered a similar error and managed to fix it, some pointers in the right direction would be really handy.
    Thanks

    Update:
    I did find a reference to this same problem over here http://forum.ragezone.com/f587/relea...9/#post7830979
    However no solution was posted so I don't know if it was ever solved.
    Last edited by OldTimeDev; 31-12-13 at 08:03 PM.


  2. #2
    Enthusiast OldTimeDev is offline
    MemberRank
    Sep 2013 Join Date
    CanadaLocation
    40Posts

    Re: Server crashes on startup when trying to spawn temporary spawns

    Okay, I fixed it, but it was rather odd.

    About a week or so before the crash started happening I had attempted to make a change to the [Group] Cleansing the Temple quest in the quest_data.xml. Some of the mobs listed for you to kill for that quest don't exist so I tried putting in the ones that did. My changes didn't fix the quest, but it didn't make the server crash either, at least not right away. It was about a week later when it started to crash so I didn't connect the changes I had made to the problem. Only after doing a lengthy manual diff between all of the data files in the original download and what I was running did I find that modification and changed it back to the original, which ended up fixing the problem.

    So let that be a lesson to me: take caution when messing with the data



Advertisement