When trying to join a server with the new snapshot/launcher minecraft returns a nullpointerexception and the server states end of stream
Steps to reproduce:
Enter
/scoreboard objectives add Health health
Enter
/scoreboard objectives setdisplay belowName Health
Leave the world
Join the world
Related issues
is duplicated by
Attachments
Comments

I have the exact same problem. People could connect to my server fine in updates 1.5.1 and before, but on 13w16a no one can connect! My server is run on OS X 10.8.3 with Apple Java 7. I tryed downgrading to Apple Java 6, but it didn't fix anything. I get the following messages in the server log:
2013-04-18 17:56:51 [INFO] Starting minecraft server version 13w16a
2013-04-18 17:56:51 [INFO] Loading properties
2013-04-18 17:56:51 [INFO] Default game type: SURVIVAL
2013-04-18 17:56:51 [INFO] Generating keypair
2013-04-18 17:56:52 [INFO] Starting Minecraft server on 192.168.2.35:25565
2013-04-18 17:56:52 [INFO] Preparing level "Pangaea XLV"
2013-04-18 17:56:52 [INFO] Preparing start region for level 0
2013-04-18 17:56:53 [INFO] Preparing spawn area: 80%
2013-04-18 17:56:53 [INFO] Done (1.465s)! For help, type "help" or "?"
2013-04-18 17:57:32 [SEVERE] Reached end of stream
2013-04-18 17:57:39 [INFO] Swiftykitty2K[/192.168.2.35:55043] logged in with entity id 491 at (-1902.7971640969888, 63.0, 580.3103940038204)
2013-04-18 17:57:39 [INFO] Disconnecting Swiftykitty2K [/192.168.2.35:55043]: Internal server error
2013-04-18 17:57:39 [WARNING] Failed to handle packet for Swiftykitty2K [/192.168.2.35:55043]: u: Sending packet
u: Sending packet
at jj.b(SourceFile:443)
at gw.a(SourceFile:122)
at gw.a(SourceFile:77)
at jh.d(SourceFile:161)
at jh.c(SourceFile:53)
at ih.a(SourceFile:44)
at ig.b(SourceFile:29)
at net.minecraft.server.MinecraftServer.r(SourceFile:488)
at ib.r(SourceFile:258)
at net.minecraft.server.MinecraftServer.q(SourceFile:405)
at net.minecraft.server.MinecraftServer.run(SourceFile:339)
at gr.run(SourceFile:582)
Caused by: java.lang.NullPointerException
at fh.a(SourceFile:66)
at ck.a(SourceFile:159)
at jj.b(SourceFile:426)
... 11 more
2013-04-18 17:57:39 [SEVERE] Reached end of stream
2013-04-18 17:57:41 [SEVERE] Reached end of stream
2013-04-18 17:57:53 [INFO] Swiftykitty2K[/192.168.2.35:55050] logged in with entity id 492 at (-1902.7971640969888, 63.0, 580.3103940038204)
2013-04-18 17:57:53 [INFO] Disconnecting Swiftykitty2K [/192.168.2.35:55050]: Internal server error
2013-04-18 17:57:53 [WARNING] Failed to handle packet for Swiftykitty2K [/192.168.2.35:55050]: u: Sending packet
u: Sending packet
at jj.b(SourceFile:443)
at gw.a(SourceFile:122)
at gw.a(SourceFile:77)
at jh.d(SourceFile:161)
at jh.c(SourceFile:53)
at ih.a(SourceFile:44)
at ig.b(SourceFile:29)
at net.minecraft.server.MinecraftServer.r(SourceFile:488)
at ib.r(SourceFile:258)
at net.minecraft.server.MinecraftServer.q(SourceFile:405)
at net.minecraft.server.MinecraftServer.run(SourceFile:339)
at gr.run(SourceFile:582)
Caused by: java.lang.NullPointerException
at fh.a(SourceFile:66)
at ck.a(SourceFile:159)
at jj.b(SourceFile:426)
... 11 more
2013-04-18 17:57:53 [SEVERE] Reached end of stream
2013-04-18 17:57:55 [SEVERE] Reached end of stream
2013-04-18 17:57:56 [INFO] Swiftykitty2K[/192.168.2.35:55055] logged in with entity id 493 at (-1902.7971640969888, 63.0, 580.3103940038204)
2013-04-18 17:57:56 [INFO] Disconnecting Swiftykitty2K [/192.168.2.35:55055]: Internal server error
2013-04-18 17:57:56 [WARNING] Failed to handle packet for Swiftykitty2K [/192.168.2.35:55055]: u: Sending packet
u: Sending packet
at jj.b(SourceFile:443)
at gw.a(SourceFile:122)
at gw.a(SourceFile:77)
at jh.d(SourceFile:161)
at jh.c(SourceFile:53)
at ih.a(SourceFile:44)
at ig.b(SourceFile:29)
at net.minecraft.server.MinecraftServer.r(SourceFile:488)
at ib.r(SourceFile:258)
at net.minecraft.server.MinecraftServer.q(SourceFile:405)
at net.minecraft.server.MinecraftServer.run(SourceFile:339)
at gr.run(SourceFile:582)
Caused by: java.lang.NullPointerException
at fh.a(SourceFile:66)
at ck.a(SourceFile:159)
at jj.b(SourceFile:426)
... 11 more
2013-04-18 17:57:56 [SEVERE] Reached end of stream
2013-04-18 17:57:57 [SEVERE] Reached end of stream
2013-04-18 17:58:07 [INFO] Stopping server
2013-04-18 17:58:07 [INFO] Saving players
2013-04-18 17:58:07 [INFO] Saving worlds
2013-04-18 17:58:07 [INFO] Closing listening thread
2013-04-18 17:58:07 [INFO] Saving chunks for level 'Pangaea XLV'/Overworld
2013-04-18 17:58:07 [INFO] Saving chunks for level 'Pangaea XLV'/Nether
2013-04-18 17:58:07 [INFO] Saving chunks for level 'Pangaea XLV'/The End
Server log where NullPointerException is found.
I have narrowed the problem somewhat. The issue creating the end of stream in located in the world folder, something with loading pre1.5.1 worlds to 13w16a. To clear this up, my server world was created in weekly snapshot 12w38b and has used every single release, both official and snapshot, since that release, if it makes any difference.
I can confirm for 13w18b.
EDIT: I believe that the issue directly relates to the idcounts file in the resources folder. When I deleted the idcounts file in the resource folder in world, DIM1 and DIM-1 players can connect just fine.
EDIT2: This doesn't work for some people. More investigating is taking place.
I tried to delete the idcounts file, but there was only one. Assuming you're running something other than Windows, because there isn't a resources folder. Issue persists.
Derp. I meant the idcounts in the DATA folder. Back up before you attempt, but it works for me when I delete [world name]>data>idcounts, [world name]>DIM1>data>idcounts and [world name]>DIM-1>data>idcounts. Sorry.
Hm. I actually don't have idcounts files in the DIM1 and DIM-1 folders. Odd.
Has anyone been to the Nether or the End on your server? Just in case you didn't know, DIM1=Nether and DIM-1=End. 🙂
Yes, we've been to the Nether extensively, but not the End. In any case, there's no idcounts file in either place.
Odd. Well anyways, after backing up your world, try deleting the idcounts folder that you found and tell me if it fixes it! If it doesn't then I did something else that fixed it. :3
yeah, deleting the only idcounts file I could find had no measurable effect. Same errors.
Performing more research. I shall inform you when I figure out the problem.
Attn Dinnerbone: Issue has NOT been resolved. Attempted to run server with new 18c server executable, still refusing connections with "End of Stream"
Reopened.
Deleting the world/data/scoreboard.dat file like Chili Fries suggested worked for me also. Seems like he has located the problem.
Chili Fries is correct, the issue is related to the scoreboard, in particular the health objective type. After the snapshots not working at all for me due to this issue, I removed my health objective and upgraded the server; alas, it works fine now.
Can also confirm it occurs when the display is set to the sidebar
not just for Health. There's something more general.
+ ooo yay db is workin on it

Confirmed for snapshot 13w23b.

Did some quick testing, and I can confirm this is fixed in 13w24a!
Thanks Dinnerbone!