EsotericSoftware / kryonet

TCP/UDP client/server library for Java, based on Kryo
BSD 3-Clause "New" or "Revised" License
1.81k stars 415 forks source link

Buffer underflow. Error #122

Open DevCubeHD opened 7 years ago

DevCubeHD commented 7 years ago

Anyway I have 2 similar clients but get an error on the second one.

Server: http://hastebin.com/iqiwuzukif.sql Client 1 (Works): http://hastebin.com/gukidequfi.vbs Client 2 (Error): http://hastebin.com/pupefoqeja.md

Codes: Client 1 (Works): http://hastebin.com/jadawuzava.vbs Client 2 (Error): http://hastebin.com/cuvuheyena.vbs

There is a small difference: Client 1: Java Application Client 2: Spigot Plugin (https://www.spigotmc.org/), Modded Server Software for Minecraft Servers (dont tell me a kid ;))

Im very thankful for any answer! <3

DevCubeHD commented 7 years ago

... nice support

DevCubeHD commented 7 years ago

@NathanSweet

crehop commented 7 years ago

your packet class have a default constructor? (even if not used) it must have default constructor or it wont work also make sure packet classes are exactly the same on client and server..