ProtocolLib

3M Downloads

Can't initialize com.comphenix.protocol.wrappers.WrappedLevelChunkData$ChunkData on MC 1.21.5+

Closed this issue ยท 0 comments

commented
  • This issue is not solved in a development build

Describe the bug

Can't initialize com.comphenix.protocol.wrappers.WrappedLevelChunkData$ChunkData

[15:36:08 ERROR]: [Triton] Unhandled exception number 64 occurred in onAsyncPacket() for Triton
java.lang.NoClassDefFoundError: Could not initialize class com.comphenix.protocol.wrappers.WrappedLevelChunkData$ChunkData
        at ProtocolLib.jar/com.comphenix.protocol.wrappers.Converters$3.getSpecific(Converters.java:105) ~[ProtocolLib.jar:?]
        at ProtocolLib.jar/com.comphenix.protocol.wrappers.Converters$1.getSpecific(Converters.java:52) ~[ProtocolLib.jar:?]
        at ProtocolLib.jar/com.comphenix.protocol.reflect.StructureModifier.readInternal(StructureModifier.java:303) ~[ProtocolLib.jar:?]
        at ProtocolLib.jar/com.comphenix.protocol.reflect.StructureModifier.readSafely(StructureModifier.java:277) ~[ProtocolLib.jar:?]
        at com.rexcantor64.triton.spigot.packetinterceptor.SignPacketHandler.handleLevelChunk(SignPacketHandler.java:76) ~[?:?]
        at com.rexcantor64.triton.spigot.packetinterceptor.ProtocolLibListener.onPacketSending(ProtocolLibListener.java:875) ~[?:?]
        at ProtocolLib.jar/com.comphenix.protocol.async.AsyncListenerHandler.lambda$processPacket$4(AsyncListenerHandler.java:602) ~[ProtocolLib.jar:?]
        at ProtocolLib.jar/com.comphenix.protocol.timing.TimingTracker.lambda$static$0(TimingTracker.java:7) ~[ProtocolLib.jar:?]
        at ProtocolLib.jar/com.comphenix.protocol.async.AsyncListenerHandler.processPacket(AsyncListenerHandler.java:600) ~[ProtocolLib.jar:?]
        at ProtocolLib.jar/com.comphenix.protocol.async.AsyncListenerHandler.listenerLoop(AsyncListenerHandler.java:572) ~[ProtocolLib.jar:?]
        at ProtocolLib.jar/com.comphenix.protocol.async.AsyncListenerHandler$1.run(AsyncListenerHandler.java:217) ~[ProtocolLib.jar:?]
        at ProtocolLib.jar/com.comphenix.protocol.async.AsyncListenerHandler.lambda$start$1(AsyncListenerHandler.java:286) ~[ProtocolLib.jar:?]
        at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:78) ~[paper-1.21.5.jar:1.21.5-114-a1b3058]
        at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.21.5.jar:1.21.5-114-a1b3058]
        at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.21.5.jar:?]
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
        at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.IllegalArgumentException: Unable to find a field that matches {modifiers=[required: 0, banned: 0], type={ type exactly class net.minecraft.nbt.CompoundTag }} [in thread "Triton Async Packet Handler"]
        at ProtocolLib.jar/com.comphenix.protocol.reflect.FuzzyReflection.getField(FuzzyReflection.java:352) ~[ProtocolLib.jar:?]
        at ProtocolLib.jar/com.comphenix.protocol.wrappers.WrappedLevelChunkData$ChunkData.<clinit>(WrappedLevelChunkData.java:57) ~[ProtocolLib.jar:?]
        ... 18 more

To Reproduce
Steps to reproduce the behavior:

  1. Try to initialize the class

Version Info

build 751

Additional context

Will provide fixing PR in a few minutes, just opening the issue to track the issue.