i just made a modded server and in getting this error massage
internal exception io.netty.handler.codec.decoderexception: java.io.UTFDataFormatException: malformed input around 2 bytes
how do i fix this???

79 Replies
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by elite_x#0
do you have the exact same mods
and exact same versions
on both server and client
Usually a mod mismatch. IE server has different mods from the client.
yes
im hosting myself and i went through all the mods and when it was all done this came up
Check the server and client logs, they'll usually tell you what's wrong.
how do i do that?
oh wait i think i know
look at this
[23Aug2023 20:03:39.437] [Server thread/WARN] [net.minecraft.network.syncher.SynchedEntityData/]: defineId called for: class net.minecraft.world.entity.player.Player from class tschipp.carryon.common.carry.CarryOnDataManager
[23Aug2023 20:03:39.502] [Server thread/INFO] [net.minecraftforge.common.AdvancementLoadFix/]: Using new advancement loading for net.minecraft.server.PlayerAdvancements@2e9f57c2
[23Aug2023 20:03:39.536] [Server thread/INFO] [net.minecraft.server.players.PlayerList/]: Elite_X[/127.0.0.1:57669] logged in with entity id 2301 at (-34.99580056496939, 97.33555240563524, 68.96776892292118)
[23Aug2023 20:03:39.671] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Elite_X joined the game
[23Aug2023 20:03:39.814] [Server thread/INFO] [APTweaks(Player)/]: Player Elite_X ServerPlayer['Elite_X'/2301, l='ServerLevel[world]', x=-35.00, y=97.34, z=68.97] logged in and will be protected for 90 secs.
[23Aug2023 20:03:39.839] [Server thread/INFO] [net.minecraft.server.network.ServerGamePacketListenerImpl/]: Elite_X lost connection: Disconnected
[23Aug2023 20:03:39.840] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Elite_X left the game
[23Aug2023 20:03:39.862] [Server thread/WARN] [net.minecraft.network.Connection/]: handleDisconnection() called twice
does this help??????
No.
Use https://mclo.gs/
mclo.gs - Paste, share & analyse your Minecraft logs
Easily paste your Minecraft logs to share and analyse them.
For the entire latest.log from both server and client
ok 1 sec
ok now what do i do how do i send it here?
do i click raw?
or just send u the linkl?
send the link
ok
1 sec
here
i have alot of mods on the server btw
[23Aug2023 20:01:34.077] [Server thread/WARN] [net.minecraft.server.dedicated.DedicatedServer/]: ** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
[23Aug2023 20:01:34.077] [Server thread/WARN] [net.minecraft.server.dedicated.DedicatedServer/]: The server will make no attempt to authenticate usernames.
!offline
huh??
why is online-mode set to false
cuz some of my friends are on sklauncher
-.-
then this applies
we dont help offline-mode servers
ohh ok then ill just make it online'
will it work if i make it online?
hello?
probably still not gonna work
then how?
we just dont help offline-mode servers, and even if u go online-mode ur gonna turn it off again to let ur friends play
piracy is piracy
i play in normal minecraft tho
doesnt matter what U play or if U own the game
ur letting ur friends who are pirating the game join ur server
Tell them to buy the game. We don't support piracy here.
they said it was ok and to me to set the online mode to false
ok there are alot of people that have minecraft anyway
That is allowing them to play without buying the game.
Which is piracy and not supported here
ok im sorry i didn't know
then how do i fix it?
without offline mode?
hello?
Idk if it's because I'm tired or my head's hurting but these logs are messy
Are you 100% sure your server and client mods match
Because they're copied from the console, not the latest.log file. They didn't get formatted right in mclogs
Oh my god
@Elite_X there's a folder called logs in your server
When sharing logs you're supposed to get the latest.log
And drop it to the website we shared to you
This worsens my headache 😣
Please be 100% sure
Obviously do not get client side mods in the server
If still doesn't work
!binary
Binary search your plugins
Remove half of your non-essential (ie not things like PAPI or LuckPerm) plugins and see if the problem is fixed.
If it still persists, the cause is in the half still installed.
Continue to halve the remaining plugins until you've narrowed it down to a single plugin.
Congratulations, you found the culprit.

Admincraft Canned Responses
Most people are going to not help after finding you're hosting a pirated server, even after "turning it online mode".
If you're willing to host it like that, and understand why you're doing it, there's no reason for us to believe that you won't just... Turn it back off after.
Because you certainly do understand "why" it was done in the first place.
And it has got modpack support iirc
And Ms login
I mean
They're not using tl
Trust me bro I turned over a new leaf. 100%.
Just buy the game & as an extra use a cool launcher like prismlauncher
yes they do i triple checked
i know bruh i have the money and my dad also said he will get it but he doesn't have the credit cart they support so he said he'll ask his colleagues so thats why it on offline mode
it said latest log at the buttom of the folder so is this the right one??
let me know if this helps
Thought you said you were hosting it legit now?
this was the one from yesterday
i havent started it yet today
Lol.
Try reading your disconnect error in the logs.
yeah sorry about that i was not at my house and i told my cousin who was there to just the most resent file send it to this channel lol
ok but idk what to do
What does the disconnect error say?
1 sec
So you didn't read it you just said you didn't know what to do?
yeah idk about the logs stuff
You want people to help you but you quite literally haven't done anything to help yourself.
Not even read!
like i said idk what to do im not an expert at this
Read the error!
ok
Start with the easy things, reading
but there are alot of errors idk which to look at
You'll be shocked how easy it is when you read
but where????? in which error
You're hosting a cracked server. If you're willing to support piracy you should be willing to do the work for your server.
You're not going to be spoon fed the answers. Take the time to read through the logs yourself.
The error in the logs will tell you EXACTLY what the problem is.
In plain English.
i told u it was the log from yesterday
Yeah and I told you that this means nothing to me.
.
.
i am seeing the logs and i dont know wrong and what's not wrong
I told you exactly what errors to look for. Maybe try ctrl+f the individual words I said in the message.
ohhh thx i didn't know about this let me check now
is this the problem?
[23Aug2023 21:56:23.813] [Server thread/ERROR] [com.sk89q.worldedit.util.eventbus.EventBus/]: Could not dispatch event: com.sk89q.worldedit.event.platform.PlatformReadyEvent@596f988a to handler EventHandler{priority=NORMAL}
java.lang.reflect.InvocationTargetException: null
at com.sk89q.worldedit.util.eventbus.EventHandler.handleEvent(EventHandler.java:75) ~[worldedit-mod-7.2.12.jar%23507!/:?]
at com.sk89q.worldedit.util.eventbus.EventBus.dispatch(EventBus.java:193) ~[worldedit-mod-7.2.12.jar%23507!/:?]
at com.sk89q.worldedit.util.eventbus.EventBus.post(EventBus.java:181) ~[worldedit-mod-7.2.12.jar%23507!/:?]
at com.sk89q.worldedit.forge.ForgeWorldEdit.serverStarted(ForgeWorldEdit.java:259) ~[worldedit-mod-7.2.12.jar%23507!/:?]
at com.sk89q.worldedit.forge.__ForgeWorldEdit_serverStarted_ServerStartedEvent.invoke(.dynamic) ~[worldedit-mod-7.2.12.jar%23507!/:?]
at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:73) ~[eventbus-6.0.3.jar%2351!/:?]
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:315) ~[eventbus-6.0.3.jar%2351!/:?]
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:296) ~[eventbus-6.0.3.jar%2351!/:?]
at net.minecraftforge.server.ServerLifecycleHooks.handleServerStarted(ServerLifecycleHooks.java:109) ~[forge-1.19.2-43.2.21-universal.jar%23520!/:?]
at net.minecraft.server.MinecraftServer.m130011(MinecraftServer.java:629) ~[server-1.19.2-20220805.130853-srg.jar%23515!/:?]
at net.minecraft.server.MinecraftServer.m206580(MinecraftServer.java:244) ~[server-1.19.2-20220805.130853-srg.jar%23515!/:?]
at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: java.lang.ClassCastException: class com.sk89q.worldedit.util.Direction cannot be cast to class java.lang.String (com.sk89q.worldedit.util.Direction is in module [email protected]+6240-87f4ae1 of loader 'TRANSFORMER' @2be818da; java.lang.String is in module java.base of loader 'bootstrap')
Does that tell you what to do in plain English
no
If you read it and don't immediately understand it, skip to the next line.
bruh like i said im not good at reading logs😑
i did
Try it again
ok
[23Aug2023 21:56:01.518] [Worker-Main-10/ERROR] [net.minecraft.tags.TagLoader/]: Couldn't load tag [themissingvillages:large/bamboo_village (from themissingvillages-2.0.0-1.19.2.jar), themissingvillages:medium/bamboo_village (from themissingvillages-2.0.0-1.19.2.jar), themissingvillages:small/bamboo_village (from themissingvillages-2.0.0-1.19.2.jar)] as it is missing following references: themissingvillages:large/bamboo_village (from themissingvillages-2.0.0-1.19.2.jar),
themissingvillages:medium/bamboo_village (from themissingvillages-2.0.0-1.19.2.jar),
themissingvillages:small/bamboo_village (from themissingvillages-2.0.0-1.19.2.jar)
[23Aug2023 21:56:01.519] [Worker-Main-10/ERROR] [net.minecraft.tags.TagLoader/]: Couldn't load tag [minecraft:village (from unstructured-0.5.6-FORGE.jar)] as it is missing following references: minecraft:village (from unstructured-0.5.6-FORGE.jar)
[23Aug2023 21:56:01.520] [Worker-Main-10/ERROR] [net.minecraft.tags.TagLoader/]: Couldn't load tag [themissingvillages:large_village (from themissingvillages-2.0.0-1.19.2.jar), themissingvillages:medium_village (from themissingvillages-2.0.0-1.19.2.jar), themissingvillages:small_village (from themissingvillages-2.0.0-1.19.2.jar)] as it is missing following references: themissingvillages:large_village (from themissingvillages-2.0.0-1.19.2.jar),
themissingvillages:medium_village (from themissingvillages-2.0.0-1.19.2.jar),
themissingvillages:small_village (from themissingvillages-2.0.0-1.19.2.jar)
No.
.
these say that they couldn't load tag is the mods mentioned here the problum?
ok
I told you what to look for.
yeah i thoiught the "couldn't load tag" was enough
How is that anything about players disconnecting?
ohh right my bad
im not feeling very well so forgive me lol
Well take the time to read ALL OF IT. before sending anything else in here.
Take your time.
ok
[23Aug2023 21:56:23.813] [Server thread/ERROR] [com.sk89q.worldedit.util.eventbus.EventBus/]: Could not dispatch event: com.sk89q.worldedit.event.platform.PlatformReadyEvent@596f988a to handler EventHandler{priority=NORMAL}
java.lang.reflect.InvocationTargetException: null
at com.sk89q.worldedit.util.eventbus.EventHandler.handleEvent(EventHandler.java:75) ~[worldedit-mod-7.2.12.jar%23507!/:?]
at com.sk89q.worldedit.util.eventbus.EventBus.dispatch(EventBus.java:193) ~[worldedit-mod-7.2.12.jar%23507!/:?]
at com.sk89q.worldedit.util.eventbus.EventBus.post(EventBus.java:181) ~[worldedit-mod-7.2.12.jar%23507!/:?]
at com.sk89q.worldedit.forge.ForgeWorldEdit.serverStarted(ForgeWorldEdit.java:259) ~[worldedit-mod-7.2.12.jar%23507!/:?]
at com.sk89q.worldedit.forge.__ForgeWorldEdit_serverStarted_ServerStartedEvent.invoke(.dynamic) ~[worldedit-mod-7.2.12.jar%23507!/:?]
at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:73) ~[eventbus-6.0.3.jar%2351!/:?]
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:315) ~[eventbus-6.0.3.jar%2351!/:?]
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:296) ~[eventbus-6.0.3.jar%2351!/:?]
at net.minecraftforge.server.ServerLifecycleHooks.handleServerStarted(ServerLifecycleHooks.java:109) ~[forge-1.19.2-43.2.21-universal.jar%23520!/:?]
at net.minecraft.server.MinecraftServer.m130011(MinecraftServer.java:629) ~[server-1.19.2-20220805.130853-srg.jar%23515!/:?]
at net.minecraft.server.MinecraftServer.m206580(MinecraftServer.java:244) ~[server-1.19.2-20220805.130853-srg.jar%23515!/:?]
at java.lang.Thread.run(Thread.java:833) [?:?]
this is the last error i saw
and i also found this
[24Aug2023 16:37:02.746] [Server thread/WARN] [net.minecraft.network.syncher.SynchedEntityData/]: defineId called for: class net.minecraft.world.entity.player.Player from class tschipp.carryon.common.carry.CarryOnDataManager
[24Aug2023 16:37:02.825] [Server thread/INFO] [net.minecraftforge.common.AdvancementLoadFix/]: Using new advancement loading for net.minecraft.server.PlayerAdvancements@365230b4
[24Aug2023 16:37:02.874] [Server thread/INFO] [net.minecraft.server.players.PlayerList/]: Elite_X[/127.0.0.1:54959] logged in with entity id 1922 at (-34.99580056496939, 97.33555240563524, 68.96776892292118)
[24Aug2023 16:37:03.004] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Elite_X joined the game
[24Aug2023 16:37:03.132] [Server thread/INFO] [APTweaks(Player)/]: Player Elite_X ServerPlayer['Elite_X'/1922, l='ServerLevel[world]', x=-35.00, y=97.34, z=68.97] logged in and will be protected for 90 secs.
[24Aug2023 16:37:03.160] [Server thread/INFO] [net.minecraft.server.network.ServerGamePacketListenerImpl/]: Elite_X lost connection: Disconnected
[24Aug2023 16:37:03.160] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Elite_X left the game
[24Aug2023 16:37:03.181] [Server thread/WARN] [net.minecraft.network.Connection/]: handleDisconnection() called twice
[24Aug2023 16:37:14.145] [Server thread/INFO] [net.minecraftforge.common.AdvancementLoadFix/]: Using new advancement loading for net.minecraft.server.PlayerAdvancements@5e5252b7
[24Aug2023 16:37:14.159] [Server thread/INFO] [net.minecraft.server.players.PlayerList/]: Elite_X[/127.0.0.1:54971] logged in with entity id 2151 at (-34.99580056496939, 97.33555240563524, 68.96776892292118)
[24Aug2023 16:37:14.181] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Elite_X joined the game
[24Aug2023 16:37:14.212] [Server thread/INFO] [APTweaks(Player)/]: Player Elite_X ServerPlayer['Elite_X'/2151, l='ServerLevel[world]', x=-35.00, y=97.34, z=68.97] logged in and will be protected for 90 secs.
[24Aug2023 16:37:14.292] [Server thread/INFO] [net.minecraft.server.network.ServerGamePacketListenerImpl/]: Elite_X lost connection: Disconnected
[24Aug2023 16:37:14.293] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Elite_X left the game
this is the only thing i found about connecting and disconnecting in the server
You're not even looking at the same log file that you sent.
yes cuz the one i was looking at before didnt have the player logging in so i found another one which had it
hello?