I get an error when someone joins on my server, why?
xSenny opened this issue ยท 1 comments
- This issue is not solved in a development build
Describe the bug
I added the newest version of protocollib into my plugin's folder, with a custom plugin that uses protocollib, and I get the error
To Reproduce
Steps to reproduce the behavior:
- Open the server with a plugin that uses TagAPI from spigotmc
- Join on the server
- Look into the console
- See error
Expected behavior
to not get the error
Screenshots
If applicable, add screenshots to help explain your problem.
Version Info
Provide your ProtocolLib install info with /protocol dump
through pastebin.
Additional context
Add any other context about the problem here.
Here is the error
[18:12:36] [Netty Server IO #1/WARN]: [ProtocolLib] [DetailedErrorReporter] Internal exception count: 64!
[18:12:37] [Netty Server IO #1/INFO]: Error Unable to intercept a read client packet. (java.lang.IllegalArgumentException: Unable to find a field null with the type com.mojang.authlib.GameProfile in net.minecraft.network.protocol.login.PacketLoginInStart) occured in com.comphenix.protocol.injector.netty.ChannelInjector@e099260.
[18:12:37] [Netty Server IO #1/ERROR]: [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.IllegalArgumentException: Unable to find a field null with the type com.mojang.authlib.GameProfile in net.minecraft.network.protocol.login.PacketLoginInStart
at com.comphenix.protocol.reflect.FuzzyReflection.getFieldByType(FuzzyReflection.java:397)
at com.comphenix.protocol.reflect.accessors.Accessors.getFieldAccessor(Accessors.java:57)
at com.comphenix.protocol.injector.netty.ChannelInjector.handleLogin(ChannelInjector.java:658)
at com.comphenix.protocol.injector.netty.ChannelInjector.decode(ChannelInjector.java:591)
at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:510)
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:449)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:279)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:327)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:299)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at com.comphenix.protocol.injector.netty.ChannelInjector$2.channelRead(ChannelInjector.java:292)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:327)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:299)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:722)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:658)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:584)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:995)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at java.base/java.lang.Thread.run(Thread.java:833)
Dump:
Parameters:
io.netty.buffer.PooledUnsafeDirectByteBuf@1c1214d[
memoryAddress=2578758807648
recyclerHandle=io.netty.util.Recycler$DefaultHandle@10ec7d2f
chunk=Chunk(78b0e298: 16%, 638976/4194304)
handle=14073778900303873
memory=java.nio.DirectByteBuffer[pos=0 lim=4194304 cap=4194304]
offset=204832
length=26
maxLength=32
cache=io.netty.buffer.PoolThreadCache@67250070
tmpNioBuf=
allocator=PooledByteBufAllocator(directByDefault: true)
refCnt=2
readerIndex=26
writerIndex=26
markedReaderIndex=0
markedWriterIndex=0
maxCapacity=2147483647
]
manager:
com.comphenix.protocol.injector.PacketFilterManager@624194c1[
unhookTask=com.comphenix.protocol.injector.DelayedSingleTask@1b9b0ad5
packetListeners=[PacketAdapter[plugin=Teams, sending=EMPTY_WHITELIST, receiving=ListeningWhitelist[priority=LOWEST, packets=[POSITION_LOOK[class=PacketPlayInPositionLook, id=18], LOOK[class=PacketPlayInLook, id=19], POSITION[class=PacketPlayInPosition, id=17], USE_ENTITY[class=PacketPlayInUseEntity, id=13]], gamephase=PLAYING, options=[]]], PacketAdapter[plugin=Teams, sending=ListeningWhitelist[priority=MONITOR, packets=[ENTITY_METADATA[class=PacketPlayOutEntityMetadata, id=77], ENTITY_LOOK[class=PacketPlayOutEntityLook, id=43], ENTITY_TELEPORT[class=PacketPlayOutEntityTeleport, id=98], SPAWN_ENTITY[class=PacketPlayOutSpawnEntity, id=0], PLAYER_INFO[class=PacketPlayOutPlayerInfo, id=54], NAMED_ENTITY_SPAWN[class=PacketPlayOutNamedEntitySpawn, id=4], ENTITY_DESTROY[class=PacketPlayOutEntityDestroy, id=58], REL_ENTITY_MOVE_LOOK[class=PacketPlayOutRelEntityMoveLook, id=42], REL_ENTITY_MOVE[class=PacketPlayOutRelEntityMove, id=41]], gamephase=PLAYING, options=[]], receiving=EMPTY_WHITELIST]]
packetInjector=com.comphenix.protocol.injector.netty.ProtocolInjector$5@54fc9a6d
playerInjection=com.comphenix.protocol.injector.netty.ProtocolInjector$4@380483f1
inputBufferedPackets=[]
recievedListeners=com.comphenix.protocol.injector.SortedPacketListenerList@568defac
sendingListeners=com.comphenix.protocol.injector.SortedPacketListenerList@15039a0a
hasClosed=false
classLoader=org.bukkit.plugin.java.PluginClassLoader@27fd614f
reporter=com.comphenix.protocol.ProtocolLib$1@399b516c
server=CraftServer{serverName=CraftBukkit,serverVersion=3610-Spigot-6198b5a-19df23a,minecraftVersion=1.19.2}
library=ProtocolLib v4.8.0
asyncFilterManager=com.comphenix.protocol.async.AsyncFilterManager@98820a6
knowsServerPackets=true
knowsClientPackets=true
phaseLoginCount=0
phasePlayingCount=2
packetCreation=false
nettyInjector=com.comphenix.protocol.injector.netty.ProtocolInjector@74c48eff
pluginVerifier=com.comphenix.protocol.injector.PluginVerifier@696931a9
hasRecycleDistance=true
minecraftVersion=(MC: 1.19.2)
debug=false
]
Sender:
com.comphenix.protocol.injector.netty.ChannelInjector@e099260[
decodeBuffer=protected void net.minecraft.network.PacketDecoder.decode(io.netty.channel.ChannelHandlerContext,io.netty.buffer.ByteBuf,java.util.List) throws java.lang.Exception
encodeBuffer=protected void net.minecraft.network.PacketEncoder.encode(io.netty.channel.ChannelHandlerContext,java.lang.Object,io.netty.buffer.ByteBuf) throws java.lang.Exception
factory=com.comphenix.protocol.injector.netty.InjectionFactory@4a3daa71
player=CraftPlayer{name=xSenny_}
updated=
playerName=xSenny_
playerConnection=
networkManager=net.minecraft.network.NetworkManager@6553a924
originalChannel=[id: 0xe0b373ee, L:/127.0.0.1:25565 - R:/127.0.0.1:60697]
channelField=VolatileField [accessor=DefaultFieldAccessor [field=public io.netty.channel.Channel net.minecraft.network.NetworkManager.m], container=net.minecraft.network.NetworkManager@6553a924, previous=[id: 0xe0b373ee, L:/127.0.0.1:25565 - R:/127.0.0.1:60697], current=com.comphenix.protocol.injector.netty.ChannelInjector$3@c8877d5, previousLoaded=true, currentSet=true, forceAccess=true]
packetMarker={}
currentEvent=
finalEvent=
unfilteredProcessedPackets=com.comphenix.protocol.injector.netty.PacketFilterQueue@3dbc1c1d
vanillaDecoder=net.minecraft.network.PacketDecoder@7245e2a0
vanillaEncoder=net.minecraft.network.PacketEncoder@7dce2dce
finishQueue=[]
channelListener=com.comphenix.protocol.injector.netty.ProtocolInjector@74c48eff
processor=com.comphenix.protocol.injector.NetworkProcessor@72165169
injected=true
closed=false
cumulation=PooledUnsafeDirectByteBuf(ridx: 26, widx: 26, cap: 26)
cumulator=io.netty.handler.codec.ByteToMessageDecoder$1@2f1bfd69
singleDecode=false
first=true
firedChannelRead=false
selfFiredChannelRead=true
decodeState=1
discardAfterReads=16
numReads=0
added=true
]
Version:
ProtocolLib v4.8.0
Java Version:
17.0.5
Server:
3610-Spigot-6198b5a-19df23a (MC: 1.19.2)
and it s spamming
Use the latest pre-release for 1.19.2 support: https://github.com/dmulloy2/ProtocolLib/releases/tag/5.0.0-rc1