Error in server.log on startup #1


  • Defect
  • Accepted
Open
Assigned to _ForgeUser1837380
  • _ForgeUser7900091 created this issue Sep 13, 2012

    Restarted my server and got the following error in the log.   Protections are not active after this came up.

    22:46:12 [INFO] [Border Patrol] Enabling Border Patrol v0.4b
    22:46:12 [INFO] You have now enabled Border Patrol Version 0.4b Made by [calebbfmv, skore87]
    22:46:12 [SEVERE] Error occurred while enabling Border Patrol v0.4b (Is it up to date?)
    java.lang.NullPointerException
        at com.dpajd.ProtectionPlugin.Regions.Region.<init>(Region.java:51)
        at com.dpajd.ProtectionPlugin.Regions.Region.loadRegions(Region.java:370)
        at com.dpajd.ProtectionPlugin.Main.Main.onEnable(Main.java:146)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:365)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:265)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:247)
        at net.minecraft.server.MinecraftServer.i(MinecraftServer.java:296)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:275)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:225)
        at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:140)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:378)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)

  • _ForgeUser7900091 added the tags New Defect Sep 13, 2012
  • _ForgeUser1837380 posted a comment Sep 14, 2012

    If you don't mind, can you put your "regions/<user>.yml" file on a paste service and post the link here? What happened is somehow the world wasn't found from the region file.


    Edited Sep 14, 2012
  • _ForgeUser1837380 removed a tag New Sep 14, 2012
  • _ForgeUser1837380 added a tag Accepted Sep 14, 2012
  • _ForgeUser1837380 unassigned issue from _ForgeUser8968356 Sep 14, 2012
  • _ForgeUser1837380 self-assigned this issue Sep 14, 2012
  • _ForgeUser7900091 posted a comment Sep 14, 2012

    Here are the files in the regions folder.   There were only 4 in there.  One was totally blank.  I tried to delete it, but I still get the error.  

    http://pastebin.com/sdz78WDY

    http://pastebin.com/9jrPTCNj

    http://pastebin.com/DxvrznJ3

    Ken

  • _ForgeUser1837380 posted a comment Sep 14, 2012

    Your world name is "world1" ? Also, this only happens on first start right?

  • _ForgeUser7900091 posted a comment Sep 14, 2012

    Yes, the world is world1. It has always been in that world. The plugin was working fine. Was testing it for a few days. Yesterday I stopped server and restarted. That's when the error came up. I have stopped and started a few times. Once it started without the error, but haven't been able to get it to work again. The only time I get the error is upon startup. I would assume that the regions are not loading at all when I get this error. I will test it tonight when I get home from work.

  • _ForgeUser1837380 posted a comment Sep 14, 2012

    When that error happens you are basically naked of any protections from the plugin. What I believe to be the cause is that it is retrieving "world1" before it is actually available and thus causing a null pointer. I have added a delay to loading the regions on start-up and it will be included in the next update.

    For now until that update if the error comes up you will want to call reload on the server.

  • _ForgeUser7900091 posted a comment Sep 14, 2012

    <<reply 953003>>

    I think you are correct.  Now that you mention it, I had added some worlds in temporarily to get some builds from old maps.  Then I removed them.  Maybe multiverse changed the order of them loading.  Right now it's working.  I think delay will correct the problem.  Thank you!


To post a comment, please login or register a new account.