ProtocolLib

3M Downloads

Crash of ProtocoLib In 1.21.8

Closed this issue · 7 comments

commented
  • This issue is not solved in a development build

Describe the bug
ProtocolLib fails to load with a RuntimeException: Unable to find network.ProtocolInfo$a (network.ProtocolInfo$Unbound). This prevents plugins that rely on ProtocolLib from functioning.

To Reproduce
Steps to reproduce the behavior:

  1. Install ProtocolLib v5.3.0 on a Minecraft server running Purpur 1.21.8-2485-c29e75f with Java 21.0.8.
  2. Start the server.
  3. Observe the server console logs for the ProtocolLib loading error.

Expected behavior
ProtocolLib should load successfully without any errors, allowing dependent plugins to function correctly.

Screenshots
N/A

Version Info
[17:30:11 ERROR]: [ProtocolLib] INTERNAL ERROR: Cannot load ProtocolLib.
If this problem hasn't already been reported, please open a ticket
at https://github.com/dmulloy2/ProtocolLib/issues with the following data:
Stack Trace:
java.lang.RuntimeException: Unable to find network.ProtocolInfo$a (network.ProtocolInfo$Unbound)
at ProtocolLib (1).jar//com.comphenix.protocol.utility.MinecraftReflection.lambda$getMinecraftClass$5(MinecraftReflection.java:
1581)
at java.base/java.util.Optional.orElseThrow(Optional.java:403)
at ProtocolLib (1).jar//com.comphenix.protocol.utility.MinecraftReflection.getMinecraftClass(MinecraftReflection.java:1581)
at ProtocolLib (1).jar//com.comphenix.protocol.utility.MinecraftReflection.getProtocolInfoUnboundClass(MinecraftReflection.java
:1878)
at ProtocolLib (1).jar//com.comphenix.protocol.injector.packet.PacketRegistry.createRegisterV1_20_5(PacketRegistry.java:367)
at ProtocolLib (1).jar//com.comphenix.protocol.injector.packet.PacketRegistry.initialize(PacketRegistry.java:552)
at ProtocolLib (1).jar//com.comphenix.protocol.injector.packet.PacketRegistry.getClientPacketTypes(PacketRegistry.java:604)
at ProtocolLib (1).jar//com.comphenix.protocol.injector.PacketFilterManager.(PacketFilterManager.java:112)
at ProtocolLib (1).jar//com.comphenix.protocol.injector.PacketFilterBuilder.build(PacketFilterBuilder.java:121)
at ProtocolLib (1).jar//com.comphenix.protocol.ProtocolLib.onLoad(ProtocolLib.java:179)
at io.papermc.paper.plugin.storage.ServerPluginProviderStorage.processProvided(ServerPluginProviderStorage.java:59)
at io.papermc.paper.plugin.storage.ServerPluginProviderStorage.processProvided(ServerPluginProviderStorage.java:18)
at io.papermc.paper.plugin.storage.SimpleProviderStorage.enter(SimpleProviderStorage.java:39)
at io.papermc.paper.plugin.entrypoint.LaunchEntryPointHandler.enter(LaunchEntryPointHandler.java:39)
at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:581)
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:269)
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1179)
at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:313)
at java.base/java.lang.Thread.run(Thread.java:1583)
Dump:
Parameters:
[NULL]
Sender:
com.comphenix.protocol.ProtocolLib@4ccaa14c[
statistics=
packetTask=
tickCounter=0
configExpectedMod=-1
updater=com.comphenix.protocol.updater.SpigotUpdater@193a08ac
redirectHandler=
scheduler=com.comphenix.protocol.scheduler.DefaultScheduler@4fbd8147
commandProtocol=
commandPacket=
commandFilter=
packetLogging=
skipDisable=false
isEnabled=false
loader=io.papermc.paper.plugin.manager.DummyBukkitPluginLoader@608afb2c
server=CraftServer{serverName=Purpur,serverVersion=1.21.8-2485-c29e75f,minecraftVersion=1.21.8}
file=plugins/ProtocolLib (1).jar
description=org.bukkit.plugin.PluginDescriptionFile@2004c838
pluginMeta=org.bukkit.plugin.PluginDescriptionFile@2004c838
dataFolder=plugins/ProtocolLib
classLoader=PluginClassLoader{plugin=ProtocolLib v5.3.0, pluginEnabled=false, url=plugins/ProtocolLib (1).jar}
naggable=true
newConfig=YamlConfiguration[path='', root='YamlConfiguration']
configFile=plugins/ProtocolLib/config.yml
logger=com.destroystokyo.paper.utils.PaperPluginLogger@496e427c
lifecycleEventManager=io.papermc.paper.plugin.lifecycle.event.PaperLifecycleEventManager@4f2d1661
allowsLifecycleRegistration=true
isBeingEnabled=false
]
Version:
ProtocolLib v5.3.0
Java Version:
21.0.8
Server:
1.21.8-2485-c29e75f (MC: 1.21.8)

Additional context

commented

yes my server crashed

commented

same error

commented

yes same error

commented

Guy's it would help if you provided a bit more info than just same error, like what version you are on as in Paper/Purpur etc

As it may not be occurring on all?

commented

Same error on paper 1.21.8-25,this make my shop plugin can't work.

commented

Well, it's quite obvious that the error message says it hasn't been tested for 1.21.8, and both the release on the repository and the one on Spigot are outdated. However, the latest commit adds support for 1.21.8 and can be found in the dev release at: https://ci.dmulloy2.net/job/ProtocolLib/lastStableBuild/ (installed and works)

commented

Just to add to this, I’d recommend grabbing the 5.4.0 release: https://github.com/dmulloy2/ProtocolLib/releases/tag/5.4.0