Skip to content

Serverside connection error - java.io.IOException: Bad packet id 22 #45

@Pokechu22

Description

@Pokechu22

I've got a local server which I use for testing and bukkit plugin development. When I connect, I often get this error (in the server console):

[15:20:07 INFO]: TestUser lost connection: Internal Exception: net.minecraft.util.io.netty.handler.codec.DecoderException: java.io.IOException: Bad packet id 22

In the client, it doesn't display anything. That includes the server connection welcome message. If I try to execute a command, nothing happens the first time, and then on the second time I get the text Connection has been lost..

CraftBukkit version string:
[15:26:00 INFO]: This server is running CraftBukkit version git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks (MC: 1.7.9) (Implementing API version 1.7.9-R0.2)
[15:26:01 WARN]: Could not get information about this CraftBukkit version; perhaps you are running a custom one?: IOException

This only seems to happen to the first player to join the server. If I connect to the server, then close the client, then connect again (with the same username), it joins fine, as does using /reco.

Switching users does cause an issue, but it allows joining fine - When disconnecting, I get this:

[15:34:47 INFO]: TestUser lost connection: Internal Exception: net.minecraft.util.io.netty.handler.codec.DecoderException: java.io.IOException: Bad packet id 64

Here's some snippets from logs:

Snippet 1 - General issue

Serverside

[15:20:07 INFO]: TestUser[/0:0:0:0:0:0:0:1:50554] logged in with entity id 474 a
t ([skyworld] 8.0, 119.0, 118.0)
[15:20:07 INFO]: TestUser lost connection: Internal Exception: net.minecraft.uti
l.io.netty.handler.codec.DecoderException: java.io.IOException: Bad packet id 22

[15:20:07 INFO]: Removing player from memory: TestUser
[15:20:07 INFO]: TestUser left the game.
[15:20:16 INFO]: Loaded player file for TestUser
[15:20:16 INFO]: TestUser[/0:0:0:0:0:0:0:1:50559] logged in with entity id 475 a
t ([skyworld] 8.0, 119.0, 118.0)

Clientside

Console Client for MC 1.7.2 to 1.7.9 - v1.7.3 - By ORelio & Contributors
Username : TestUser
Password : <******>
You chose to run in offline mode.
Success. (session ID: 0)
Server IP : localhost
Retrieving Server Info...
Server version : CraftBukkit 1.7.9 (protocol v5).
Translations file loaded.
Version is supported.
Logging in...
Server is in offline mode.
Server was successfully joined.
Type '/quit' to leave the server.
>/reco
Restarting Minecraft Console Client...
You chose to run in offline mode.
Success. (session ID: 0)
Retrieving Server Info...
Server version : CraftBukkit 1.7.9 (protocol v5).
Version is supported.
Logging in...
Login rejected by Server :
Connection throttled! Please wait before reconnecting.
Login failed.
/reco
Restarting Minecraft Console Client...
You chose to run in offline mode.
Success. (session ID: 0)
Retrieving Server Info...
Server version : CraftBukkit 1.7.9 (protocol v5).
Version is supported.
Logging in...
Server is in offline mode.
Server was successfully joined.
Type '/quit' to leave the server.
TestUser joined the game.
Welcome, TestUser!
Type /help for a list of commands.
Type /list to see who else is online.
Players online: 1 - World time: 3:51 AM
You have no new mail.
>

Snippet 2 - Using commands

Serverside

I did not record serverside logs for this instance

Clientside

Console Client for MC 1.7.2 to 1.7.9 - v1.7.3 - By ORelio & Contributors
Username : TestUser
Password : <******>
You chose to run in offline mode.
Success. (session ID: 0)
Server IP : localhost
Retrieving Server Info...
Server version : CraftBukkit 1.7.9 (protocol v5).
Translations file loaded.
Version is supported.
Logging in...
Server is in offline mode.
Server was successfully joined.
Type '/quit' to leave the server.
>/help
>/help
Connection has been lost.
/reco
Restarting Minecraft Console Client...
You chose to run in offline mode.
Success. (session ID: 0)
Retrieving Server Info...
Server version : CraftBukkit 1.7.9 (protocol v5).
Version is supported.
Logging in...
Server is in offline mode.
Server was successfully joined.
Type '/quit' to leave the server.
TestUser joined the game.
Welcome, TestUser!
Type /help for a list of commands.
Type /list to see who else is online.
Players online: 1 - World time: 10:30 AM
You have no new mail.
>

Snippet 3 - Switching Users

Serverside

[15:34:22 INFO]: Loaded player file for pokechu22
[15:34:23 INFO]: pokechu22[/0:0:0:0:0:0:0:1:50802] logged in with entity id 441
at ([skyworld] -28.666453722079936, 126.48908861246204, 116.5253485127625)
[15:34:23 INFO]: pokechu22 lost connection: Internal Exception: net.minecraft.ut
il.io.netty.handler.codec.DecoderException: java.io.IOException: Bad packet id 2
2
[15:34:23 INFO]: Removing player from memory: pokechu22
[15:34:23 INFO]: pokechu22 left the game.
[15:34:39 INFO]: Loaded player file for TestUser
[15:34:39 INFO]: TestUser[/0:0:0:0:0:0:0:1:50804] logged in with entity id 442 a
t ([skyworld] 8.0, 119.0, 118.0)
[15:34:45 INFO]: <TestUser> Hello.
[15:34:47 INFO]: TestUser lost connection: Internal Exception: net.minecraft.uti
l.io.netty.handler.codec.DecoderException: java.io.IOException: Bad packet id 64

[15:34:47 INFO]: Removing player from memory: TestUser
[15:34:48 INFO]: TestUser left the game.

Clientside

I did not record clientside logs for this instance. But nothing unusual was shown.


As a side note, bukkit is unavailable due to a DCMA Takedown. I also haven't tested this with a vanilla server. Vanilla clients connect to my server fine. The server is in offline mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions