A248 / LibertyBans

The be-all, end-all of discipline.
https://ci.hahota.net:8443/job/LibertyBans/
GNU Affero General Public License v3.0
169 stars 41 forks source link

Update 1.20 #215

Closed PasteDev closed 1 year ago

PasteDev commented 1 year ago

I have confirmed that ...

Description

[01:20:31 WARN]: Exception encountered when loading plugin: LibertyBans java.util.concurrent.CompletionException: java.lang.NoSuchMethodError: org.yaml.snakeyaml.representer.Representer: method 'void ()' not found at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[?:?] at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) ~[?:?] at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770) ~[?:?] 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) ~[?:?] Caused by: java.lang.NoSuchMethodError: org.yaml.snakeyaml.representer.Representer: method 'void ()' not found at space.arim.dazzleconf.ext.snakeyaml.SnakeYamlOptions$Builder.lambda$new$0(SnakeYamlOptions.java:111) ~[?:?] at space.arim.dazzleconf.ext.snakeyaml.SnakeYamlConfigurationFactory.loadMapFromReader(SnakeYamlConfigurationFactory.java:131) ~[?:?] at space.arim.dazzleconf.factory.AbstractConfigurationFactory$ConfigFactoryDelegate.loadMap(AbstractConfigurationFactory.java:148) ~[?:?] at space.arim.dazzleconf.factory.HumanReadableConfigurationFactory.bufferedLoadMap(HumanReadableConfigurationFactory.java:90) ~[?:?] at space.arim.dazzleconf.factory.HumanReadableConfigurationFactory.loadMap(HumanReadableConfigurationFactory.java:78) ~[?:?] at space.arim.dazzleconf.factory.ConfigurationFormatFactory.load(ConfigurationFormatFactory.java:126) ~[?:?] at space.arim.dazzleconf.factory.DelegatingConfigurationFactory.load(DelegatingConfigurationFactory.java:57) ~[?:?] at space.arim.dazzleconf.factory.AbstractConfigurationFactory.load(AbstractConfigurationFactory.java:42) ~[?:?] at space.arim.libertybans.core.config.ConfigHolder.loadFromPath(ConfigHolder.java:116) ~[?:?] at space.arim.libertybans.core.config.ConfigHolder.lambda$reload$0(ConfigHolder.java:87) ~[?:?] at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?] ... 6 more

A248 commented 1 year ago

The current workaround for users experiencing this issue is to downgrade the version of SnakeYAML used in the server software. There is a tutorial on how to do this on Discord.

Of course, this is still a bug and will be fixed at some point. It is relatively trivial to solve and contributions are highly welcome. I do not have easy access to a computer at the moment, so I would be very grateful for a PR from someone on this matter. A simple PR which sets the SnakeYamlOptions' yamlSupplier will suffice. Really, that's all that needs to be done to fix the bug in LibertyBans.