ProtocolLib

3M Downloads

Could not initialize class c.c.p.i.n.ChannelInjector

PierreSchwang opened this issue ยท 0 comments

commented

Describe the bug
Sometimes, ProtocolLib fails to load their ChannelInjector.class which breaks several packet features. There is no common scheme when and why this happens.

To Reproduce
idk tbh

Expected behavior
ChannelInjector.class should always load without any issues

Screenshots
- / -

Version Info
ProtocolLib v4.7.0 - Can't provide more information
Custom Paper Fork like https://github.com/gommehdnet/cheetah-1.16

Additional context
Stacktrace which happens for every player interaction:

NoClassDefFoundError
org.bukkit.event.EventException
	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[cheetah-1.8.8.jar:1.8.8-2.0.4-SNAPSHOT]
	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:74) ~[cheetah-1.8.8.jar:1.8.8-2.0.4-SNAPSHOT]
	at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [cheetah-1.8.8.jar:1.8.8-2.0.4-SNAPSHOT]
	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [cheetah-1.8.8.jar:1.8.8-2.0.4-SNAPSHOT]
	at net.minecraft.server.v1_8_R3.PlayerList.onPlayerJoin(PlayerList.java:299) [cheetah-1.8.8.jar:1.8.8-2.0.4-SNAPSHOT]
	at net.minecraft.server.v1_8_R3.PlayerList.a(PlayerList.java:157) [cheetah-1.8.8.jar:1.8.8-2.0.4-SNAPSHOT]
	at net.minecraft.server.v1_8_R3.LoginListener.b(LoginListener.java:144) [cheetah-1.8.8.jar:1.8.8-2.0.4-SNAPSHOT]
	at net.minecraft.server.v1_8_R3.LoginListener.c(LoginListener.java:54) [cheetah-1.8.8.jar:1.8.8-2.0.4-SNAPSHOT]
	at net.minecraft.server.v1_8_R3.NetworkManager.a(NetworkManager.java:231) [cheetah-1.8.8.jar:1.8.8-2.0.4-SNAPSHOT]
	at net.minecraft.server.v1_8_R3.ServerConnection.c(ServerConnection.java:148) [cheetah-1.8.8.jar:1.8.8-2.0.4-SNAPSHOT]
	at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:818) [cheetah-1.8.8.jar:1.8.8-2.0.4-SNAPSHOT]
	at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:373) [cheetah-1.8.8.jar:1.8.8-2.0.4-SNAPSHOT]
	at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:657) [cheetah-1.8.8.jar:1.8.8-2.0.4-SNAPSHOT]
	at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:560) [cheetah-1.8.8.jar:1.8.8-2.0.4-SNAPSHOT]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_292]
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.comphenix.protocol.injector.netty.ChannelInjector
	at com.comphenix.protocol.injector.netty.InjectionFactory.fromPlayer(InjectionFactory.java:93) ~[?:?]
	at com.comphenix.protocol.injector.netty.ProtocolInjector$4.updatePlayer(ProtocolInjector.java:376) ~[?:?]
	at com.comphenix.protocol.injector.PacketFilterManager.onPrePlayerJoin(PacketFilterManager.java:924) ~[?:?]
	at com.comphenix.protocol.injector.PacketFilterManager.access$300(PacketFilterManager.java:71) ~[?:?]
	at com.comphenix.protocol.injector.PacketFilterManager$3.onPrePlayerJoin(PacketFilterManager.java:898) ~[?:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_292]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_292]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_292]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_292]
	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[cheetah-1.8.8.jar:1.8.8-2.0.4-SNAPSHOT]
	... 14 more