Skip to content

Unhandled exception occured in onPacketSending(PacketEvent) #17

@ghost

Description

Hello,
First of all, thank you very much for maintaining this plugin. You're awesome !
However, I have this error that occurs when a player logs in, in an area where there are locked things. It doesn't seem to be breaking the locks, but I think it's better to report it to you. Or maybe it's a ProtocolLib problem ? 🤔

My environment :

  • Ubuntu 22.04
  • Oracle Java SE 17.0
  • Paper 1.18.2 build 387 (Latest one)
  • ProtocolLib 4.8.0 (Build 161, recommended for 1.18.x)
  • Your version of LockettePro for 1.18, build 3

The error happens many times, but I only pasted the first one.

Full traceback (46 lines)
[16:21:29] [Server thread/ERROR]: [LockettePro] Unhandled exception occured in onPacketSending(PacketEvent) for LockettePro
com.comphenix.protocol.reflect.FieldAccessException: No field with type java.util.List exists in class Integer.
    at com.comphenix.protocol.reflect.StructureModifier.readInternal(StructureModifier.java:218) ~[ProtocolLib.jar:?]
    at com.comphenix.protocol.reflect.StructureModifier.read(StructureModifier.java:197) ~[ProtocolLib.jar:?]
    at me.crafter.mc.lockettepro.DependencyProtocolLib$2.onPacketSending(DependencyProtocolLib.java:70) ~[LockettePro.jar:?]
    at com.comphenix.protocol.injector.SortedPacketListenerList.invokeSendingListener(SortedPacketListenerList.java:195) ~[ProtocolLib.jar:?]
    at com.comphenix.protocol.injector.SortedPacketListenerList.invokePacketSending(SortedPacketListenerList.java:149) ~[ProtocolLib.jar:?]
    at com.comphenix.protocol.injector.PacketFilterManager.handlePacket(PacketFilterManager.java:535) ~[ProtocolLib.jar:?]
    at com.comphenix.protocol.injector.PacketFilterManager.invokePacketSending(PacketFilterManager.java:516) ~[ProtocolLib.jar:?]
    at com.comphenix.protocol.injector.netty.ProtocolInjector.packetQueued(ProtocolInjector.java:346) ~[ProtocolLib.jar:?]
    at com.comphenix.protocol.injector.netty.ProtocolInjector.onPacketSending(ProtocolInjector.java:308) ~[ProtocolLib.jar:?]
    at com.comphenix.protocol.injector.netty.ChannelInjector.processSending(ChannelInjector.java:436) ~[ProtocolLib.jar:?]
    at com.comphenix.protocol.injector.netty.ChannelInjector.access$800(ChannelInjector.java:72) ~[ProtocolLib.jar:?]
    at com.comphenix.protocol.injector.netty.ChannelInjector$3.handleScheduled(ChannelInjector.java:376) ~[ProtocolLib.jar:?]
    at com.comphenix.protocol.injector.netty.ChannelInjector$3.onMessageScheduled(ChannelInjector.java:346) ~[ProtocolLib.jar:?]
    at com.comphenix.protocol.injector.netty.ChannelProxy$2.schedulingRunnable(ChannelProxy.java:127) ~[ProtocolLib.jar:?]
    at com.comphenix.protocol.injector.netty.EventLoopProxy.execute(EventLoopProxy.java:95) ~[ProtocolLib.jar:?]
    at net.minecraft.network.Connection.writePacket(Connection.java:435) ~[?:?]
    at net.minecraft.network.Connection.processQueue(Connection.java:530) ~[?:?]
    at net.minecraft.network.Connection.flushQueue(Connection.java:493) ~[?:?]
    at net.minecraft.network.Connection.send(Connection.java:401) ~[?:?]
    at net.minecraft.server.network.ServerGamePacketListenerImpl.send(ServerGamePacketListenerImpl.java:2040) ~[?:?]
    at net.minecraft.server.network.ServerGamePacketListenerImpl.send(ServerGamePacketListenerImpl.java:2026) ~[?:?]
    at net.minecraft.server.level.ServerPlayer.trackChunk(ServerPlayer.java:2168) ~[?:?]
    at net.minecraft.server.level.ChunkMap.playerLoadedChunk(ChunkMap.java:2136) ~[paper-1.18.2.jar:git-Paper-387]
    at net.minecraft.server.level.ChunkMap.updateChunkTracking(ChunkMap.java:1617) ~[paper-1.18.2.jar:git-Paper-387]
    at io.papermc.paper.chunk.PlayerChunkLoader$PlayerLoaderData.sendChunk(PlayerChunkLoader.java:875) ~[paper-1.18.2.jar:git-Paper-387]
    at io.papermc.paper.chunk.PlayerChunkLoader.trySendChunks(PlayerChunkLoader.java:584) ~[paper-1.18.2.jar:git-Paper-387]
    at io.papermc.paper.chunk.PlayerChunkLoader.tickMidTick(PlayerChunkLoader.java:741) ~[paper-1.18.2.jar:git-Paper-387]
    at io.papermc.paper.chunk.PlayerChunkLoader.tick(PlayerChunkLoader.java:515) ~[paper-1.18.2.jar:git-Paper-387]
    at net.minecraft.server.level.ServerChunkCache.tick(ServerChunkCache.java:906) ~[?:?]
    at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:629) ~[?:?]
    at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1593) ~[paper-1.18.2.jar:git-Paper-387]
    at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:483) ~[paper-1.18.2.jar:git-Paper-387]
    at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1456) ~[paper-1.18.2.jar:git-Paper-387]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1226) ~[paper-1.18.2.jar:git-Paper-387]
    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316) ~[paper-1.18.2.jar:git-Paper-387]
    at java.lang.Thread.run(Thread.java:833) ~[?:?]
[16:21:29] [Server thread/ERROR]: Parameters: 
  net.minecraft.network.protocol.game.ClientboundLevelChunkWithLightPacket@63fd25cb[
    a=-15
    b=19
    c=net.minecraft.network.protocol.game.ClientboundLevelChunkPacketData@13b19ed4
    d=net.minecraft.network.protocol.game.ClientboundLightUpdatePacketData@4db7364f
    ready=true
  ]

Thanks for reading, and have a nice day ! ^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions