Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IllegalStateException: zip file closed #30

Open
jnijland opened this issue Sep 16, 2022 · 0 comments
Open

java.lang.IllegalStateException: zip file closed #30

jnijland opened this issue Sep 16, 2022 · 0 comments

Comments

@jnijland
Copy link

Describe the bug

[13:45:58 ERROR]: java.util.concurrent.CompletionException: java.lang.IllegalStateException: zip file closed
[13:45:58 ERROR]:       at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)
[13:45:58 ERROR]:       at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)
[13:45:58 ERROR]:       at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770)
[13:45:58 ERROR]:       at java.base/java.lang.Thread.run(Thread.java:833)
[13:45:58 ERROR]: Caused by: java.lang.IllegalStateException: zip file closed
[13:45:58 ERROR]:       at java.base/java.util.zip.ZipFile.ensureOpen(ZipFile.java:831)
[13:45:58 ERROR]:       at java.base/java.util.zip.ZipFile.getEntry(ZipFile.java:330)
[13:45:58 ERROR]:       at java.base/java.util.jar.JarFile.getEntry(JarFile.java:518)
[13:45:58 ERROR]:       at java.base/java.util.jar.JarFile.getJarEntry(JarFile.java:473)
[13:45:58 ERROR]:       at net.md_5.bungee.api.plugin.PluginClassloader.findClass(PluginClassloader.java:110)
[13:45:58 ERROR]:       at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587)
[13:45:58 ERROR]:       at net.md_5.bungee.api.plugin.PluginClassloader.loadClass0(PluginClassloader.java:66)
[13:45:58 ERROR]:       at net.md_5.bungee.api.plugin.PluginClassloader.loadClass(PluginClassloader.java:59)
[13:45:58 ERROR]:       at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
[13:45:58 ERROR]:       at com.gmail.chickenpowerrr.ranksync.discord.player.PlayerFactory.lambda$getPlayer$4(PlayerFactory.java:113)
[13:45:58 ERROR]:       at com.gmail.chickenpowerrr.ranksync.discord.data.SqlDatabase.lambda$getPlayer$2(SqlDatabase.java:157)
[13:45:58 ERROR]:       at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
[13:45:58 ERROR]:       ... 1 more
[13:45:58 ERROR]: java.util.concurrent.CompletionException: java.lang.IllegalStateException: zip file closed
[13:45:58 ERROR]:       at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)
[13:45:58 ERROR]:       at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)
[13:45:58 ERROR]:       at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770)
[13:45:58 ERROR]:       at java.base/java.lang.Thread.run(Thread.java:833)
[13:45:58 ERROR]: Caused by: java.lang.IllegalStateException: zip file closed
[13:45:58 ERROR]:       at java.base/java.util.zip.ZipFile.ensureOpen(ZipFile.java:831)
[13:45:58 ERROR]:       at java.base/java.util.zip.ZipFile.getEntry(ZipFile.java:330)
[13:45:58 ERROR]:       at java.base/java.util.jar.JarFile.getEntry(JarFile.java:518)
[13:45:58 ERROR]:       at java.base/java.util.jar.JarFile.getJarEntry(JarFile.java:473)
[13:45:58 ERROR]:       at net.md_5.bungee.api.plugin.PluginClassloader.findClass(PluginClassloader.java:110)
[13:45:58 ERROR]:       at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587)
[13:45:58 ERROR]:       at net.md_5.bungee.api.plugin.PluginClassloader.loadClass0(PluginClassloader.java:66)
[13:45:58 ERROR]:       at net.md_5.bungee.api.plugin.PluginClassloader.loadClass(PluginClassloader.java:59)
[13:45:58 ERROR]:       at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
[13:45:58 ERROR]:       at com.gmail.chickenpowerrr.ranksync.discord.player.PlayerFactory.lambda$getPlayer$4(PlayerFactory.java:113)
[13:45:58 ERROR]:       at com.gmail.chickenpowerrr.ranksync.discord.data.SqlDatabase.lambda$getPlayer$2(SqlDatabase.java:154)
[13:45:58 ERROR]:       at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
[13:45:58 ERROR]:       ... 1 more
[13:45:58 ERROR]: java.util.concurrent.CompletionException: java.lang.IllegalStateException: zip file closed
[13:45:58 ERROR]:       at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)
[13:45:58 ERROR]:       at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)
[13:45:58 ERROR]:       at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770)
[13:45:58 ERROR]:       at java.base/java.lang.Thread.run(Thread.java:833)
[13:45:58 ERROR]: Caused by: java.lang.IllegalStateException: zip file closed
[13:45:58 ERROR]:       at java.base/java.util.zip.ZipFile.ensureOpen(ZipFile.java:831)
[13:45:58 ERROR]:       at java.base/java.util.zip.ZipFile.getEntry(ZipFile.java:330)
[13:45:58 ERROR]:       at java.base/java.util.jar.JarFile.getEntry(JarFile.java:518)
[13:45:58 ERROR]:       at java.base/java.util.jar.JarFile.getJarEntry(JarFile.java:473)
[13:45:58 ERROR]:       at net.md_5.bungee.api.plugin.PluginClassloader.findClass(PluginClassloader.java:110)
[13:45:58 ERROR]:       at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587)
[13:45:58 ERROR]:       at net.md_5.bungee.api.plugin.PluginClassloader.loadClass0(PluginClassloader.java:66)
[13:45:58 ERROR]:       at net.md_5.bungee.api.plugin.PluginClassloader.loadClass(PluginClassloader.java:59)
[13:45:58 ERROR]:       at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
[13:45:58 ERROR]:       at com.gmail.chickenpowerrr.ranksync.discord.player.PlayerFactory.lambda$getPlayer$4(PlayerFactory.java:113)
[13:45:58 ERROR]:       at com.gmail.chickenpowerrr.ranksync.discord.data.SqlDatabase.lambda$getPlayer$2(SqlDatabase.java:154)
[13:45:58 ERROR]:       at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
[13:45:58 ERROR]:       ... 1 more

After installing RankSync on Bungeecord, the error above shows every now and then. Every once in a while a player also gets kicked when this error occurs.

To Reproduce

  1. Install RankSync 1.4.2 on Waterfall build #504.
  2. Setup a basic configuration.
  3. Allow your devs to try and link their account.

Server (please complete the following information):

  • Plugin version: 1.4.2
  • MySQL version: 10.3.18-MariaDB
  • Spigot version: Waterfall (Bungeecord) build 504
  • Other (for this problem) relevant information
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant