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

NoClassDefFoundError: PlayerInjectionHandler with ProtocolLib builds 721+ #1210

Closed
2 tasks done
rursache opened this issue Jun 18, 2024 · 7 comments
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@rursache
Copy link

rursache commented Jun 18, 2024

What happened?

[23:21:30 INFO]: [FastLogin] Enabling FastLogin v1.12-SNAPSHOT-829c70a
[23:21:30 WARN]: [FastLogin] Disabling Minecraft proxy configuration. Assuming direct connections from now on.
[23:21:30 INFO]: [fastlogin.hikari.HikariDataSource] FastLogin - Starting...
[23:21:30 INFO]: [fastlogin.hikari.HikariDataSource] FastLogin - Start completed.
[23:21:31 ERROR]: Error occurred while enabling FastLogin v1.12-SNAPSHOT-829c70a (Is it up to date?)
java.lang.NoClassDefFoundError: com/comphenix/protocol/injector/player/PlayerInjectionHandler
	at FastLoginBukkit.jar/com.github.games647.fastlogin.bukkit.listener.protocollib.ProtocolLibListener.getHandler(ProtocolLibListener.java:302) ~[FastLoginBukkit.jar:?]
	at FastLoginBukkit.jar/com.github.games647.fastlogin.bukkit.listener.protocollib.ProtocolLibListener.<init>(ProtocolLibListener.java:97) ~[FastLoginBukkit.jar:?]
	at FastLoginBukkit.jar/com.github.games647.fastlogin.bukkit.listener.protocollib.ProtocolLibListener.register(ProtocolLibListener.java:104) ~[FastLoginBukkit.jar:?]
	at FastLoginBukkit.jar/com.github.games647.fastlogin.bukkit.FastLoginBukkit.onEnable(FastLoginBukkit.java:123) ~[FastLoginBukkit.jar:?]
	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:288) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
	at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
	at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
	at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:626) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
	at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:575) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
	at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:675) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
	at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:437) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
	at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:323) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1136) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
	at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:323) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
	at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: java.lang.ClassNotFoundException: com.comphenix.protocol.injector.player.PlayerInjectionHandler
	at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:197) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
	at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:164) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526) ~[?:?]
	... 16 more
[23:21:31 INFO]: [FastLogin] Disabling FastLogin v1.12-SNAPSHOT-829c70a
[23:21:31 INFO]: [FastLogin] Safely shutting down scheduler. This could take up to one minute.
[23:21:31 INFO]: [fastlogin.hikari.HikariDataSource] FastLogin - Shutdown initiated...
[23:21:31 INFO]: [fastlogin.hikari.HikariDataSource] FastLogin - Shutdown completed.

Steps to reproduce

The crash happens when the server starts up.
Then all users will get "Error: this user is not whitelisted!"

All plugins are updated to the latest build as of this post!

Plugin list

Admin-GUI , AuthMe , dynmap , FastChunkPregenerator , FastLogin , Hibernate , Multiverse-Core , Multiverse-Inventories , Multiverse-NetherPortals , Multiverse-SignPortals, PlaceholderAPI , playit-gg , ProtocolLib , ServerListPlus , SkinsRestorer , ViaBackwards , ViaRewind , ViaVersion

Configuration file

https://pastebin.com/raw/4kzQ2Qaw

Server log

see above

Plugin version

AuthMe version 5.6.0-SNAPSHOT-b2623
ProtocolLib version 5.3.0-SNAPSHOT-721
FastLogin version 1.12-SNAPSHOT-829c70a

Platform

Paper version 1.20.6-147-ver/1.20.6@e41d44f (2024-06-17T19:24:35Z) (Implementing API version 1.20.6-R0.1-SNAPSHOT)

Relevance

  • I tried the latest build
    (build refers to development builds not necessary a release version; i.e. v1.10 is out of date)

  • I checked for existing tickets -
    If there are, please vote them with a thumbs reaction and not create new ones

@rursache rursache added the bug Something isn't working label Jun 18, 2024
@rursache rursache changed the title NoClassDefFoundError - PlayerInjectionHandler CRASH: NoClassDefFoundError - PlayerInjectionHandler Jun 18, 2024
@rursache
Copy link
Author

maybe similar to #878 ?

@games647
Copy link
Owner

Which ProtocolLib version do you use?

@rursache
Copy link
Author

rursache commented Jun 19, 2024

Which ProtocolLib version do you use?

@games647 as stated, ProtocolLib version 5.3.0-SNAPSHOT-721

@games647
Copy link
Owner

games647 commented Jun 19, 2024

Yeah looks like they removed the class in the newest commit. Please downgrade to a version
of ProtocolLib before dmulloy2/ProtocolLib@47bcd53. So for example dev build 720. I cannot fix it atm, because I'm only available on mobile.

@games647 games647 changed the title CRASH: NoClassDefFoundError - PlayerInjectionHandler NoClassDefFoundError: PlayerInjectionHandler with ProtocolLib builds 721+ Jun 19, 2024
@rursache
Copy link
Author

thanks, using the 719 build fixed it!
should i leave this issue open? seems like a fix is required on FastLogin side to support newer ProtocolLib versions

@games647 games647 pinned this issue Jun 20, 2024
@AmZuppa
Copy link

AmZuppa commented Jul 1, 2024

does 720 work? @rursache i found out that 719 build got a big error that makes the server crash. they say it's fixed in build 720

@AmZuppa
Copy link

AmZuppa commented Jul 1, 2024

does 720 work? @rursache i found out that 719 build got a big error that makes the server crash. they say it's fixed in build 720

update: ProtocolLib build 720 does work, and it should fix the crashes.

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
None yet
Development

No branches or pull requests

3 participants