Skip to content

Jail fails to load after creating a new jail with cells, then restarting the server. #41

@ghost

Description

Looks like jail is returning an error when it tries to load the flatfile. I've included the error below.

java.lang.NullPointerException
    at com.graywolf336.jail.JailIO.loadJailFromFlatFile(JailIO.java:631) ~[?:?]
    at com.graywolf336.jail.JailIO.loadJails(JailIO.java:578) ~[?:?]
    at com.graywolf336.jail.JailMain.onEnable(JailMain.java:77) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-d0d1d87-15e81cf]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:335) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-d0d1d87-15e81cf]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-d0d1d87-15e81cf]
    at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugin(CraftServer.java:356) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-d0d1d87-15e81cf]
    at org.bukkit.craftbukkit.v1_8_R1.CraftServer.enablePlugins(CraftServer.java:316) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-d0d1d87-15e81cf]
    at net.minecraft.server.v1_8_R1.MinecraftServer.q(MinecraftServer.java:402) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-d0d1d87-15e81cf]
    at net.minecraft.server.v1_8_R1.MinecraftServer.k(MinecraftServer.java:370) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-d0d1d87-15e81cf]
    at net.minecraft.server.v1_8_R1.MinecraftServer.a(MinecraftServer.java:325) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-d0d1d87-15e81cf]
    at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:211) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-d0d1d87-15e81cf]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:494) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-d0d1d87-15e81cf]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_25]

I basically deleted the data.yml file, started up the live server, then created the jail for a fresh file. I then copied the files in the folder over to my local test server, which is an identical copy of my live server, and started it up. The error showed up when I checked the logs to see if the jail loaded successfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions