WiIIiam278 / HuskSync

A modern, cross-server player data synchronisation system
https://william278.net/project/husksync
Apache License 2.0
177 stars 131 forks source link

IllegalStateException with EternalTags #374

Closed nhanledev closed 2 months ago

nhanledev commented 2 months ago

Problem: When running EternalTags with HuskSync, the plugin throws an exception on server stop like the log snippet below.

If I don't run HuskSync, the server close normally without exception.

I have reported this on EternalTags as well because I don't know which plugin is generating the issue.

I hope you can have a look at this and give me a suggestion for this issue. Thank you.

https://github.com/Oribuin/EternalTags/issues/42

[10:49:59 INFO]: [EternalTags] Disabling EternalTags v1.3.2
[10:49:59 ERROR]: Error occurred while disabling EternalTags v1.3.2
java.lang.IllegalStateException: zip file closed
        at java.base/java.util.zip.ZipFile.ensureOpen(ZipFile.java:846) ~[?:?]
        at java.base/java.util.zip.ZipFile.getEntry(ZipFile.java:338) ~[?:?]
        at java.base/java.util.jar.JarFile.getEntry(JarFile.java:516) ~[?:?]
        at java.base/java.util.jar.JarFile.getJarEntry(JarFile.java:471) ~[?:?]
        at io.papermc.paper.plugin.entrypoint.classloader.PaperSimplePluginClassLoader.findClass(PaperSimplePluginClassLoader.java:62) ~[paper-1.21.1.jar:1.21.1-57-b483da4]
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:593) ~[?:?]
        at io.papermc.paper.plugin.entrypoint.classloader.PaperPluginClassLoader.loadClass(PaperPluginClassLoader.java:118) ~[paper-1.21.1.jar:1.21.1-57-b483da4]
        at io.papermc.paper.plugin.entrypoint.classloader.PaperPluginClassLoader.loadClass(PaperPluginClassLoader.java:107) ~[paper-1.21.1.jar:1.21.1-57-b483da4]
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526) ~[?:?]
        at HuskSync-Paper-3.6.8.jar/net.william278.husksync.libraries.uniform.paper.PaperCommand.lambda$static$0(PaperCommand.java:45) ~[HuskSync-Paper-3.6.8.jar:?]
        at HuskSync-Paper-3.6.8.jar/net.william278.husksync.libraries.uniform.BaseCommand.getUser(BaseCommand.java:76) ~[HuskSync-Paper-3.6.8.jar:?]
        at HuskSync-Paper-3.6.8.jar/net.william278.husksync.libraries.uniform.Permission.lambda$toPredicate$0(Permission.java:76) ~[HuskSync-Paper-3.6.8.jar:?]
        at com.mojang.brigadier.tree.CommandNode.canUse(CommandNode.java:81) ~[paper-1.21.1.jar:1.21.1-57-b483da4]
        at com.mojang.brigadier.CommandDispatcher.getSmartUsage(CommandDispatcher.java:462) ~[paper-1.21.1.jar:?]
        at com.mojang.brigadier.CommandDispatcher.getSmartUsage(CommandDispatcher.java:453) ~[paper-1.21.1.jar:?]
        at io.papermc.paper.command.brigadier.PaperBrigadier.wrapNode(PaperBrigadier.java:51) ~[paper-1.21.1.jar:1.21.1-57-b483da4]
        at io.papermc.paper.command.brigadier.bukkit.BukkitBrigForwardingMap.nodeToEntry(BukkitBrigForwardingMap.java:314) ~[paper-1.21.1.jar:1.21.1-57-b483da4]
        at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?]
        at com.google.common.collect.CollectSpliterators$1.lambda$tryAdvance$0(CollectSpliterators.java:123) ~[guava-32.1.2-jre.jar:?]
        at java.base/java.util.Spliterators$IteratorSpliterator.tryAdvance(Spliterators.java:1950) ~[?:?]
        at com.google.common.collect.CollectSpliterators$1.tryAdvance(CollectSpliterators.java:122) ~[guava-32.1.2-jre.jar:?]
        at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.lambda$initPartialTraversalState$0(StreamSpliterators.java:292) ~[?:?]
        at java.base/java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.fillBuffer(StreamSpliterators.java:206) ~[?:?]
        at java.base/java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.doAdvance(StreamSpliterators.java:169) ~[?:?]
        at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.tryAdvance(StreamSpliterators.java:298) ~[?:?]
        at java.base/java.util.Spliterators$1Adapter.hasNext(Spliterators.java:681) ~[?:?]
        at java.base/java.util.HashMap.putMapEntries(HashMap.java:519) ~[?:?]
        at java.base/java.util.HashMap.<init>(HashMap.java:492) ~[?:?]
        at EternalTags-1.3.2.jar/xyz.oribuin.eternaltags.libs.rosegarden.utils.CommandMapUtils.unregisterCommand(CommandMapUtils.java:66) ~[EternalTags-1.3.2.jar:?]
        at EternalTags-1.3.2.jar/xyz.oribuin.eternaltags.libs.rosegarden.command.framework.RoseCommandWrapper.unregister(RoseCommandWrapper.java:192) ~[EternalTags-1.3.2.jar:?]
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ~[?:?]
        at EternalTags-1.3.2.jar/xyz.oribuin.eternaltags.libs.rosegarden.manager.AbstractCommandManager.disable(AbstractCommandManager.java:36) ~[EternalTags-1.3.2.jar:?]
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ~[?:?]
        at EternalTags-1.3.2.jar/xyz.oribuin.eternaltags.libs.rosegarden.RosePlugin.disableManagers(RosePlugin.java:191) ~[EternalTags-1.3.2.jar:?]
        at EternalTags-1.3.2.jar/xyz.oribuin.eternaltags.libs.rosegarden.RosePlugin.onDisable(RosePlugin.java:125) ~[EternalTags-1.3.2.jar:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:291) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
        at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.disablePlugin(PaperPluginInstanceManager.java:237) ~[paper-1.21.1.jar:1.21.1-57-b483da4]
        at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.disablePlugins(PaperPluginInstanceManager.java:161) ~[paper-1.21.1.jar:1.21.1-57-b483da4]
        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.disablePlugins(PaperPluginManagerImpl.java:97) ~[paper-1.21.1.jar:1.21.1-57-b483da4]
        at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:541) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:609) ~[paper-1.21.1.jar:1.21.1-57-b483da4]
        at net.minecraft.server.MinecraftServer.stopServer(MinecraftServer.java:1046) ~[paper-1.21.1.jar:1.21.1-57-b483da4]
        at net.minecraft.server.dedicated.DedicatedServer.stopServer(DedicatedServer.java:847) ~[paper-1.21.1.jar:1.21.1-57-b483da4]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1353) ~[paper-1.21.1.jar:1.21.1-57-b483da4]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:330) ~[paper-1.21.1.jar:1.21.1-57-b483da4]
        at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
[10:49:59 INFO]: [TAB-Bridge] Disabling TAB-Bridge v5.0.7