I had the same error. Connecting your pc to another network (hotspot) works with me.
How do I fix this Java error?
I've been playing this server with my friend for quite a bit now but.. I keep getting these type's of errors:
io.netty.handler.codec.DecoderException: Failed to decode packet ( error code here ). The one I'm dealing with right now is this one:
io.netty.handler.codec.DecoderException: Failed to decode packet 'clientbound/minecraft:set_entity_data - Happened after opening a chest at a ruined portal.
I'm using this server host " https://exaroton.com " - And I'll link a screenshot of the mods I'm currently using. I am playing on 1.21 Java fabric
- Full Error Message
---- Minecraft Network Protocol Error Report ----
// 404
Time: 2024-07-18 11:42:11
Description: Packet handling error
io.netty.handler.codec.DecoderException: Failed to decode packet 'clientbound/minecraft:set_entity_data'
at net.minecraft.class\_9136.method\_56425(class\_9136.java:38)
at net.minecraft.class\_9136.decode(class\_9136.java:14)
at net.minecraft.class\_2543.decode(class\_2543.java:31)
at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:529)
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:468)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.handler.flow.FlowControlHandler.dequeue(FlowControlHandler.java:202)
at io.netty.handler.flow.FlowControlHandler.channelRead(FlowControlHandler.java:164)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:346)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:333)
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:454)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
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:788)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.lang.IllegalArgumentException: No value with id 46
at net.minecraft.class\_2359.method\_39974(class\_2359.java:19)
at net.minecraft.class\_9135$16.method\_56422(class\_9135.java:479)
at net.minecraft.class\_9135$16.decode(class\_9135.java:471)
at net.minecraft.class\_9135$13.method\_56417(class\_9135.java:416)
at net.minecraft.class\_9135$13.decode(class\_9135.java:401)
at net.minecraft.class\_9139$12.decode(class\_9139.java:149)
at net.minecraft.class\_9326$1.method\_57849(class\_9326.java:72)
at net.minecraft.class\_9326$1.decode(class\_9326.java:59)
at net.minecraft.class\_1799$1.method\_56099(class\_1799.java:143)
at net.minecraft.class\_1799$1.decode(class\_1799.java:132)
at net.minecraft.class\_2945$class\_7834.method\_46363(class\_2945.java:158)
at net.minecraft.class\_2945$class\_7834.method\_46362(class\_2945.java:154)
at net.minecraft.class\_2739.method\_46616(class\_2739.java:36)
at net.minecraft.class\_2739.<init>(class\_2739.java:20)
at net.minecraft.class\_9139$6.decode(class\_9139.java:37)
at net.minecraft.class\_9139$9.method\_56441(class\_9139.java:91)
at net.minecraft.class\_9139$9.decode(class\_9139.java:87)
at net.minecraft.class\_9136.method\_56425(class\_9136.java:36)
... 44 more
A detailed walkthrough of the error, its code path and all known details is as follows:
-- Head --
Thread: Netty Client IO #8
Stacktrace:
at net.minecraft.class\_2547.method\_55622(class\_2547.java:33)
-- Connection --
Details:
Protocol: play
Flow: CLIENTBOUND
Server type: OTHER
Server brand: fabric
Stacktrace:
at net.minecraft.class\_2547.method\_55622(class\_2547.java:33)
at net.minecraft.class\_2600.method\_59803(class\_2600.java:62)
at net.minecraft.class\_8673.method\_60882(class\_8673.java:136)
at net.minecraft.class\_8673.method\_60881(class\_8673.java:127)
at net.minecraft.class\_2535.exceptionCaught(class\_2535.java:161)
at io.netty.channel.AbstractChannelHandlerContext.invokeExceptionCaught(AbstractChannelHandlerContext.java:346)
at io.netty.channel.AbstractChannelHandlerContext.invokeExceptionCaught(AbstractChannelHandlerContext.java:325)
at io.netty.channel.AbstractChannelHandlerContext.fireExceptionCaught(AbstractChannelHandlerContext.java:317)
at io.netty.channel.ChannelInboundHandlerAdapter.exceptionCaught(ChannelInboundHandlerAdapter.java:143)
at io.netty.channel.AbstractChannelHandlerContext.invokeExceptionCaught(AbstractChannelHandlerContext.java:346)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:447)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.handler.flow.FlowControlHandler.dequeue(FlowControlHandler.java:202)
at io.netty.handler.flow.FlowControlHandler.channelRead(FlowControlHandler.java:164)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:346)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:333)
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:454)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
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:788)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at java.base/java.lang.Thread.run(Thread.java:1583)
-- System Details --
Details:
Minecraft Version: 1.21
Minecraft Version ID: 1.21
Operating System: Windows 11 (amd64) version 10.0
Java Version: 21.0.3, Microsoft
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft
Memory: 446249096 bytes (425 MiB) / 838860800 bytes (800 MiB) up to 7516192768 bytes (7168 MiB)
CPUs: 12
Processor Vendor: AuthenticAMD
Processor Name: AMD Ryzen 5 3600 6-Core Processor
Identifier: AuthenticAMD Family 23 Model 113 Stepping 0
Microarchitecture: Zen 2
Frequency (GHz): 3.60
Number of physical packages: 1
Number of physical CPUs: 6
Number of logical CPUs: 12
Graphics card #0 name: NVIDIA GeForce RTX 3060 Ti
Graphics card #0 vendor: NVIDIA
Graphics card #0 VRAM (MiB): 8192.00
Graphics card #0 deviceId: VideoController1
Graphics card #0 versionInfo: 31.0.15.5222
Memory slot #0 capacity (MiB): 16384.00
Memory slot #0 clockSpeed (GHz): 3.20
Memory slot #0 type: DDR4
Memory slot #1 capacity (MiB): 16384.00
Memory slot #1 clockSpeed (GHz): 3.20
Memory slot #1 type: DDR4
Virtual memory max (MiB): 34700.54
Virtual memory used (MiB): 17535.23
Swap memory total (MiB): 2048.00
Swap memory used (MiB): 0.00
Space in storage for jna.tmpdir (MiB): available: 47386.04, total: 476223.00
Space in storage for org.lwjgl.system.SharedLibraryExtractPath (MiB): available: 47386.04, total: 476223.00
Space in storage for io.netty.native.workdir (MiB): available: 47386.04, total: 476223.00
Space in storage for java.io.tmpdir (MiB): available: 47386.04, total: 476223.00
Space in storage for workdir (MiB): available: 47386.04, total: 476223.00
JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance\_javaw.exe\_minecraft.exe.heapdump -Xss1M -Xmx7G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
Fabric Mods:
animatica: Animatica 0.6.1+1.21
betteradvancements: Better Advancements 0.4.2.16
betterbeds: Better Beds 1.4.0
betterf1: BetterF1 1.0
betterf3: BetterF3 11.0.1
bobby: Bobby 5.2.2+mc1.21
com\_typesafe\_config: config 1.4.2
fabric-api-base: Fabric API Base 0.4.42+6573ed8c90
fabric-command-api-v2: Fabric Command API (v2) 2.2.27+6a6dfa1990
io\_leangen\_geantyref\_geantyref: geantyref 1.3.13
org\_spongepowered\_configurate-core: configurate-core 4.1.2
org\_spongepowered\_configurate-hocon: configurate-hocon 4.1.2
cloth-config: Cloth Config v15 15.0.127
cloth-basic-math: cloth-basic-math 0.6.1
clumps: Clumps 18.0.0.1
collective: Collective 7.70
connectiblechains: Connectible Chains 2.4.1+1.21
cupboard: cupboard 1.21-2.7
diversity: Diversity 1.2.1+1.21
fabric-permissions-api-v0: fabric-permissions-api 0.3.1
midnightlib: MidnightLib 1.5.7
org\_javassist\_javassist: javassist 3.28.0-GA
org\_reflections\_reflections: reflections 0.10.2
dynamic\_fps: Dynamic FPS 3.5.1
net\_lostluma\_battery: battery 1.0.1
effecttimerplus: EffectTimerPlus 2.0.0
enhancedblockentities: Enhanced Block Entities 0.10.1+1.21
entityculling: EntityCulling 1.6.6
fabric-api: Fabric API 0.100.4+1.21
fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.67+b5597344d1
fabric-biome-api-v1: Fabric Biome API (v1) 13.0.28+6fc22b99d1
fabric-block-api-v1: Fabric Block API (v1) 1.0.22+0af3f5a7d1
fabric-block-view-api-v2: Fabric BlockView API (v2) 1.0.10+6573ed8cd1
fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.52+0af3f5a7d1
fabric-client-tags-api-v1: Fabric Client Tags 1.1.15+6573ed8cd1
fabric-command-api-v1: Fabric Command API (v1) 1.2.48+f71b366fd1
fabric-commands-v0: Fabric Commands (v0) 0.2.65+df3654b3d1
fabric-content-registries-v0: Fabric Content Registries (v0) 8.0.14+b5597344d1
fabric-convention-tags-v1: Fabric Convention Tags 2.0.15+7f945d5bd1
fabric-convention-tags-v2: Fabric Convention Tags (v2) 2.3.2+78017270d1
fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.29+0af3f5a7d1
fabric-data-attachment-api-v1: Fabric Data Attachment API (v1) 1.1.24+6a6dfa19d1
fabric-data-generation-api-v1: Fabric Data Generation API (v1) 20.2.9+16c4ae25d1
fabric-dimensions-v1: Fabric Dimensions API (v1) 4.0.0+6fc22b99d1
fabric-entity-events-v1: Fabric Entity Events (v1) 1.6.12+6fc22b99d1
fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.7.10+e633f883d1
fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.52+6573ed8cd1
fabric-item-api-v1: Fabric Item API (v1) 11.0.0+afdfc921d1
fabric-item-group-api-v1: Fabric Item Group API (v1) 4.1.2+78017270d1
fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.47+0af3f5a7d1
fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.45+df3654b3d1
fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.3.11+8f3583aed1
fabric-loot-api-v2: Fabric Loot API (v2) 3.0.11+6573ed8cd1
fabric-message-api-v1: Fabric Message API (v1) 6.0.13+6573ed8cd1
fabric-model-loading-api-v1: Fabric Model Loading API (v1) 2.0.0+fe474d6bd1
fabric-networking-api-v1: Fabric Networking API (v1) 4.2.0+ab7edbacd1
fabric-object-builder-api-v1: Fabric Object Builder API (v1) 15.1.12+d1321076d1
fabric-particles-v1: Fabric Particles (v1) 4.0.2+6573ed8cd1
fabric-recipe-api-v1: Fabric Recipe API (v1) 5.0.10+65089712d1
fabric-registry-sync-v0: Fabric Registry Sync (v0) 5.0.23+78017270d1
fabric-renderer-api-v1: Fabric Renderer API (v1) 3.3.0+0ae0b97dd1
fabric-renderer-indigo: Fabric Renderer - Indigo 1.6.5+48fb1586d1
fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.67+df3654b3d1
fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.48+73761d2ed1
fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 3.1.6+b5597344d1
fabric-rendering-v0: Fabric Rendering (v0) 1.1.70+df3654b3d1
fabric-rendering-v1: Fabric Rendering (v1) 5.0.4+5a8c785ed1
fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 4.2.1+d153f344d1
fabric-resource-loader-v0: Fabric Resource Loader (v0) 1.1.5+78017270d1
fabric-screen-api-v1: Fabric Screen API (v1) 2.0.24+b5597344d1
fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.3.80+b5597344d1
fabric-sound-api-v1: Fabric Sound API (v1) 1.0.23+6573ed8cd1
fabric-transfer-api-v1: Fabric Transfer API (v1) 5.1.15+3dccd343d1
fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 6.0.12+6573ed8cd1
fabricloader: Fabric Loader 0.15.11
mixinextras: MixinExtras 0.3.5
ferritecore: FerriteCore 7.0.0
guifollowers: GUI Followers 3.7
indium: Indium 1.0.34+mc1.21
java: OpenJDK 64-Bit Server VM 21
journeymap: Journeymap 1.21-6.0.0-beta.18
ar\_com\_hjg\_pngj: pngj 2.1.0
commonnetworking: Common Network 1.0.11-1.21
journeymap-api-fabric: JourneyMap API 2.0.0-1.21-SNAPSHOT
kiwi: Kiwi Library 15.1.0+fabric
krypton: Krypton 0.2.8
com\_velocitypowered\_velocity-native: velocity-native 3.3.0-SNAPSHOT
lithium: Lithium 0.12.7
logical\_zoom: Logical Zoom 0.0.25
minecraft: Minecraft 1.21
modelfix: Model Gap Fix 1.21-1.6
modmenu: Mod Menu 11.0.1
mr\_mastercutter: MasterCutter 1.3.1+1.21
notebook: Notebook 4.0.2
nullscape: Nullscape 1.2.6
photography: Photography 1.0.4+mc1.21
placeholder-api: Placeholder API 2.4.0+1.21
shulkerboxtooltip: Shulker Box Tooltip 5.0.2+1.21
skinlayers3d: 3d-Skin-Layers 1.6.6
snowrealmagic: Snow! Real Magic! 11.0.2+fabric
sodium: Sodium 0.5.11+mc1.21[![](https://learn-attachment.microsoft.com/api/attachments/408b879f-ed4a-4733-9f39-8db5f22d85de?platform=QnAWindows for home | Windows 11 | Gaming
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
2 answers
Sort by: Most helpful
-
Anonymous
2024-09-21T15:01:49+00:00 -
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more