Skip to content

Velocity 3.5.0 - SnakeYAML NoSuchMethodError #34

@Classsic36

Description

@Classsic36

When running Reconnect 2.0 on Velocity 3.5.0 (build 567 or newer), the plugin fails to load with the following error, probably as a result of the recent snakeyaml dependency updates in Velocity.

This only happens when the storage method is set to yaml (obviously). sqlite and mysql appear to work fine.

[22:08:32 ERROR]: Couldn't pass ProxyInitializeEvent to reconnect 2.0
java.lang.NoSuchMethodError: org.yaml.snakeyaml.representer.Representer: method 'void <init>()' not found
	at org.simpleyaml.configuration.file.YamlRepresenter.<init>(YamlRepresenter.java:17) ~[?:?]
	at org.simpleyaml.configuration.file.YamlConfiguration.<init>(YamlConfiguration.java:34) ~[?:?]
	at org.simpleyaml.configuration.file.YamlConfiguration.load(YamlConfiguration.java:237) ~[?:?]
	at org.simpleyaml.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:54) ~[?:?]
	at com.mattmx.reconnect.storage.YamlStorage.init(YamlStorage.java:35) ~[?:?]
	at com.mattmx.reconnect.storage.StorageManager.init(StorageManager.java:19) ~[?:?]
	at com.mattmx.reconnect.storage.StorageManager.createStorageManager(StorageManager.java:36) ~[?:?]
	at com.mattmx.reconnect.ReconnectVelocity.loadStorage(ReconnectVelocity.java:107) ~[?:?]
	at com.mattmx.reconnect.ReconnectVelocity.onProxyInitialization(ReconnectVelocity.java:138) ~[?:?]
	at com.mattmx.reconnect.Lmbda$23.execute(Unknown Source) ~[?:?]
	at com.velocitypowered.proxy.event.UntargetedEventHandler$VoidHandler.lambda$buildHandler$0(UntargetedEventHandler.java:56) ~[velocity.jar:3.5.0-SNAPSHOT (git-7e01491e-b574)]
	at com.velocitypowered.proxy.event.VelocityEventManager.fire(VelocityEventManager.java:553) ~[velocity.jar:3.5.0-SNAPSHOT (git-7e01491e-b574)]
	at com.velocitypowered.proxy.event.VelocityEventManager.lambda$fire$5(VelocityEventManager.java:542) ~[velocity.jar:3.5.0-SNAPSHOT (git-7e01491e-b574)]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
	at java.base/java.lang.Thread.run(Thread.java:1583) [?:?]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions