Laarryy / Anti-VPN

Get the best; save money on overpriced plugins and block VPN users!
MIT License
87 stars 42 forks source link

Error after updating server to Java 16 #103

Open Strahilchu opened 3 years ago

Strahilchu commented 3 years ago

[02:14:31 ERROR]: Error occurred while enabling AntiVPN v6.4.13 (Is it up to date?) java.lang.NullPointerException: Cannot invoke "me.egg82.antivpn.AntiVPN.onEnable()" because "this.concrete" is null at me.egg82.antivpn.BukkitBootstrap.onEnable(BukkitBootstrap.java:93) ~[?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.16.5.jar:git-Airplane-"f5fb024"] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:380) ~[patched_1.16.5.jar:git-Airplane-"f5fb024"] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:483) ~[patched_1.16.5.jar:git-Airplane-"f5fb024"] at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugin(CraftServer.java:501) ~[patched_1.16.5.jar:git-Airplane-"f5fb024"] at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugins(CraftServer.java:415) ~[patched_1.16.5.jar:git-Airplane-"f5fb024"] at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:581) ~[patched_1.16.5.jar:git-Airplane-"f5fb024"] at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:283) ~[patched_1.16.5.jar:git-Airplane-"f5fb024"] at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1057) ~[patched_1.16.5.jar:git-Airplane-"f5fb024"] at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:290) ~[patched_1.16.5.jar:git-Airplane-"f5fb024"] at java.lang.Thread.run(Thread.java:831) [?:?] [02:14:31 INFO]: [AntiVPN] Disabling AntiVPN v6.4.13

egg82 commented 3 years ago

Requesting PR for fixing this - can still use the same library and go the LuckPerms route of having the API and an injector in the plugin jar.

Laarryy commented 3 years ago

Note, this is a slightly old version of the plugin - can you please reproduce with this https://jenkins.egg82.me/job/egg82/job/Anti-VPN/job/master/54/

and re-send the error log?

Laarryy commented 3 years ago

For posterity, here's one copy of the error on 7.0.0, from discord

DmitryRendov commented 3 years ago
the same for me with the latest dev build... ```diff [13:45:07] [Server thread/INFO]: [Anti-VPN] Loading Anti-VPN v7.0.0 [13:45:09] [ForkJoinPool-2-worker-7/INFO]: Downloading IP Address [13:45:09] [ForkJoinPool-2-worker-5/INFO]: Downloading Caffeine [13:45:09] [ForkJoinPool-2-worker-1/INFO]: Downloading H2 [13:45:09] [ForkJoinPool-2-worker-3/INFO]: Downloading Zstd [13:45:13] [ForkJoinPool-2-worker-7/INFO]: Downloading RabbitMQ [13:45:14] [ForkJoinPool-2-worker-1/INFO]: Downloading FastUtil [13:45:15] [ForkJoinPool-2-worker-5/INFO]: Downloading Ebean Core [13:45:16] [ForkJoinPool-2-worker-3/INFO]: Downloading Javassist [13:45:17] [ForkJoinPool-2-worker-7/INFO]: Downloading PostgreSQL [13:45:20] [ForkJoinPool-2-worker-3/INFO]: Downloading Jedis [13:45:27] [Server thread/ERROR]: [me.egg82.antivpn.BukkitBootstrap] java.lang.NoClassDefFoundError: me/egg82/antivpn/external/it/unimi/dsi/fastutil/ints/IntList java.lang.NoClassDefFoundError: me/egg82/antivpn/external/it/unimi/dsi/fastutil/ints/IntList at me.egg82.antivpn.BukkitBootstrap.onLoad(BukkitBootstrap.java:95) ~[?:?] at org.bukkit.craftbukkit.v1_16_R3.CraftServer.loadPlugins(CraftServer.java:397) ~[patched_1.16.5.jar:git-Paper-691] at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:252) ~[patched_1.16.5.jar:git-Paper-691] at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1066) ~[patched_1.16.5.jar:git-Paper-691] at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:290) ~[patched_1.16.5.jar:git-Paper-691] at java.lang.Thread.run(Thread.java:831) [?:?] Caused by: java.lang.ClassNotFoundException: me.egg82.antivpn.external.it.unimi.dsi.fastutil.ints.IntList at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:153) ~[patched_1.16.5.jar:git-Paper-691] at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:114) ~[patched_1.16.5.jar:git-Paper-691] at java.lang.ClassLoader.loadClass(ClassLoader.java:519) ~[?:?] ... 6 more [13:45:27] [Server thread/ERROR]: [org.bukkit.craftbukkit.v1_16_R3.CraftServer] me/egg82/antivpn/external/redis/clients/jedis/exceptions/JedisException initializing Anti-VPN v7.0.0 (Is it up to date?) java.lang.NoClassDefFoundError: me/egg82/antivpn/external/redis/clients/jedis/exceptions/JedisException at me.egg82.antivpn.BukkitBootstrap.getAllowErrorStats(BukkitBootstrap.java:549) ~[?:?] at me.egg82.antivpn.BukkitBootstrap.onLoad(BukkitBootstrap.java:99) ~[?:?] at org.bukkit.craftbukkit.v1_16_R3.CraftServer.loadPlugins(CraftServer.java:397) ~[patched_1.16.5.jar:git-Paper-691] at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:252) ~[patched_1.16.5.jar:git-Paper-691] at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1066) ~[patched_1.16.5.jar:git-Paper-691] at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:290) ~[patched_1.16.5.jar:git-Paper-691] at java.lang.Thread.run(Thread.java:831) [?:?] Caused by: java.lang.ClassNotFoundException: me.egg82.antivpn.external.redis.clients.jedis.exceptions.JedisException at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:153) ~[patched_1.16.5.jar:git-Paper-691] at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:114) ~[patched_1.16.5.jar:git-Paper-691] at java.lang.ClassLoader.loadClass(ClassLoader.java:519) ~[?:?] ... 7 more ```
MinecraftCitiesNetwork commented 3 years ago

Yep same here!

Strahilchu commented 3 years ago

It will work if you add --illegal-access=permit to your startup flags However this is just a temporary fix: Java HotSpot(TM) 64-Bit Server VM warning: Option --illegal-access is deprecated and will be removed in a future release.

RareMaker50 commented 3 years ago

@strahil211 I added --illegal-access=permit to my run.bat startup flag and it still isn't working, I'm thinking of downgrading to java 11 or 8 until this is fixed or until 1.17 releases

Laarryy commented 3 years ago

I'll be working on making this J16 and MC1.17 compatible as soon as I am able - it should be soon, but life, as usual, is hectic. Don't worry though, it's not nearly abandoned. As for the compiling on bungee... another item on the list!

MinecraftCitiesNetwork commented 3 years ago

Any updates on this? Highly anticipating an update

Strahilchu commented 3 years ago

"Laarryy commented 23 days ago" "it should be soon" Come on Larry you're a pro! It can't be That hard to fix it 😭

Leahcimkrob commented 3 years ago

@Laarryy have you more information or a Dev-Build?

RareMaker50 commented 3 years ago

@andrewkm Where can I get in touch with you for the fork?

Strahilchu commented 3 years ago

Still waiting for this, is it the end of this plugin? There's gotta be a way to fix it

Laarryy commented 3 years ago

Hi @andrewkm - if you have working improvements and refuse to PR them, why? Additionally, why continue to pester me about putting aside my actual life to do something you don't need done? I don't appreciate the consistent negativity, please stop and appreciate my perspective, where I currently have the choice of working in real life towards things that will affect my future permanently, or spending a very long time updating and mostly simply writing from scratch a plugin that mostly works already. I need to prioritize right now, but as I have said a number of times, I have not condemned this project and still plan on working on it once I can reasonably do so.

Turbotailz commented 3 years ago

We love you Larry!

brwnie commented 3 years ago

Hi @andrewkm - if you have working improvements and refuse to PR them, why? Additionally, why continue to pester me about putting aside my actual life to do something you don't need done? I don't appreciate the consistent negativity, please stop and appreciate my perspective, where I currently have the choice of working in real life towards things that will affect my future permanently, or spending a very long time updating and mostly simply writing from scratch a plugin that mostly works already. I need to prioritize right now, but as I have said a number of times, I have not condemned this project and still plan on working on it once I can reasonably do so.

Larry, I want to add that we support you. I'm sure the majority of the community support whatever you choose to do and prioritise. If I could help, I would!

To put it simply andrew (and for someone who has likely profited in multiple ways off this project) his attitude towards you and this project is downright appalling.

Erlpil commented 3 years ago

Hey @Laarryy ! Any update on adding java 16 support? We are about to move our infrastructure over to java 16 and would love to keep using this plugin.