funkemunky / antivpn Goto Github PK
View Code? Open in Web Editor NEWAn antivpn utilizing the funkemunky API
License: Apache License 2.0
An antivpn utilizing the funkemunky API
License: Apache License 2.0
[02:03:35 INFO]: Booting up Velocity 3.0.1...
[02:03:35 INFO]: Loading localizations...
[02:03:35 INFO]: Connections will use epoll channels, libdeflate (Linux x86_64) compression, OpenSSL 1.1.x (Linux x86_64) ciphers
[02:03:35 INFO]: Loading plugins...
[02:03:36 INFO]: Loaded plugin kaurivpn 1.5.0 by funkemunky
[02:03:36 INFO]: Loaded plugin spark 1.6.2 by Luck
[02:03:36 INFO]: Loaded 2 plugins
[02:03:36 INFO] [dev.brighten.antivpn.velocity.VelocityPlugin]: Loading config...
[02:03:36 ERROR]: Couldn't pass ProxyInitializeEvent to kaurivpn
java.lang.NullPointerException: null
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:878) ~[velocity-3.0.1.jar:3.0.1]
at com.google.common.io.ByteStreams.copy(ByteStreams.java:104) ~[velocity-3.0.1.jar:3.0.1]
at dev.brighten.antivpn.velocity.util.Config.(Config.java:34) ~[?:?]
at dev.brighten.antivpn.velocity.VelocityPlugin.onInit(VelocityPlugin.java:53) ~[?:?]
at dev.brighten.antivpn.velocity.Lmbda$1.execute(Unknown Source) ~[?:?]
at com.velocitypowered.proxy.event.UntargetedEventHandler$VoidHandler.lambda$buildHandler$0(UntargetedEventHandler.java:47) ~[velocity-3.0.1.jar:3.0.1]
at com.velocitypowered.proxy.event.VelocityEventManager.fire(VelocityEventManager.java:585) ~[velocity-3.0.1.jar:3.0.1]
at com.velocitypowered.proxy.event.VelocityEventManager.lambda$fire$5(VelocityEventManager.java:466) ~[velocity-3.0.1.jar:3.0.1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[?:?]
at java.lang.Thread.run(Thread.java:831) [?:?]
[02:03:36 INFO]: Listening on /[0:0:0:0:0:0:0:0%0]:23596
[02:03:36 INFO]: Done (2.82s)!
[13:18:13 INFO]: [KauriVPN] Enabling KauriVPN v1.5.1
[13:18:13 INFO]: Loading config...
[13:18:13 INFO]: Starting AntiVPN services...
[13:18:13 INFO]: Using databaseType MySQL...
[13:18:13 INFO]: Initializing MySQL...
[13:18:13 WARN]: java.lang.reflect.InaccessibleObjectException: Unable to make protected void java.net.URLClassLoader.addURL(java.net.URL) accessible: module java.base does not "opens java.net" to unnamed module @69f1dbef
[13:18:13 WARN]: at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
[13:18:13 WARN]: at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
[13:18:13 WARN]: at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
[13:18:13 WARN]: at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
[13:18:13 WARN]: at KauriVPN-1.5.1.jar//dev.brighten.antivpn.utils.MiscUtils.injectURL(MiscUtils.java:65)
[13:18:13 WARN]: at KauriVPN-1.5.1.jar//dev.brighten.antivpn.database.sql.utils.MySQL.init(MySQL.java:24)
[13:18:13 WARN]: at KauriVPN-1.5.1.jar//dev.brighten.antivpn.database.sql.MySqlVPN.init(MySqlVPN.java:233)
[13:18:13 WARN]: at KauriVPN-1.5.1.jar//dev.brighten.antivpn.AntiVPN.start(AntiVPN.java:58)
[13:18:13 WARN]: at KauriVPN-1.5.1.jar//dev.brighten.antivpn.bukkit.BukkitPlugin.onEnable(BukkitPlugin.java:41)
[13:18:13 WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264)
[13:18:13 WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370)
[13:18:13 WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500)
[13:18:13 WARN]: at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugin(CraftServer.java:561)
[13:18:13 WARN]: at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugins(CraftServer.java:475)
[13:18:13 WARN]: at net.minecraft.server.MinecraftServer.loadWorld(MinecraftServer.java:730)
[13:18:13 WARN]: at net.minecraft.server.dedicated.DedicatedServer.init(DedicatedServer.java:317)
[13:18:13 WARN]: at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1217)
[13:18:13 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319)
[13:18:13 WARN]: at java.base/java.lang.Thread.run(Thread.java:833)
[13:18:13 ERROR]: [STDERR] [com.mysql.jdbc.Driver] Loading class com.mysql.jdbc.Driver'. This is deprecated. The new driver class is
com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
[13:18:17 INFO]: Connection to MySQL has been established.
[13:18:17 INFO]: Creating tables...
[13:18:17 INFO]: Creating indexes...
[13:18:17 INFO]: Setting up and registering commands...
[05:20:10 INFO]: UUID of player Bunger is 95608b22-7d7f-3267-b844-24cdd996c5ee
[05:20:10 INFO]: Disconnecting com.mojang.authlib.GameProfile@b65f03d[id=95608b22-7d7f-3267-b844-24cdd996c5ee,name=Bunger,properties={textures=[com.mojang.authlib.properties.Property@202388e0]},legacy=false] (/147.28.173.143:53934): You are banned from this server. Reason: The Ban Hammer has spoken!
[05:20:10 INFO]: com.mojang.authlib.GameProfile@b65f03d[id=95608b22-7d7f-3267-b844-24cdd996c5ee,name=Bunger,properties={textures=[com.mojang.authlib.properties.Property@202388e0]},legacy=false] (/147.28.173.143:53934) lost connection: You are banned from this server. Reason: The Ban Hammer has spoken!
[05:20:10 WARN]: [KauriVPN] Task #857000 for KauriVPN v1.9.1 generated an exception
java.lang.NullPointerException: Cannot invoke "java.net.InetSocketAddress.getAddress()" because the return value of "org.bukkit.entity.Player.getAddress()" is null
at dev.brighten.antivpn.bukkit.BukkitListener$2.run(BukkitListener.java:121) ~[KauriVPN-1.9.1.jar:?]
at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.20.1.jar:git-Paper-19]
at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:480) ~[paper-1.20.1.jar:git-Paper-19]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1480) ~[paper-1.20.1.jar:git-Paper-19]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:447) ~[paper-1.20.1.jar:git-Paper-19]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1394) ~[paper-1.20.1.jar:git-Paper-19]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1171) ~[paper-1.20.1.jar:git-Paper-19]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:318) ~[paper-1.20.1.jar:git-Paper-19]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
[05:20:20 INFO]: Server is now paused. (Worlds saved)
[18:01:02 INFO]: Server is now resumed.
[18:01:03 INFO]: UUID of player Bunger is 95608b22-7d7f-3267-b844-24cdd996c5ee
[18:01:03 INFO]: Disconnecting com.mojang.authlib.GameProfile@5af125ba[id=95608b22-7d7f-3267-b844-24cdd996c5ee,name=Bunger,properties={textures=[com.mojang.authlib.properties.Property@6594b8c3]},legacy=false] (/147.28.173.143:46786): You are banned from this server. Reason: The Ban Hammer has spoken!
[18:01:03 WARN]: [KauriVPN] Task #967558 for KauriVPN v1.9.1 generated an exception
java.lang.NullPointerException: Cannot invoke "java.net.InetSocketAddress.getAddress()" because the return value of "org.bukkit.entity.Player.getAddress()" is null
at dev.brighten.antivpn.bukkit.BukkitListener$2.run(BukkitListener.java:121) ~[KauriVPN-1.9.1.jar:?]
at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.20.1.jar:git-Paper-19]
at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:480) ~[paper-1.20.1.jar:git-Paper-19]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1480) ~[paper-1.20.1.jar:git-Paper-19]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:447) ~[paper-1.20.1.jar:git-Paper-19]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1394) ~[paper-1.20.1.jar:git-Paper-19]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1171) ~[paper-1.20.1.jar:git-Paper-19]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:318) ~[paper-1.20.1.jar:git-Paper-19]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
[18:01:03 INFO]: com.mojang.authlib.GameProfile@5af125ba[id=95608b22-7d7f-3267-b844-24cdd996c5ee,name=Bunger,properties={textures=[com.mojang.authlib.properties.Property@6594b8c3]},legacy=false] (/147.28.173.143:46786) lost connection: You are banned from this server. Reason: The Ban Hammer has spoken!
https://github.com/PaperMC/Folia
Here is a summary of everything made with ChatGPT to save some time:
For plugin developers, there are a few key takeaways from the given text:
Folia introduces regionised multithreading, which means that plugins will require modification to function properly. Plugin developers should expect compatibility with existing plugins to be at zero.
Folia introduces new API additions, such as the RegionisedScheduler and EntityScheduler, which can help plugins run on the correct thread context.
To ensure compatibility with Folia, plugin developers must mark their plugin as compatible by placing "folia-supported: true" in the plugin.yml file. Additionally, plugins must take advantage of the RegionisedScheduler and EntityScheduler API to ensure correct behavior.
Plugins should not assume that they can access or modify data in other regions, as Folia regions tick in parallel and do not share data. Plugin developers should take advantage of the upcoming thread-check API to ensure correct behavior.
There are currently broken API, including the scoreboard API, and planned API changes, such as super aggressive thread checks, which may impact plugin development.
Overall, plugin developers should be prepared for significant changes in their plugins to ensure compatibility with Folia. They should take advantage of the new API additions and mark their plugin as compatible to ensure correct behavior. Additionally, they should be aware of the limitations and rules of Folia's regionised multithreading to avoid bugs and errors in their plugins.
KauriVPN 1.5.1
I had manually put the config in but I got a Mysql error after updating, so I deleted the config folder and restarted the server and I'm back to this issue. Reporting since it happened in the last version as well and I think something needs fixing.
Running the plugin only on my Proxy server (Velocity 3.0.1)
[15:49:40 INFO] [dev.brighten.antivpn.velocity.VelocityPlugin]: Loading config...
[15:49:40 ERROR]: Couldn't pass ProxyInitializeEvent to kaurivpn
java.lang.NullPointerException: null
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:878) ~[velocity.jar:3.0.1]
at com.google.common.io.ByteStreams.copy(ByteStreams.java:104) ~[velocity.jar:3.0.1]
at dev.brighten.antivpn.velocity.util.Config.(Config.java:34) ~[?:?]
at dev.brighten.antivpn.velocity.VelocityPlugin.onInit(VelocityPlugin.java:53) ~[?:?]
at dev.brighten.antivpn.velocity.Lmbda$4.execute(Unknown Source) ~[?:?]
at com.velocitypowered.proxy.event.UntargetedEventHandler$VoidHandler.lambda$buildHandler$0(UntargetedEventHandler.java:47) ~[velocity.jar:3.0.1]
at com.velocitypowered.proxy.event.VelocityEventManager.fire(VelocityEventManager.java:585) ~[velocity.jar:3.0.1]
at com.velocitypowered.proxy.event.VelocityEventManager.lambda$fire$5(VelocityEventManager.java:466) ~[velocity.jar:3.0.1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[?:?]
at java.lang.Thread.run(Thread.java:831) [?:?]
When writing commands in the chat, suggest sub-commands.
After typing the last 'n' character in /antivpn plan
or anything after it, a NPE is thrown on Velocity. Tested with Velocity 3.1.2-SNAPSHOT-b200 and KauriVPN 1.8.2.1.
[21:21:01 ERROR]: Node cannot provide suggestions
java.lang.NullPointerException: Cannot invoke "java.util.List.iterator()" because "suggestions" is null
at com.velocitypowered.proxy.command.registrar.InvocableCommandRegistrar.lambda$createLiteral$4(InvocableCommandRegistrar.java:107) ~[velocity-3.1.2-SNAPSHOT-200.jar:3.1.2-SNAPSHOT (git-1ec77eb1-b200)]
at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646) ~[?:?]
at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?
Is your feature request related to a problem? Please describe.
No way to view allowlist while in game.
Describe the solution you'd like
Add a command like /antivpn allowlist show to allow users with permission to view all entries in the allow list. Maybe use a page format of X entries per page
Describe alternatives you've considered
None
Additional context
Howdy,
Sorry for writing here but I couldn't find another way to contact you. I am interested in your AdvancedAntiVPN plugin, but ported to a C++ application. If you are somehow interested, let me know.
Greetings
[20:16:15 WARN]: [KauriVPN] Task #726 for KauriVPN v1.9.2 generated an exception
java.lang.NullPointerException: Cannot invoke "net.minecraft.server.network.ServerGamePacketListenerImpl.protocol()" because "org.bukkit.craftbukkit.entity.CraftPlayer.getHandle().connection" is null
at org.bukkit.craftbukkit.entity.CraftPlayer.getAddress(CraftPlayer.java:266) ~[purpur-1.20.6.jar:1.20.6-2230-eac4198]
at KauriVPN-1.9.2.jar/dev.brighten.antivpn.bukkit.BukkitListener$1.run(BukkitListener.java:106) ~[KauriVPN-1.9.2.jar:?]
at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:101) ~[purpur-1.20.6.jar:1.20.6-2230-eac4198]
at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:482) ~[purpur-1.20.6.jar:1.20.6-2230-eac4198]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1734) ~[purpur-1.20.6.jar:1.20.6-2230-eac4198]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:503) ~[purpur-1.20.6.jar:1.20.6-2230-eac4198]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1606) ~[purpur-1.20.6.jar:1.20.6-2230-eac4198]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1260) ~[purpur-1.20.6.jar:1.20.6-2230-eac4198]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:326) ~[purpur-1.20.6.jar:1.20.6-2230-eac4198]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Version 1.7 displays an error when starting with a database and doesn't seem to connect to it properly, as it doesn't change anything.
It seems, that the Plugin mixes SQLite with MySql!
It creates two SqLite Databases in a Subfolder KauriVPN/databases
, looking at the console output, it probably tries to connect to those and fails as it tries to use it as a MySql Database?! Both of the files can't be opend by the DB Browser (Invalid file format).
Also tested in the 1.6.1 and the Database function worked as intended without an error at startup.
[23:28:38 INFO]: Starting AntiVPN services...
[23:28:38 INFO]: Using databaseType MySQL...
[23:28:38 INFO]: Initializing MySQL...
[23:28:38 INFO]: Connection to SQlLite has been established.
[23:28:38 INFO]: Creating tables...
[23:28:38 INFO]: Creating indexes...
[23:28:38 ERROR]: MySQL Excepton createdTable "STATISTICS" not found; SQL statement:
[23:28:38 ERROR]: SELECT COUNT(1) IndexExists FROM INFORMATION_SCHEMA.STATISTICS WHERE table_schema=DATABASE() AND table_name='whitelisted' AND index_name='uuid_1'; [42102-210]
[23:28:38 INFO]: Starting bStats metrics...
[23:28:38 INFO]: Getting strings...
[23:28:38 INFO]: Enabled plugin KauriVPN version 1.7 by funkemunky
Whenever a player joins the following error message is printed in chat.
I am using Paper-280 (MC: 1.20.2)
and I am not sure if functionality is affected since I do not have a VPN. (What it does do is fill my log.)
[Thu 22:13:39 WARN KauriVPN] Task #1299594 for KauriVPN v1.9.1 generated an exception
java.lang.NullPointerException: Cannot invoke "java.net.InetSocketAddress.getAddress()" because the return value of "org.bukkit.entity.Player.getAddress()" is null
at KauriVPN-1.9.1.jar//dev.brighten.antivpn.bukkit.BukkitListener$2.run(BukkitListener.java:121)
at org.bukkit.craftbukkit.v1_20_R2.scheduler.CraftTask.run(CraftTask.java:101)
at org.bukkit.craftbukkit.v1_20_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:480)
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1470)
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:446)
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1379)
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1156)
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:315)
at java.base/java.lang.Thread.run(Thread.java:833)
How do you setup this plugin and how do you configure for use with a proxy?
08:47:49 INFO]: UUID of player kokowawaa is b9ce10b1-56e4-37f4-bc86-01971cffc6ba
[08:47:50 INFO]: kokowawaa lost connection: Disconnected
[08:47:50 INFO]: Send: Query to VPN API failed! Reason: Java Exception
[08:47:50 INFO]: Query to VPN API failed! Reason: Java Exception
[08:47:50 WARN]: javax.net.ssl.SSLHandshakeException: Received fatal alert: unrecognized_name
[08:47:50 WARN]: at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:131)
[08:47:50 WARN]: at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:117)
[08:47:50 WARN]: at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:358)
[08:47:50 WARN]: at java.base/sun.security.ssl.Alert$AlertConsumer.consume(Alert.java:293)
[08:47:50 WARN]: at java.base/sun.security.ssl.TransportContext.dispatch(TransportContext.java:204)
[08:47:50 WARN]: at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:172)
[08:47:50 WARN]: at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1500)
[08:47:50 WARN]: at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1415)
[08:47:50 WARN]: at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:450)
[08:47:50 WARN]: at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:421)
[08:47:50 WARN]: at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:580)
[08:47:50 WARN]: at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:183)
[08:47:50 WARN]: at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1665)
[08:47:50 WARN]: at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589)
[08:47:50 WARN]: at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224)
[08:47:50 WARN]: at java.base/java.net.URL.openStream(URL.java:1161)
[08:47:50 WARN]: at KauriVPN-1.9.1.jar//dev.brighten.antivpn.utils.json.JsonReader.readJsonFromUrl(JsonReader.java:18)
[08:47:50 WARN]: at KauriVPN-1.9.1.jar//dev.brighten.antivpn.web.FunkemunkyAPI.getVPNResponse(FunkemunkyAPI.java:26)
[08:47:50 WARN]: at KauriVPN-1.9.1.jar//dev.brighten.antivpn.api.VPNExecutor.lambda$checkIp$0(VPNExecutor.java:63)
[08:47:50 WARN]: at java.base/java.util.HashMap.compute(HashMap.java:1315)
[08:47:50 WARN]: at KauriVPN-1.9.1.jar//dev.brighten.antivpn.api.VPNExecutor.lambda$checkIp$1(VPNExecutor.java:55)
[08:47:50 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[08:47:50 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[08:47:50 WARN]: at java.base/java.lang.Thread.run(Thread.java:833)
[08:47:50 WARN]: Exception in thread "pool-100-thread-1" java.lang.NullPointerException: Cannot invoke "dev.brighten.antivpn.web.objects.VPNResponse.isSuccess()" because "result" is null
[08:47:50 WARN]: at KauriVPN-1.9.1.jar//dev.brighten.antivpn.bukkit.BukkitListener.lambda$onListener$3(BukkitListener.java:109)
[08:47:50 WARN]: at KauriVPN-1.9.1.jar//dev.brighten.antivpn.api.VPNExecutor.lambda$checkIp$1(VPNExecutor.java:55)
[08:47:50 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[08:47:50 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[08:47:50 WARN]: at java.base/java.lang.Thread.run(Thread.java:833)
[08:47:50 INFO]: Send: Not enabled
[08:47:50 INFO]: Not enabled
[08:47:50 INFO]: [-] kokowawaa
Using /antivpn alerts
enables the alert for the online session, but when you rejoin the server, the alert is disabled again. The database connection works fine. But it looks like the alert status is not being queried properly by the database. I down't get any errors / warnings in the console.
Version AntiVPN 1.5.2.1 with Waterfall
How to replicate it
/avpn alerts
--> notifications have been set to: true
(ok)/avpn alerts
--> notifications have been set to: true
( ? )[22:08:49 INFO]: Loading config...
[22:08:49 INFO]: Starting AntiVPN services...
[22:08:49 INFO]: Using databaseType MySQL...
[22:08:49 INFO]: Initializing MySQL...
[22:08:49 ERROR]: Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
[22:08:49 INFO]: Connection to MySQL has been established.
[22:08:49 INFO]: Creating tables...
[22:08:49 INFO]: Creating indexes...
[22:08:49 INFO]: Getting strings...
[22:08:49 INFO]: Enabled plugin KauriVPN version 1.5.2.1 by funkemunky
[22:08:49 INFO]: Enabled plugin cmd_list version git:cmd_list:1.18-R0.1-SNAPSHOT:21e4c1d:475 by WaterfallMC
Hello! I was wondering if storing as a SQLite. H2 etc was possible?
Describe the bug
Using many antiviruses, it throws a false positive when server is loaded
To Reproduce
Steps to reproduce the behavior:
Start server
Expected behavior
To not false positive
Screenshots
What instance are you running KauriVPN on?
Put an 'x' in the brackets to check it
Additional context
Add any other context about the problem here.
https://www.virustotal.com/gui/file/b8a0356837f58fe39bb808fb007eeba0978fd0455842d14077850e876a45308a
`[08:52:12] [main/ERROR]: Can't create plugin kaurivpn
com.google.inject.CreationException: Unable to create injector, see the following errors:
class VelocityPlugin does not have a @Inject annotated constructor or a no-arg constructor.
Requested by:
1 : VelocityPlugin.class(VelocityPlugin.java:29)
at VelocityPluginModule.configure(VelocityPluginModule.java:48)
Learn more:
https://github.com/google/guice/wiki/MISSING_CONSTRUCTOR
1 error
at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:568) ~[velocity-3.1.2-SNAPSHOT-122.jar:3.1.2-SNAPSHOT (git-f0ea638f-b122)]
at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:163) ~[velocity-3.1.2-SNAPSHOT-122.jar:3.1.2-SNAPSHOT (git-f0ea638f-b122)]
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110) ~[velocity-3.1.2-SNAPSHOT-122.jar:3.1.2-SNAPSHOT (git-f0ea638f-b122)]
at com.google.inject.Guice.createInjector(Guice.java:87) ~[velocity-3.1.2-SNAPSHOT-122.jar:3.1.2-SNAPSHOT (git-f0ea638f-b122)]
at com.google.inject.Guice.createInjector(Guice.java:69) ~[velocity-3.1.2-SNAPSHOT-122.jar:3.1.2-SNAPSHOT (git-f0ea638f-b122)]
at com.google.inject.Guice.createInjector(Guice.java:59) ~[velocity-3.1.2-SNAPSHOT-122.jar:3.1.2-SNAPSHOT (git-f0ea638f-b122)]
at com.velocitypowered.proxy.plugin.loader.java.JavaPluginLoader.createPlugin(JavaPluginLoader.java:119) ~[velocity-3.1.2-SNAPSHOT-122.jar:3.1.2-SNAPSHOT (git-f0ea638f-b122)]
at com.velocitypowered.proxy.plugin.VelocityPluginManager.loadPlugins(VelocityPluginManager.java:151) ~[velocity-3.1.2-SNAPSHOT-122.jar:3.1.2-SNAPSHOT (git-f0ea638f-b122)]
at com.velocitypowered.proxy.VelocityServer.loadPlugins(VelocityServer.java:324) ~[velocity-3.1.2-SNAPSHOT-122.jar:3.1.2-SNAPSHOT (git-f0ea638f-b122)]
at com.velocitypowered.proxy.VelocityServer.start(VelocityServer.java:222) ~[velocity-3.1.2-SNAPSHOT-122.jar:3.1.2-SNAPSHOT (git-f0ea638f-b122)]
at com.velocitypowered.proxy.Velocity.main(Velocity.java:64) ~[velocity-3.1.2-SNAPSHOT-122.jar:3.1.2-SNAPSHOT (git-f0ea638f-b122)]`
Also tried on stable version of Velocity with the same results.
Describe the bug
A clear and concise description of what the bug is.
Servers running on Bukkit/Spigot implementations, that do not halt the JVM will get stuck infinitely when shutting down, due to non-daemon, non-finalizer threads being present.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
The server stops
Screenshots
If applicable, add screenshots to help explain your problem.
[28Jun2024 17:28:36.954] [Server thread/ERROR] [Minecraft/]: Current Thread: Thread-34
[28Jun2024 17:28:36.954] [Server thread/ERROR] [Minecraft/]: PID: 295 | Suspended: false | Native: false | Daemon: false | State: TIMED_WAITING
[28Jun2024 17:28:36.954] [Server thread/ERROR] [Minecraft/]: Stack:
[28Jun2024 17:28:36.954] [Server thread/ERROR] [Minecraft/]: [email protected]/java.lang.Thread.sleep(Native Method)
[28Jun2024 17:28:36.954] [Server thread/ERROR] [Minecraft/]: dev.brighten.antivpn.database.local.H2VPN.lambda$new$0(H2VPN.java:43)
[28Jun2024 17:28:36.954] [Server thread/ERROR] [Minecraft/]: dev.brighten.antivpn.database.local.H2VPN$$Lambda$76212/0x00007f83bba8fbf8.run(Unknown Source)
[28Jun2024 17:28:36.954] [Server thread/ERROR] [Minecraft/]: [email protected]/java.lang.Thread.run(Thread.java:840)
What instance are you running KauriVPN on?
Put an 'x' in the brackets to check it
Additional context
Add any other context about the problem here.
I would expect when completing /antivpn
to be suggested all the existing subcommands.
Instead I get just nothing. To know the subcommands, I have to execute the main command once, just to remember the subcommands. And if that is the case, then why does command suggestion exist?
Using Velocity 3.2.0-SNAPSHOT (git-37fedf50-b260)
[13:12:10 ERROR]: Node cannot provide suggestions
java.lang.NullPointerException: Cannot invoke "java.util.List.iterator()" because "suggestions" is null
at com.velocitypowered.proxy.command.registrar.InvocableCommandRegistrar.lambda$createLiteral$4(InvocableCommandRegistrar.java:107) ~[velocity.jar:3.2.0-SNAPSHOT (git-37fedf50-b260)]
at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646) ~[?:?]
at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?]
[13:12:12 ERROR]: Node cannot provide suggestions
java.lang.NullPointerException: Cannot invoke "java.util.List.iterator()" because "suggestions" is null
at com.velocitypowered.proxy.command.registrar.InvocableCommandRegistrar.lambda$createLiteral$4(InvocableCommandRegistrar.java:107) ~[velocity.jar:3.2.0-SNAPSHOT (git-37fedf50-b260)]
at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646) ~[?:?]
at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?]
[13:12:12 ERROR]: Node cannot provide suggestions
java.lang.NullPointerException: Cannot invoke "java.util.List.iterator()" because "suggestions" is null
at com.velocitypowered.proxy.command.registrar.InvocableCommandRegistrar.lambda$createLiteral$4(InvocableCommandRegistrar.java:107) ~[velocity.jar:3.2.0-SNAPSHOT (git-37fedf50-b260)]
at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646) ~[?:?]
at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?]
Consistently hitting with this error when I enable it
[23:33:30 WARN]: Exception in thread "pool-95-thread-3" java.lang.NullPointerException: Cannot invoke "com.mysql.cj.result.Row.wasNull()" because "this.thisRow" is null
[23:33:30 WARN]: at com.mysql.cj.jdbc.result.ResultSetImpl.wasNull(ResultSetImpl.java:2540)
[23:33:30 WARN]: at dev.brighten.antivpn.database.sql.MySqlVPN.getStoredResponse(MySqlVPN.java:53)
[23:33:30 WARN]: at dev.brighten.antivpn.api.VPNExecutor.lambda$null$0(VPNExecutor.java:39)
[23:33:30 WARN]: at java.base/java.util.HashMap.compute(HashMap.java:1320)
[23:33:30 WARN]: at dev.brighten.antivpn.api.VPNExecutor.lambda$checkIp$1(VPNExecutor.java:37)
[23:33:30 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
[23:33:30 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
[23:33:30 WARN]: at java.base/java.lang.Thread.run(Thread.java:831)
Version 1.7.1 displays an error when starting with a database and doesn't seem to connect to it properly, as it doesn't change anything.
It seems, that the Plugin mixes SQLite with MySql!
It creates two SqLite Databases in a Subfolder KauriVPN/databases
, looking at the console output, it probably tries to connect to those and fails as it tries to use it as a MySql Database?! Both of the files can't be opend by the DB Browser (Invalid file format).
Also tested in the 1.6.1 and the Database function worked as intended without an error at startup.
[23:28:38 INFO]: Starting AntiVPN services...
[23:28:38 INFO]: Using databaseType MySQL...
[23:28:38 INFO]: Initializing MySQL...
[23:28:38 INFO]: Connection to SQlLite has been established.
[23:28:38 INFO]: Creating tables...
[23:28:38 INFO]: Creating indexes...
[23:28:38 ERROR]: MySQL Excepton createdTable "STATISTICS" not found; SQL statement:
[23:28:38 ERROR]: SELECT COUNT(1) IndexExists FROM INFORMATION_SCHEMA.STATISTICS WHERE table_schema=DATABASE() AND table_name='whitelisted' AND index_name='uuid_1'; [42102-210]
[23:28:38 INFO]: Starting bStats metrics...
[23:28:38 INFO]: Getting strings...
[23:28:38 INFO]: Enabled plugin KauriVPN version 1.7 by funkemunky
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.