ProtocolLib

3M Downloads

Unable to intercept a client packet

LeRoiBof opened this issue ยท 0 comments

commented

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.(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.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
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:310)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:297)
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:413)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
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 net.minecraft.network.LegacyPingHandler.channelRead(LegacyPingHandler.java:84)
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:286)
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:1434)
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:965)
at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:808)
at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:408)
at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:308)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.comphenix.protocol.reflect.compiler.StructureCompiler.compile(StructureCompiler.java:233)
... 38 more
Caused by: java.lang.NoClassDefFoundError: net/minecraft/server/v1_16_R3/PacketHandshakingInSetProtocol
at com.comphenix.protocol.reflect.compiler.CompiledStructure$net_minecraft_network_handshake_client_CHandshakePacket$java_lang_Object.(Unknown Source)
... 43 more
Dump:
Parameters:
io.netty.buffer.PooledUnsafeDirectByteBuf@4a0e2c7[
memoryAddress=140112352514064
recyclerHandle=io.netty.util.Recycler$DefaultHandle@234b8eef
chunk=Chunk(4b484e59: 1%, 16384/16777216)
handle=4611686018427389953
memory=java.nio.DirectByteBuffer[pos=0 lim=16777216 cap=16777216]
offset=8192
length=19
maxLength=32
cache=io.netty.buffer.PoolThreadCache@48c33788
tmpNioBuf=
allocator=PooledByteBufAllocator(directByDefault: true)
refCnt=1
readerIndex=19
writerIndex=19
markedReaderIndex=0
markedWriterIndex=0
maxCapacity=2147483647
]
manager:
com.comphenix.protocol.injector.PacketFilterManager@5333b984[
unhookTask=com.comphenix.protocol.injector.DelayedSingleTask@13dda28e
packetListeners=[PacketAdapter[plugin=JPremium, sending=EMPTY_WHITELIST, receiving=ListeningWhitelist[priority=LOW, packets=[SET_PROTOCOL[class=PacketHandshakingInSetProtocol, id=0]], gamephase=PLAYING, options=[]]]]
packetInjector=com.comphenix.protocol.injector.netty.ProtocolInjector$5@3bc94134
playerInjection=com.comphenix.protocol.injector.netty.ProtocolInjector$4@70493719
inputBufferedPackets=[]
recievedListeners=com.comphenix.protocol.injector.SortedPacketListenerList@3ef84f0d
sendingListeners=com.comphenix.protocol.injector.SortedPacketListenerList@40cf438e
hasClosed=false
classLoader=org.bukkit.plugin.java.PluginClassLoader@3c73ad59
reporter=com.comphenix.protocol.ProtocolLib$1@31fe6a42
server=CraftServer{serverName=Magma,serverVersion=git-Magma-1.16.5-8df6b19a,minecraftVersion=1.16.5}
library=ProtocolLib v4.8.0
asyncFilterManager=com.comphenix.protocol.async.AsyncFilterManager@744ad4a7
knowsServerPackets=true
knowsClientPackets=true
phaseLoginCount=0
phasePlayingCount=1
packetCreation=false
nettyInjector=com.comphenix.protocol.injector.netty.ProtocolInjector@15197976
pluginVerifier=com.comphenix.protocol.injector.PluginVerifier@4239bee4
hasRecycleDistance=true
minecraftVersion=(MC: 1.16.5)
debug=false
]
Sender:
com.comphenix.protocol.injector.netty.ChannelInjector@4bf6428d[
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@359a2f75
player=com.comphenix.protocol.injector.server.TemporaryPlayerInvocationHandler@343581ea
updated=
playerName=
playerConnection=
networkManager=net.minecraft.network.NetworkManager@3d062bb3
originalChannel=[id: 0x2e408a43, L:/172.18.0.3:25591 - R:/172.18.0.1:46044]
channelField=VolatileField [accessor=DefaultFieldAccessor [field=public io.netty.channel.Channel net.minecraft.network.NetworkManager.field_150746_k], container=net.minecraft.network.NetworkManager@3d062bb3, previous=[id: 0x2e408a43, L:/172.18.0.3:25591 - R:/172.18.0.1:46044], current=com.comphenix.protocol.injector.netty.ChannelInjector$3@15b3f1de, previousLoaded=true, currentSet=true, forceAccess=true]
packetMarker={}
currentEvent=
finalEvent=
unfilteredProcessedPackets=com.comphenix.protocol.injector.netty.PacketFilterQueue@d910853
vanillaDecoder=net.minecraft.network.NettyPacketDecoder@146f1e1
vanillaEncoder=net.minecraft.network.NettyPacketEncoder@2c64aa71
finishQueue=[]
channelListener=com.comphenix.protocol.injector.netty.ProtocolInjector@15197976
processor=com.comphenix.protocol.injector.NetworkProcessor@2385d42b
injected=true
closed=false
cumulation=PooledUnsafeDirectByteBuf(ridx: 19, widx: 19, cap: 19)
cumulator=io.netty.handler.codec.ByteToMessageDecoder$1@69c8cab2
singleDecode=false
decodeWasNull=false
first=true
decodeState=1
discardAfterReads=16
numReads=0
added=true
]
Version:
ProtocolLib v4.8.0
Java Version:
1.8.0_312
Server:
git-Magma-1.16.5-8df6b19a (MC: 1.16.5)