ProtocolLib

3M Downloads

Unable to intercept a read client packet.

mziinn opened this issue ยท 0 comments

commented

Bug Description
Plugin can't read client packet (getting error when join the server)

[ProtocolLib] INTERNAL ERROR: Unable to intercept a read client packet. 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: Error occured while instancing generated class. at com.comphenix.protocol.reflect.compiler.StructureCompiler.compile(StructureCompiler.java:249) at com.comphenix.protocol.reflect.compiler.CompiledStructureModifier.withTarget(CompiledStructureModifier.java:130) at com.comphenix.protocol.events.PacketContainer.<init>(PacketContainer.java:139) at com.comphenix.protocol.injector.netty.ProtocolInjector.onPacketReceiving(ProtocolInjector.java:324) at com.comphenix.protocol.injector.netty.ChannelInjector.decode(ChannelInjector.java:600) at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:411) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at com.comphenix.protocol.injector.netty.ChannelInjector$2.channelRead(ChannelInjector.java:292) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:280) at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:396) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:287) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:134) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:624) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:559) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:476) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:438) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at com.comphenix.protocol.reflect.compiler.StructureCompiler.compile(StructureCompiler.java:233) ... 40 more Caused by: java.lang.NoClassDefFoundError: net/minecraft/server/v1_12_R1/PacketPlayInFlying$PacketPlayInPositionLook at com.comphenix.protocol.reflect.compiler.CompiledStructure$net_minecraft_network_play_client_CPacketPlayer_PositionRotation$java_lang_Object.<init>(Unknown Source) ... 45 more Dump: Parameters: io.netty.buffer.PooledUnsafeDirectByteBuf@67aad5ad[ memoryAddress=2779818307696 recyclerHandle=io.netty.util.Recycler$DefaultHandle@788b75f2 chunk=Chunk(2278439e: 1%, 114688/16777216) handle=4611686022722357260 memory=java.nio.DirectByteBuffer[pos=0 lim=16777216 cap=16777216] offset=98352 length=34 maxLength=48 cache=io.netty.buffer.PoolThreadCache@3113df4 tmpNioBuf=<null> allocator=PooledByteBufAllocator(directByDefault: true) refCnt=1 readerIndex=34 writerIndex=34 markedReaderIndex=0 markedWriterIndex=0 maxCapacity=2147483647 ] manager: com.comphenix.protocol.injector.PacketFilterManager@60be9ea6[ unhookTask=com.comphenix.protocol.injector.DelayedSingleTask@6a4ae1d8 packetListeners=[PacketAdapter[plugin=NoCheatPlus, sending=EMPTY_WHITELIST, receiving=ListeningWhitelist[priority=LOW, packets=[KEEP_ALIVE[class=PacketPlayInKeepAlive, id=15]], gamephase=PLAYING, options=[]]], PacketAdapter[plugin=HolographicDisplays, sending=ListeningWhitelist[priority=NORMAL, packets=[SPAWN_ENTITY[class=PacketPlayOutSpawnEntity, id=0], SPAWN_ENTITY_LIVING[class=PacketPlayOutSpawnEntityLiving, id=2], REL_ENTITY_MOVE[class=PacketPlayOutRelEntityMove, id=41], REL_ENTITY_MOVE_LOOK[class=PacketPlayOutRelEntityMoveLook, id=42], ENTITY_METADATA[class=PacketPlayOutEntityMetadata, id=77]], gamephase=PLAYING, options=[]], receiving=EMPTY_WHITELIST], PacketAdapter[plugin=NoCheatPlus, sending=EMPTY_WHITELIST, receiving=ListeningWhitelist[priority=LOW, packets=[POSITION[class=PacketPlayInPosition, id=17], LOOK[class=PacketPlayInLook, id=19], POSITION_LOOK[class=PacketPlayInPositionLook, id=18], FLYING[class=PacketPlayInFlying, id=254]], gamephase=PLAYING, options=[]]], PacketAdapter[plugin=NoCheatPlus, sending=ListeningWhitelist[priority=HIGHEST, packets=[POSITION[class=PacketPlayOutPosition, id=56]], gamephase=PLAYING, options=[]], receiving=EMPTY_WHITELIST], PacketAdapter[plugin=NoCheatPlus, sending=ListeningWhitelist[priority=LOW, packets=[NAMED_SOUND_EFFECT[class=PacketPlayOutNamedSoundEffect, id=93]], gamephase=PLAYING, options=[]], receiving=EMPTY_WHITELIST], PacketAdapter[plugin=NoCheatPlus, sending=EMPTY_WHITELIST, receiving=ListeningWhitelist[priority=NORMAL, packets=[USE_ENTITY[class=PacketPlayInUseEntity, id=13]], gamephase=PLAYING, options=[]]]] packetInjector=com.comphenix.protocol.injector.netty.ProtocolInjector$5@1dc58d6d playerInjection=com.comphenix.protocol.injector.netty.ProtocolInjector$4@4f61c170 inputBufferedPackets=[] recievedListeners=com.comphenix.protocol.injector.SortedPacketListenerList@5b3e2d94 sendingListeners=com.comphenix.protocol.injector.SortedPacketListenerList@66c7430a hasClosed=false classLoader=org.bukkit.plugin.java.PluginClassLoader@6d2cc053 reporter=com.comphenix.protocol.ProtocolLib$1@57d8145a server=CraftServer{serverName=Magma,serverVersion=a549e0d-DEV,minecraftVersion=1.12.2} library=ProtocolLib v4.8.0 asyncFilterManager=com.comphenix.protocol.async.AsyncFilterManager@3c0be857 knowsServerPackets=true knowsClientPackets=true phaseLoginCount=0 phasePlayingCount=6 packetCreation=false nettyInjector=com.comphenix.protocol.injector.netty.ProtocolInjector@1b9f6388 pluginVerifier=com.comphenix.protocol.injector.PluginVerifier@3a28ad7f hasRecycleDistance=true minecraftVersion=(MC: 1.12.2) debug=false ] Sender: com.comphenix.protocol.injector.netty.ChannelInjector@611c546b[ decodeBuffer=protected void net.minecraft.network.NettyPacketDecoder.decode(io.netty.channel.ChannelHandlerContext,io.netty.buffer.ByteBuf,java.util.List) throws java.lang.Exception encodeBuffer=protected void net.minecraft.network.NettyPacketEncoder.encode(io.netty.channel.ChannelHandlerContext,java.lang.Object,io.netty.buffer.ByteBuf) throws java.lang.Exception factory=com.comphenix.protocol.injector.netty.InjectionFactory@3256fcfc player=CraftPlayer{name=MauricioGamer15} updated=CraftPlayer{name=MauricioGamer15} playerName=MauricioGamer15 playerConnection=<null> networkManager=net.minecraft.network.NetworkManager@52b54a1d originalChannel=[id: 0xe8f7684a, L:/192.168.15.4:25565 - R:/192.168.15.4:6515] channelField=VolatileField [accessor=DefaultFieldAccessor [field=public io.netty.channel.Channel net.minecraft.network.NetworkManager.field_150746_k], container=net.minecraft.network.NetworkManager@52b54a1d, previous=[id: 0xe8f7684a, L:/192.168.15.4:25565 - R:/192.168.15.4:6515], current=com.comphenix.protocol.injector.netty.ChannelInjector$3@34417402, previousLoaded=true, currentSet=true, forceAccess=true] packetMarker={} currentEvent=<null> finalEvent=<null> unfilteredProcessedPackets=com.comphenix.protocol.injector.netty.PacketFilterQueue@35f01ae5 vanillaDecoder=net.minecraft.network.NettyPacketDecoder@1494899a vanillaEncoder=net.minecraft.network.NettyPacketEncoder@27692f2c finishQueue=[] channelListener=com.comphenix.protocol.injector.netty.ProtocolInjector@1b9f6388 processor=com.comphenix.protocol.injector.NetworkProcessor@2d25a876 injected=true closed=false cumulation=PooledUnsafeDirectByteBuf(ridx: 34, widx: 34, cap: 34) cumulator=io.netty.handler.codec.ByteToMessageDecoder$1@1d4d3c11 singleDecode=false decodeWasNull=false first=true discardAfterReads=16 numReads=0 added=true ] Version: ProtocolLib v4.8.0 Java Version: 1.8.0_321 Server: a549e0d-DEV (MC: 1.12.2)

Version Info
`ProtocolLib Dump
Timestamp: 04/19/22 19:05:22

ProtocolLib Version: ProtocolLib v4.8.0
Bukkit Version: 1.12.2-R0.1-SNAPSHOT
Server Version: a549e0d-DEV (MC: 1.12.2)
Java Version: 1.8.0_321

ProtocolLib: com.comphenix.protocol.ProtocolLib@6ee7c6f4[
statistics=com.comphenix.protocol.metrics.Statistics@3639df30
backgroundCompiler=com.comphenix.protocol.reflect.compiler.BackgroundCompiler@62a8dbd2
packetTask=13
tickCounter=609
unhookTask=com.comphenix.protocol.injector.DelayedSingleTask@59785472
configExpectedMod=1
updater=com.comphenix.protocol.updater.SpigotUpdater@115a166f
redirectHandler=com.comphenix.protocol.ProtocolLib$2@41dab2d6
commandProtocol=com.comphenix.protocol.CommandProtocol@39e23582
commandPacket=com.comphenix.protocol.CommandPacket@1db00f27
commandFilter=com.comphenix.protocol.CommandFilter@5c188b90
packetLogging=com.comphenix.protocol.PacketLogging@4840cec7
skipDisable=false
isEnabled=true
loader=org.bukkit.plugin.java.JavaPluginLoader@6026ac68
server=CraftServer{serverName=Magma,serverVersion=a549e0d-DEV,minecraftVersion=1.12.2}
file=plugins\ProtocolLib.jar
description=org.bukkit.plugin.PluginDescriptionFile@7d725e7c
dataFolder=plugins\ProtocolLib
classLoader=org.bukkit.plugin.java.PluginClassLoader@7d7e085f
naggable=true
newConfig=YamlConfiguration[path='', root='YamlConfiguration']
configFile=plugins\ProtocolLib\config.yml
logger=org.bukkit.plugin.PluginLogger@2bd6c2cd
]
Manager: com.comphenix.protocol.injector.PacketFilterManager@2faca233[
unhookTask=com.comphenix.protocol.injector.DelayedSingleTask@59785472
packetListeners=[PacketAdapter[plugin=NoCheatPlus, sending=EMPTY_WHITELIST, receiving=ListeningWhitelist[priority=LOW, packets=[LOOK[class=PacketPlayInLook, id=19], POSITION_LOOK[class=PacketPlayInPositionLook, id=18], POSITION[class=PacketPlayInPosition, id=17], FLYING[class=PacketPlayInFlying, id=254]], gamephase=PLAYING, options=[]]], PacketAdapter[plugin=NoCheatPlus, sending=EMPTY_WHITELIST, receiving=ListeningWhitelist[priority=NORMAL, packets=[USE_ENTITY[class=PacketPlayInUseEntity, id=13]], gamephase=PLAYING, options=[]]], PacketAdapter[plugin=NoCheatPlus, sending=ListeningWhitelist[priority=LOW, packets=[NAMED_SOUND_EFFECT[class=PacketPlayOutNamedSoundEffect, id=93]], gamephase=PLAYING, options=[]], receiving=EMPTY_WHITELIST], PacketAdapter[plugin=HolographicDisplays, sending=ListeningWhitelist[priority=NORMAL, packets=[REL_ENTITY_MOVE[class=PacketPlayOutRelEntityMove, id=41], REL_ENTITY_MOVE_LOOK[class=PacketPlayOutRelEntityMoveLook, id=42], ENTITY_METADATA[class=PacketPlayOutEntityMetadata, id=77], SPAWN_ENTITY[class=PacketPlayOutSpawnEntity, id=0], SPAWN_ENTITY_LIVING[class=PacketPlayOutSpawnEntityLiving, id=2]], gamephase=PLAYING, options=[]], receiving=EMPTY_WHITELIST], PacketAdapter[plugin=NoCheatPlus, sending=EMPTY_WHITELIST, receiving=ListeningWhitelist[priority=LOW, packets=[KEEP_ALIVE[class=PacketPlayInKeepAlive, id=15]], gamephase=PLAYING, options=[]]], PacketAdapter[plugin=NoCheatPlus, sending=ListeningWhitelist[priority=HIGHEST, packets=[POSITION[class=PacketPlayOutPosition, id=56]], gamephase=PLAYING, options=[]], receiving=EMPTY_WHITELIST]]
packetInjector=com.comphenix.protocol.injector.netty.ProtocolInjector$5@52ec82d
playerInjection=com.comphenix.protocol.injector.netty.ProtocolInjector$4@73e74ae6
inputBufferedPackets=[]
recievedListeners=com.comphenix.protocol.injector.SortedPacketListenerList@3990d393
sendingListeners=com.comphenix.protocol.injector.SortedPacketListenerList@2250cb17
hasClosed=false
classLoader=org.bukkit.plugin.java.PluginClassLoader@7d7e085f
reporter=com.comphenix.protocol.ProtocolLib$1@514c00d0
server=CraftServer{serverName=Magma,serverVersion=a549e0d-DEV,minecraftVersion=1.12.2}
library=ProtocolLib v4.8.0
asyncFilterManager=com.comphenix.protocol.async.AsyncFilterManager@278694bb
knowsServerPackets=true
knowsClientPackets=true
phaseLoginCount=0
phasePlayingCount=6
packetCreation=false
nettyInjector=com.comphenix.protocol.injector.netty.ProtocolInjector@176186a0
pluginVerifier=com.comphenix.protocol.injector.PluginVerifier@43c674f0
hasRecycleDistance=true
minecraftVersion=(MC: 1.12.2)
debug=false
]

Listeners:
fr.neatmonster.nocheatplus.checks.net.protocollib.MovingFlying@2ac5f427[
flyingFrequency=fr.neatmonster.nocheatplus.checks.net.FlyingFrequency@2058c7cf
idFlying=13
idAsyncFlying=14
packetMismatch=-9223372036854775808
packetMismatchLogFrequency=60000
validContent=[POS_LOOK, POS, GROUND_ONLY]
confirmTeleportType=
acceptConfirmTeleportPackets=false
counters=fr.neatmonster.nocheatplus.stats.Counters@4e1c603
configFactory=fr.neatmonster.nocheatplus.checks.net.NetConfigCache@19bcacf8
dataFactory=fr.neatmonster.nocheatplus.checks.net.NetDataFactory@5446fe0a
checkType=NET
plugin=NoCheatPlus v3.16.0-RC-sMD5NET-b1134
connectionSide=CLIENT_SIDE
receivingWhitelist=ListeningWhitelist[priority=LOW, packets=[LOOK[class=PacketPlayInLook, id=19], POSITION_LOOK[class=PacketPlayInPositionLook, id=18], POSITION[class=PacketPlayInPosition, id=17], FLYING[class=PacketPlayInFlying, id=254]], gamephase=PLAYING, options=[]]
sendingWhitelist=EMPTY_WHITELIST
]
fr.neatmonster.nocheatplus.checks.net.protocollib.UseEntityAdapter@785b267e[
attackFrequency=fr.neatmonster.nocheatplus.checks.net.AttackFrequency@7b5e24da
legacySet=
counters=fr.neatmonster.nocheatplus.stats.Counters@4e1c603
configFactory=fr.neatmonster.nocheatplus.checks.net.NetConfigCache@19bcacf8
dataFactory=fr.neatmonster.nocheatplus.checks.net.NetDataFactory@5446fe0a
checkType=NET
plugin=NoCheatPlus v3.16.0-RC-sMD5NET-b1134
connectionSide=CLIENT_SIDE
receivingWhitelist=ListeningWhitelist[priority=NORMAL, packets=[USE_ENTITY[class=PacketPlayInUseEntity, id=13]], gamephase=PLAYING, options=[]]
sendingWhitelist=EMPTY_WHITELIST
]
fr.neatmonster.nocheatplus.checks.net.protocollib.SoundDistance@491b791e[
idSoundEffectCancel=16
configs=fr.neatmonster.nocheatplus.checks.net.NetConfigCache@19bcacf8
useLoc=Location{world=null,x=0.0,y=0.0,z=0.0,pitch=0.0,yaw=0.0}
pre1_9=false
counters=fr.neatmonster.nocheatplus.stats.Counters@4e1c603
configFactory=fr.neatmonster.nocheatplus.checks.net.NetConfigCache@19bcacf8
dataFactory=fr.neatmonster.nocheatplus.checks.net.NetDataFactory@5446fe0a
checkType=NET_SOUNDDISTANCE
plugin=NoCheatPlus v3.16.0-RC-sMD5NET-b1134
connectionSide=SERVER_SIDE
receivingWhitelist=EMPTY_WHITELIST
sendingWhitelist=ListeningWhitelist[priority=LOW, packets=[NAMED_SOUND_EFFECT[class=PacketPlayOutNamedSoundEffect, id=93]], gamephase=PLAYING, options=[]]
]
com.gmail.filoghost.holographicdisplays.bridge.protocollib.current.ProtocolLibHookImpl$1@2fc0c818[
plugin=HolographicDisplays v2.4.9
connectionSide=SERVER_SIDE
receivingWhitelist=EMPTY_WHITELIST
sendingWhitelist=ListeningWhitelist[priority=NORMAL, packets=[REL_ENTITY_MOVE[class=PacketPlayOutRelEntityMove, id=41], REL_ENTITY_MOVE_LOOK[class=PacketPlayOutRelEntityMoveLook, id=42], ENTITY_METADATA[class=PacketPlayOutEntityMetadata, id=77], SPAWN_ENTITY[class=PacketPlayOutSpawnEntity, id=0], SPAWN_ENTITY_LIVING[class=PacketPlayOutSpawnEntityLiving, id=2]], gamephase=PLAYING, options=[]]
]
fr.neatmonster.nocheatplus.checks.net.protocollib.KeepAliveAdapter@45e6d26f[
frequencyCheck=fr.neatmonster.nocheatplus.checks.net.KeepAliveFrequency@2c145b71
counters=fr.neatmonster.nocheatplus.stats.Counters@4e1c603
configFactory=fr.neatmonster.nocheatplus.checks.net.NetConfigCache@19bcacf8
dataFactory=fr.neatmonster.nocheatplus.checks.net.NetDataFactory@5446fe0a
checkType=NET
plugin=NoCheatPlus v3.16.0-RC-sMD5NET-b1134
connectionSide=CLIENT_SIDE
receivingWhitelist=ListeningWhitelist[priority=LOW, packets=[KEEP_ALIVE[class=PacketPlayInKeepAlive, id=15]], gamephase=PLAYING, options=[]]
sendingWhitelist=EMPTY_WHITELIST
]
fr.neatmonster.nocheatplus.checks.net.protocollib.OutgoingPosition@60b0fb5[
ID_OUTGOING_POSITION_UNTRACKED=15
hasTeleportId=true
counters=fr.neatmonster.nocheatplus.stats.Counters@4e1c603
configFactory=fr.neatmonster.nocheatplus.checks.net.NetConfigCache@19bcacf8
dataFactory=fr.neatmonster.nocheatplus.checks.net.NetDataFactory@5446fe0a
checkType=NET
plugin=NoCheatPlus v3.16.0-RC-sMD5NET-b1134
connectionSide=SERVER_SIDE
receivingWhitelist=EMPTY_WHITELIST
sendingWhitelist=ListeningWhitelist[priority=HIGHEST, packets=[POSITION[class=PacketPlayOutPosition, id=56]], gamephase=PLAYING, options=[]]
]

Plugins Using ProtocolLib:
NoCheatPlus by [NeatMonster, asofold, Evenprime]
HolographicDisplays by [filoghost]
`

Additional context
I don't have any Java/Java Bukkit knowledge.