Open stonegray opened 3 years ago
I installed Anti-VPN yesterday and was going to specifically ask for Plan support and where I load that data, so I dont have to build my own web UI thats separate.
Does it only work on boot and not on reload?
I get this error:
[10:41:16] [main/WARN]: Exception encountered when loading plugin: AntiVPN
java.lang.NullPointerException: null
at com.djrapitops.plan.identification.ServerInfo.getServerUUID(ServerInfo.java:47) ~[?:?]
at com.djrapitops.plan.extension.implementation.providers.gathering.ProviderValueGatherer.<init>(ProviderValueGatherer.java:74) ~[?:?]
at com.djrapitops.plan.extension.ExtensionSvc.register(ExtensionSvc.java:113) ~[?:?]
at me.egg82.antivpn.hooks.PlayerAnalyticsHook.<init>(PlayerAnalyticsHook.java:41) ~[?:?]
at me.egg82.antivpn.AntiVPN.loadHooks(AntiVPN.java:351) ~[?:?]
at me.egg82.antivpn.AntiVPN.onEnable(AntiVPN.java:110) ~[?:?]
at me.egg82.antivpn.BungeeBootstrap.onEnable(BungeeBootstrap.java:77) ~[?:?]
at net.md_5.bungee.api.plugin.PluginManager.enablePlugins(PluginManager.java:300) ~[Waterfall.jar:git:Waterfall-Bootstrap:1.16-R0.5-SNAPSHOT:7395ab3:403]
at net.md_5.bungee.BungeeCord.start(BungeeCord.java:289) ~[Waterfall.jar:git:Waterfall-Bootstrap:1.16-R0.5-SNAPSHOT:7395ab3:403]
at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:62) ~[Waterfall.jar:git:Waterfall-Bootstrap:1.16-R0.5-SNAPSHOT:7395ab3:403]
at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15) ~[Waterfall.jar:git:Waterfall-Bootstrap:1.16-R0.5-SNAPSHOT:7395ab3:403]
@TomLewis That one seems like a Plan issue, did Plan enabled before AntiVPN?
Got error too :( get fixed soon
@TomLewis That one seems like a Plan issue, did Plan enabled before AntiVPN?
Plan does load before AntiVPN. The plan devs are fantastic, maybe you could work with the to get this fixed, he does hook into plugins, it works fine with things like EssentailsX, GriefPrevention, Banmanager etc
I have the same on console, it would be good if I could check it soon
Plugin version: 6.4.13, also occurs on 6.4.19 Server type: Waterfall (git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:52f00c3:391) Server version: n/a Plugins: Plan (v.5.2 build 1068)
Describe the bug Plan is not able to load AntiVPN
Expected behavior Plan should be able to load AntiVPN-bungee
To Reproduce
java.lang.IllegalArgumentException: class me.egg82.antivpn.hooks.PlayerAnalyticsHook$Data method getVpns could not be called: null
Attached files:
Plan error log: IllegalArgumentException (Click to show attachment)
`./plugins/Plan/logs/IllegalArgumentException-b400a5a3a8.txt ` `5974 bytes ASCII Text` ``` b400a5a3a8 - Last occurred: 2021-02-26 Occurrences: 3 ---- Context 3 ---- Plan v5.2 build 1068 BungeeCord git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:52f00c3:391 Server vgit:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:52f00c3:391 Report and/or disable AntiVPN extension in the Plan config. AntiVPN SERVER_PERIODICAL Gathering for server ---- Context 2 ---- Plan v5.2 build 1068 BungeeCord git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:52f00c3:391 Server vgit:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:52f00c3:391 Report and/or disable AntiVPN extension in the Plan config. AntiVPN SERVER_PERIODICAL Gathering for server ---- Context 1 ---- Plan v5.2 build 1068 BungeeCord git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:52f00c3:391 Server vgit:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:52f00c3:391 Report and/or disable AntiVPN extension in the Plan config. AntiVPN SERVER_PERIODICAL Gathering for server ---- Stacktrace ---- java.lang.IllegalArgumentException: class me.egg82.antivpn.hooks.PlayerAnalyticsHook$Data method getVpns could not be called: null com.djrapitops.plan.extension.implementation.providers.MethodWrapper.callMethod(MethodWrapper.java:54) com.djrapitops.plan.extension.implementation.providers.gathering.ProviderValueGatherer$Gatherer.gather(ProviderValueGatherer.java:194) com.djrapitops.plan.extension.implementation.providers.gathering.ProviderValueGatherer$Gatherer.gather(ProviderValueGatherer.java:184) com.djrapitops.plan.extension.implementation.providers.gathering.ProviderValueGatherer.updateValues(ProviderValueGatherer.java:160) com.djrapitops.plan.extension.ExtensionSvc.updateServerValues(ExtensionSvc.java:205) com.djrapitops.plan.extension.ExtensionSvc.updateServerValues(ExtensionSvc.java:195) com.djrapitops.plan.extension.ExtensionServerDataUpdater.run(ExtensionServerDataUpdater.java:51) com.djrapitops.plugin.task.bungee.BungeeRunnableFactory$1.run(BungeeRunnableFactory.java:55) net.md_5.bungee.scheduler.BungeeTask.run(BungeeTask.java:66) java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) java.base/java.lang.Thread.run(Thread.java:834) Caused by: Caused by: java.lang.reflect.InvocationTargetException java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.base/java.lang.reflect.Method.invoke(Method.java:566) com.djrapitops.plan.extension.implementation.providers.Parameters$ServerParameters.usingOn(Parameters.java:63) com.djrapitops.plan.extension.implementation.providers.MethodWrapper.callMethod(MethodWrapper.java:48) com.djrapitops.plan.extension.implementation.providers.gathering.ProviderValueGatherer$Gatherer.gather(ProviderValueGatherer.java:194) com.djrapitops.plan.extension.implementation.providers.gathering.ProviderValueGatherer$Gatherer.gather(ProviderValueGatherer.java:184) com.djrapitops.plan.extension.implementation.providers.gathering.ProviderValueGatherer.updateValues(ProviderValueGatherer.java:160) com.djrapitops.plan.extension.ExtensionSvc.updateServerValues(ExtensionSvc.java:205) com.djrapitops.plan.extension.ExtensionSvc.updateServerValues(ExtensionSvc.java:195) com.djrapitops.plan.extension.ExtensionServerDataUpdater.run(ExtensionServerDataUpdater.java:51) com.djrapitops.plugin.task.bungee.BungeeRunnableFactory$1.run(BungeeRunnableFactory.java:55) net.md_5.bungee.scheduler.BungeeTask.run(BungeeTask.java:66) java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) java.base/java.lang.Thread.run(Thread.java:834) Caused by: java.lang.IllegalArgumentException java.base/java.util.concurrent.ForkJoinPool.Plan error log: IllegalStateException (Click to show attachment)
`./plugins/Plan/logs/IllegalStateException-5feceb66ff.txt` `3290 bytes ASCII Text` ```text 5feceb66ff - Last occurred: 2021-02-26 Occurrences: 1 ---- Context 1 ---- Plan v5.2 build 1068 BungeeCord git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:52f00c3:391 Server vgit:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:52f00c3:391 Report and/or disable the failed extensions. You can find the failed extensions in the error file. AdvancedBanExtensionFactory failed to create Extension ViaVersionExtensionFactory failed to create Extension ---- Stacktrace ---- java.lang.IllegalStateException: One or more extensions failed to register: Suppressed: java.lang.IllegalStateException: AdvancedBanExtensionFactory failed to create Extension Caused by: java.lang.NullPointerException org.bukkit.Bukkit.getPluginManager(Bukkit.java:441) com.djrapitops.extension.AdvancedBanBukkitABListener.register(AdvancedBanBukkitABListener.java:46) com.djrapitops.extension.AdvancedBanExtensionFactory.registerListener(AdvancedBanExtensionFactory.java:61) com.djrapitops.plan.extension.implementation.ExtensionRegister.lambda$register$0(ExtensionRegister.java:175) java.base/java.util.Optional.ifPresent(Optional.java:183) com.djrapitops.plan.extension.implementation.ExtensionRegister.register(ExtensionRegister.java:175) com.djrapitops.plan.extension.implementation.ExtensionRegister.registerBuiltInExtensions(ExtensionRegister.java:61) com.djrapitops.plan.extension.ExtensionSvc.registerExtensions(ExtensionSvc.java:89) com.djrapitops.plan.PlanSystem.enable(PlanSystem.java:182) com.djrapitops.plan.PlanBungee.onEnable(PlanBungee.java:47) net.md_5.bungee.api.plugin.PluginManager.enablePlugins(PluginManager.java:300) net.md_5.bungee.BungeeCord.start(BungeeCord.java:289) net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:62) net.md_5.bungee.Bootstrap.main(Bootstrap.java:15) Suppressed: java.lang.IllegalStateException: ViaVersionExtensionFactory failed to create Extension Caused by: java.lang.NullPointerException org.bukkit.Bukkit.getPluginManager(Bukkit.java:441) com.djrapitops.extension.ViaBukkitVersionListener.Server log (Click to show attachment)
`./logs/latest.log` `5418 bytes ASCII Text` ```text [16:50:37 INFO]: Using mbed TLS based native cipher. [16:50:37 INFO]: Using zlib based native compressor. [16:50:37 INFO]: Enabled Waterfall version git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:52f00c3:391 [16:50:37 INFO]: Not on Windows, attempting to use enhanced EpollEventLoop [16:50:37 INFO]: Epoll is working, utilising it! [16:50:37 INFO]: Discovered module: ModuleSpec(name=cmd_alert, file=modules/cmd_alert.jar, provider=JenkinsModuleSource()) [16:50:37 INFO]: Discovered module: ModuleSpec(name=cmd_find, file=modules/cmd_find.jar, provider=JenkinsModuleSource()) [16:50:37 INFO]: Discovered module: ModuleSpec(name=cmd_list, file=modules/cmd_list.jar, provider=JenkinsModuleSource()) [16:50:37 INFO]: Discovered module: ModuleSpec(name=cmd_send, file=modules/cmd_send.jar, provider=JenkinsModuleSource()) [16:50:37 INFO]: Discovered module: ModuleSpec(name=cmd_server, file=modules/cmd_server.jar, provider=JenkinsModuleSource()) [16:50:37 INFO]: Discovered module: ModuleSpec(name=reconnect_yaml, file=modules/reconnect_yaml.jar, provider=JenkinsModuleSource()) [16:50:37 INFO]: Loaded plugin reconnect_yaml version git:reconnect_yaml:1.16-R0.4-SNAPSHOT:52f00c3:391 by WaterfallMC [16:50:37 INFO]: Loaded plugin cmd_find version git:cmd_find:1.16-R0.4-SNAPSHOT:52f00c3:391 by WaterfallMC [16:50:37 INFO]: Loaded plugin cmd_server version git:cmd_server:1.16-R0.4-SNAPSHOT:52f00c3:391 by WaterfallMC [16:50:37 INFO]: Loaded plugin cmd_alert version git:cmd_alert:1.16-R0.4-SNAPSHOT:52f00c3:391 by WaterfallMC [16:50:37 INFO]: Loaded plugin Plan version 5.2 build 1068 by AuroraLS3 [16:50:37 INFO]: Loaded plugin cmd_send version git:cmd_send:1.16-R0.4-SNAPSHOT:52f00c3:391 by WaterfallMC [16:50:37 INFO]: Loaded plugin cmd_list version git:cmd_list:1.16-R0.4-SNAPSHOT:52f00c3:391 by WaterfallMC WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by me.egg82.antivpn.external.ninja.egg82.utils.InjectUtil (file:/home/container/plugins/antivpn-bungee-6.4.19.jar) to method java.net.URLClassLoader.addURL(java.net.URL) WARNING: Please consider reporting this to the maintainers of me.egg82.antivpn.external.ninja.egg82.utils.InjectUtil WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release [16:50:38 INFO]: Loaded plugin AntiVPN version 6.4.19 by egg82 [16:50:38 WARN]: Forced host server staff is not defined [16:50:38 INFO]: Enabled plugin reconnect_yaml version git:reconnect_yaml:1.16-R0.4-SNAPSHOT:52f00c3:391 by WaterfallMC [16:50:38 INFO]: Enabled plugin cmd_find version git:cmd_find:1.16-R0.4-SNAPSHOT:52f00c3:391 by WaterfallMC [16:50:38 INFO]: Enabled plugin cmd_server version git:cmd_server:1.16-R0.4-SNAPSHOT:52f00c3:391 by WaterfallMC [16:50:38 INFO]: Enabled plugin cmd_alert version git:cmd_alert:1.16-R0.4-SNAPSHOT:52f00c3:391 by WaterfallMC [16:50:39 INFO]: [16:50:39 INFO]: ██▌ [16:50:39 INFO]: ██▌ ██▌ [16:50:39 INFO]: ██▌██▌██▌██▌ Player Analytics [16:50:39 INFO]: ██▌██▌██▌██▌ v5.2 build 1068 [16:50:39 INFO]: [16:50:39 INFO] [Plan]: Locale: 'English' by AuroraLS3 [16:50:39 INFO] [Plan]: You're using the latest version. [16:50:39 INFO] [Plan]: MySQL-database connection established. [16:50:39 INFO] [Plan]: WebServer: Certificate KeyStore File not Found: plugins/Plan/Cert.jks [16:50:39 INFO] [Plan]: WebServer: No Certificate -> Using HTTP-server for Visualization. [16:50:39 INFO]: WebServer: User Authorization Disabled! (Not secure over HTTP) [16:50:39 INFO] [Plan]: Webserver running on PORT 2943 (http://testserver.in.smpmc.org:2943) [16:50:39 INFO] [Plan]: Webserver: IP Whitelist is enabled. [16:50:40 INFO] [Plan]: Player Analytics Enabled. [16:50:40 INFO]: Enabled plugin Plan version 5.2 build 1068 by AuroraLS3 [16:50:40 INFO]: Enabled plugin cmd_send version git:cmd_send:1.16-R0.4-SNAPSHOT:52f00c3:391 by WaterfallMC [16:50:40 INFO]: Enabled plugin cmd_list version git:cmd_list:1.16-R0.4-SNAPSHOT:52f00c3:391 by WaterfallMC [16:50:40 INFO] [me.egg82.antivpn.external.com.zaxxer.hikari.HikariDataSource]: AntiVPN-H2 - Starting... [16:50:41 INFO] [me.egg82.antivpn.external.com.zaxxer.hikari.HikariDataSource]: AntiVPN-H2 - Start completed. [16:50:41 INFO] [me.egg82.antivpn.external.io.ebean.EbeanVersion]: ebean version: unknown [16:50:41 INFO] [io.avaje.config.InitialLoadContext]: loaded properties from [] [16:50:41 INFO] [me.egg82.antivpn.external.io.ebean.internal.DefaultContainer]: DatabasePlatform name:engine2 platform:h2 [16:50:44 INFO]: [Anti-VPN] Enabling support for Plan [16:50:44 INFO] [Plan]: Registered extension: AntiVPN [16:50:44 INFO]: [Anti-VPN] LuckPerms was not found. Support for it has been disabled. [16:50:44 INFO]: [Anti-VPN] Enabled [16:50:44 INFO]: [Anti-VPN] [Version 6.4.19] [API Version 2.0.0] [2 Commands] [4 Events] [1 Tasks] [16:50:44 INFO]: Enabled plugin AntiVPN version 6.4.19 by egg82 [16:50:44 WARN] [Plan]: Ran into IllegalArgumentException - logged to plugins/Plan/logs/IllegalArgumentException-fa571fa9af.txt [16:50:44 WARN] [Plan]: (INCLUDE CONTENTS OF THE FILE IN ANY REPORTS) [16:50:44 WARN] [Plan]: What to do: Report and/or disable AntiVPN extension in the Plan config. container@pterodactyl~ Server marked as running... [16:50:44 INFO]: Listening on /0.0.0.0:4923 ```