Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loader constraint violation when using getLinkedPlayer() API method #178

Closed
AnttiMK opened this issue Jul 14, 2021 · 11 comments
Closed

Loader constraint violation when using getLinkedPlayer() API method #178

AnttiMK opened this issue Jul 14, 2021 · 11 comments
Labels
bug Something isn't working
Milestone

Comments

@AnttiMK
Copy link

AnttiMK commented Jul 14, 2021

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.

@Chew
Copy link
Member

Chew commented Jul 15, 2021

This should have been fixed with GeyserMC/Geyser@b2619fa, are you not up to date?

@Camotoy
Copy link
Member

Camotoy commented Jul 15, 2021

That commit did not fix that error message. It was ignored as I believe the error belongs in Floodgate. Conversation was had about the issue in #development earlier today.

@vijaypondini
Copy link

Is a scheduled fix for this coming soon?
Getting tired of seeing the endless console spam at my proxy lol

@Tim203
Copy link
Member

Tim203 commented 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

@Tim203 Tim203 added the bug Something isn't working label Sep 4, 2021
@albertolarahernandez
Copy link

I have the same problem if you need something to testing i can help.

@funniray
Copy link
Contributor

Are there any updates on this?

@Camotoy
Copy link
Member

Camotoy commented Nov 30, 2021

Unfortunately, no. If there are, we will inform here.

@ajh123
Copy link

ajh123 commented Feb 13, 2022

Problem is still here :(

@Simonsator
Copy link

The problem still exists with the most recent version

@Tim203
Copy link
Member

Tim203 commented Feb 14, 2024

This should be fixed in the upcoming Floodgate 3.0 update.
I'll keep this open until we're there.

SageSphinx63920 referenced this issue in Simpig-city/Keklist Aug 6, 2024
@Tim203 Tim203 added this to Floodgate Aug 10, 2024
@Tim203
Copy link
Member

Tim203 commented Aug 10, 2024

I'm going to close this issue to mark progress to Floodgate 3.0.
Starting in 3.0 Floodgate will be able to run inside Geyser, meaning that a separate Floodgate plugin is no longer needed for any setup that required both Geyser and Floodgate on the same server. Which also means that this issue will be fixed.

@Tim203 Tim203 moved this from Todo to Done in Floodgate Aug 10, 2024
@Tim203 Tim203 closed this as completed by moving to Done in Floodgate Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

9 participants