casperge / RealisticSeasons-issues

1 stars 0 forks source link

1.19.3 Error when closing server #184

Closed mpdk closed 1 year ago

mpdk commented 1 year ago

So it throws this error when closing the server. you probably already know this. But here it is anyway :)

[16:50:01] [Server thread/ERROR]: Error occurred while disabling RealisticSeasons v10.1.13 (Is it up to date?) java.lang.NullPointerException: Cannot invoke "me.casperge.realisticseasons.data.DataHandler.save()" because "this.datareader" is null at me.casperge.realisticseasons.RealisticSeasons.onDisable(RealisticSeasons.java:301) ~[RealisticSeasons-10.1.13.jar:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:266) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?] at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:400) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?] at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:581) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?] at me.casperge.realisticseasons.RealisticSeasons.enable(RealisticSeasons.java:189) ~[RealisticSeasons-10.1.13.jar:?] at me.casperge.realisticseasons.RealisticSeasons$1.run(RealisticSeasons.java:159) ~[RealisticSeasons-10.1.13.jar:?] at org.bukkit.craftbukkit.v1_19_R2.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.19.3.jar:git-Paper-323] at org.bukkit.craftbukkit.v1_19_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[paper-1.19.3.jar:git-Paper-323] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1114) ~[paper-1.19.3.jar:git-Paper-323] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316) ~[paper-1.19.3.jar:git-Paper-323] at java.lang.Thread.run(Thread.java:833) ~[?:?]

Then this error follows

[16:50:01] [Server thread/WARN]: [RealisticSeasons] Task #61 for RealisticSeasons v10.1.13 generated an exception java.lang.IllegalStateException: zip file closed at java.util.zip.ZipFile.ensureOpen(ZipFile.java:831) ~[?:?] at java.util.zip.ZipFile.getEntry(ZipFile.java:330) ~[?:?] at java.util.jar.JarFile.getEntry(JarFile.java:518) ~[?:?] at java.util.jar.JarFile.getJarEntry(JarFile.java:473) ~[?:?] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:189) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?] at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:129) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?] at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:124) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?] at me.casperge.realisticseasons.RealisticSeasons.enable(RealisticSeasons.java:192) ~[RealisticSeasons-10.1.13.jar:?] at me.casperge.realisticseasons.RealisticSeasons$1.run(RealisticSeasons.java:159) ~[RealisticSeasons-10.1.13.jar:?] at org.bukkit.craftbukkit.v1_19_R2.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.19.3.jar:git-Paper-323] at org.bukkit.craftbukkit.v1_19_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[paper-1.19.3.jar:git-Paper-323] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1114) ~[paper-1.19.3.jar:git-Paper-323] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316) ~[paper-1.19.3.jar:git-Paper-323] at java.lang.Thread.run(Thread.java:833) ~[?:?]