Jump to content

[1.15.2] java.io.UTFDataFormatException: malformed input around byte 1


PauGuri2002

Recommended Posts

I've recently made my first mod just as an experiment, to use on a server with some friends. The mod works wonderfully when I test it on IntelliJ and on singleplayer, but when adding it to the server it doesn't let anyone join and shows this error on the client:

Internal Exception: io.netty.handler.codec.DecoderException: io.netty.handler,codec.Encoder.Exception: java.io.UTFDataFormatException: malformed input around byte 1

 

When I used any mod other than mine the error didn't appear.

 

This is the server debug log (it took a while to create a new world cause it's not a very powerful machine, but mods work perfectly on it):

https://pastebin.com/Uv43jbXq

 

And here's the client debug log when I joined the server:

https://pastebin.com/vkD6grRu

 

Has anyone experienced this issue and could point me to what could be wrong on the mod? Thank you!

Edited by PauGuri2002
Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

I know this is somewhat of an older thread however I was wondering if this was ever resolved as i am getting this EXACT same error. It is kind of strange actually that it is literally the same.

 

Here is my latest: https://hastebin.com/oyebubawit.sql

Here is my debug: https://hastebin.com/dehohefudo.md (only took the bottom piece of it where the actual Frozen state happened)

 

As for the reproduction - it is identical to above. It works flawlessly on Singleplayer. Only in the multiplayer environment does this occur. To be honest I wouldn't even know where to look for something like this? I mean are byte issues generally in networking and packet handling? Yes I can show the code as messy as it may currently be if this has indeed not actually been resolved and is still out and about. But I wouldnt even know which sections of the code would cause this to show.

Edited by HalestormXV
Link to comment
Share on other sites

44 minutes ago, HalestormXV said:

I know this is somewhat of an older thread however I was wondering if this was ever resolved as i am getting this EXACT same error. It is kind of strange actually that it is literally the same.

It hasn't been solved! As noone answered I abandoned the project hahhah, but now that you have the same issue we can maybe get someone to help us! 

Edited by PauGuri2002
Link to comment
Share on other sites

33 minutes ago, PauGuri2002 said:

It hasn't been solved! As noone answered I abandoned the project hahhah, but now that you have the same issue we can maybe get someone to help us! 

Here is what I did to get players to be able to join a dedicated server with your mod: I deleted the data folder in the mod's resources. Obviously this is not a viable fix, but it is a hint to what is wrong.

Link to comment
Share on other sites

7 hours ago, vemerion said:

Here is what I did to get players to be able to join a dedicated server with your mod: I deleted the data folder in the mod's resources. Obviously this is not a viable fix, but it is a hint to what is wrong.

You are correct. As terrifying as that is, that method has resolved the issue. However obviously as you state that is not viable as that contains well quite literally everything from recipes to structure gen to tags. So the question now is, what in a data folder could cause that issue.

 

EDIT: After some meticulous removal and debugging it would seem the issue is within custom recipes. Thankfully I only have one custom recipe and this is the root of the problem. As soon as you remove that custom recipe directory you can log into Multiplayer and everything works flawlessly again. I can't understand why that error would be appearing only when attempting to log into the Multiplayer environment though.  For reference I followed this: 

https://www.youtube.com/watch?v=Ri0Mqv_FXA4

 

And here are all the classes that were made/used following this Tutorial.
https://pastebin.com/TbCtDS2T - Init
https://pastebin.com/3VapXLey - Serializer
https://pastebin.com/dkd4gsVa - DustRecipe
https://pastebin.com/G3N5Ynsb - Interface

 

Edited by HalestormXV
Link to comment
Share on other sites

44 minutes ago, diesieben07 said:

read and write in your serializer are not symmetrical.

In read you first read the ingredient then the stack. In write you first write the stack, then the ingredient.

I am legitimately laughing out loud right now, but not the "haha" funny laugh. More like that wow seriously, your kidding nervous laugh. Basically......I rewrote the entire class/whole system from the ground up last night, it has more functionality now and works in Multiplayer Environment, but from what you just said....all I had to do was move a couple of lines. Lmfao *FACEPALM to the umpteenth degree* 

 

Well as always I thank you. And I appreciate the info. Maybe I'll reuse this for an incredibly basic somewhat "non-flexible" machine that is only meant to do incredibly basic single item operations.

Edited by HalestormXV
Link to comment
Share on other sites

  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.