question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Loader constraint violation when using getLinkedPlayer() API method

See original GitHub issue

When using the Floodgate API, if Geyser and Floodgate are both installed on the proxy, the following exception is thrown whenever getLinkedPlayer() is called:

[19:33:24 WARN]: Error dispatching event PostLoginEvent(player=.Kopo942) to listener com.djrapitops.extension.FloodgateBungeeListener@4b8a0d03
java.lang.LinkageError: loader constraint violation: when resolving interface method 'org.geysermc.floodgate.util.LinkedPlayer org.geysermc.floodgate.api.player.FloodgatePlayer.getLinkedPlayer()' the class loader net.md_5.bungee.api.plugin.PluginClassloader @74db12c2 of the current class, com/djrapitops/extension/FloodgateBungeeListener, and the class loader net.md_5.bungee.api.plugin.PluginClassloader @1286528d for the method's defining class, org/geysermc/floodgate/api/player/FloodgatePlayer, have different Class objects for the type org/geysermc/floodgate/util/LinkedPlayer used in the signature (com.djrapitops.extension.FloodgateBungeeListener is in unnamed module of loader net.md_5.bungee.api.plugin.PluginClassloader @74db12c2, parent loader 'app'; org.geysermc.floodgate.api.player.FloodgatePlayer is in unnamed module of loader net.md_5.bungee.api.plugin.PluginClassloader @1286528d, parent loader 'app')
        at com.djrapitops.extension.FloodgateBungeeListener.onLogin(FloodgateBungeeListener.java:62) ~[?:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) ~[?:?]
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:567) ~[?:?]
        at net.md_5.bungee.event.EventHandlerMethod.invoke(EventHandlerMethod.java:19) ~[waterfall-1.17-443.jar:git:Waterfall-Bootstrap:1.17-R0.1-SNAPSHOT:34188b3:443]
        at net.md_5.bungee.event.EventBus.post(EventBus.java:48) ~[waterfall-1.17-443.jar:git:Waterfall-Bootstrap:1.17-R0.1-SNAPSHOT:34188b3:443]
        at net.md_5.bungee.api.plugin.PluginManager.callEvent(PluginManager.java:466) ~[waterfall-1.17-443.jar:git:Waterfall-Bootstrap:1.17-R0.1-SNAPSHOT:34188b3:443]
        at net.md_5.bungee.connection.InitialHandler$6$1.run(InitialHandler.java:549) ~[waterfall-1.17-443.jar:git:Waterfall-Bootstrap:1.17-R0.1-SNAPSHOT:34188b3:443]
        at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) ~[waterfall-1.17-443.jar:git:Waterfall-Bootstrap:1.17-R0.1-SNAPSHOT:34188b3:443]
        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472) ~[waterfall-1.17-443.jar:git:Waterfall-Bootstrap:1.17-R0.1-SNAPSHOT:34188b3:443]
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:497) ~[waterfall-1.17-443.jar:git:Waterfall-Bootstrap:1.17-R0.1-SNAPSHOT:34188b3:443]
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) ~[waterfall-1.17-443.jar:git:Waterfall-Bootstrap:1.17-R0.1-SNAPSHOT:34188b3:443]
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[waterfall-1.17-443.jar:git:Waterfall-Bootstrap:1.17-R0.1-SNAPSHOT:34188b3:443]
        at java.lang.Thread.run(Thread.java:831) [?:?]

As discussed on Discord, this seems to be a known issue. Probably not limited to the LinkedPlayer class, but instead to all classes in the org.geysermc.floodgate.util package.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

13reactions
ajh123commented, Feb 13, 2022

Problem is still here 😦

4reactions
Tim203commented, Sep 4, 2021

Sorry for the late response. We do plan on fixing this issue in the coming months, but it’ll take some time because it’s not an easy issue to solve

Read more comments on GitHub >

github_iconTop Results From Across the Web

spring - weblogic.application.ModuleException: java.lang ...
LinkageError : loader constraint violation: when resolving method ... I am using weblogic version 12c 12.1.3 and I have updated the log4j jar ......
Read more >
Solution Article: For Web 8.5, "java.lang.LinkageError
LinkageError : loading constraint violation when overriding method "javax/xml/bind/Marshaller.marshal" error when deploying the deprecated Content service ...
Read more >
LinkageError loader constraint violation when resolving method
Hello experts, I installed BDD 1.5.0.37.152 based on the Big Data Lite Virtual Machine 4.9 edition,
Read more >
Solved: loader constraint violation: when resolving method
I'm implementing jira plugin, which uses Atlassian Marketplace java client. ... Do you have any ideas how too deal with that? See below...
Read more >
java.lang.LinkageError: loader constraint violation for class
I am migrating my Jahia to a newer JDK 11 version. I had to update some dependencies and plugins in my custom module...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found