mojira.dev
MC-13628

SMP/LAN: NPE when right clicking horses

Right clicking a horse with nothing in your hand will get you kicked from the server with an NPE internal server error and you are unable to join again without deleting your player file. No errors appear in the server console.

This is a log of logging in, right clicking the horse, and being kicked.

2013-04-18 20:57:27 [INFO] BranicYeti[<IP REMOVED>] logged in with entity id 23523 at (-205.87881043889624, 69.7000000178814, 147.77642677834177)
2013-04-18 20:57:27 [SEVERE] Reached end of stream
2013-04-18 20:57:27 [INFO] BranicYeti lost connection: disconnect.endOfStream
removing player mount

Related issues

MC-13882 Crash on server and can't rejoin MC-13886 Horses crash client in SMP and players cannot log in MC-13890 Horse Crash MC-13963 server bug MC-13966 Horses SMP MC-13971 Horses MC-13973 multiplayer hourses MC-13987 client crash when trying to tame a horse in mulitplayer MC-14000 Server - Disconnect when started riding a horse. MC-14008 13w16a multiplayer horses MC-14017 LAN logout MC-14022 Horse riding MC-14027 13w16a LAN Problem MC-14029 Server crash with 13w16a MC-14045 Disconnected from server when trying to ride a horse MC-14054 When you are playing a LAN game, when someone joins, and ride a horse, they disconnect automatically MC-14058 SMP- horse riding bug MC-14059 Can't ride horses in multiplayer MC-14078 Riding on a horse on a server crashes Minecraft MC-14136 Horse Preventing server joining. MC-14154 Horse crash MC-14161 Server- Cannot ride horses (Creates end of stream in player file) MC-14164 NPE when trying to ride horse MC-14181 Cant ride on hourses in MP MC-14183 Cant Ride Horses In Multiplayer MC-14185 Server/world crashes in multiplayer when riding a horse MC-14186 Lan bug and server bug MC-14193 Horses MC-14211 Horse Riding MC-14217 Multiplayer: riding a horse glitches a player MC-14222 13w16a Server item in hand bug MC-14225 On my server I tired to ride a horse but it crashed. MC-14236 Horses glitch MC-14237 Crash when on horse in LAN MC-14244 Cannot ride Horse on LAN MC-14261 Multiplayer Horse Bug MC-14266 Bug in multiplayer MC-14292 LAN horse riding bug MC-14297 Horses MC-14306 When trying to ride a horse on a multiplayer server, it crashes MC-14315 On LAN server, friend couldnt properly mount horse MC-14318 Mount MC-14346 Null Pointer Exception mounting horse MC-14347 I dont know MC-14348 Server crashes whe mount a horse or minecart MC-14357 Cant ride on LAN-worlds MC-14373 crash when guest ride horses in open to LAN MC-14381 server bug, imposible to get on a horse in muliplayer. MC-14397 Null Pointer Exception Error-MC Server MC-14416 NullPointerException when taming horse in multiplayer MC-14420 crash in multiplayer with horses MC-14431 Unable to join 13w16a servers MC-14433 Horse Bug MC-14437 when ever i try to get on a hors on my server it sais this: connection lost Internal exeption: java.lang.NullPointerExpeption MC-14448 Null point error when attempting to ride entity on SERVER. MC-14455 Server Crashes When mounting horse SMP MC-14472 "Horses" MC-14474 multiplayer bug MC-14484 Riding Horses, Donkeys, and Mules on a server MC-14490 Multiplayer hosres crash when mounted MC-14500 Multiplayer Horses MC-14550 Riding horse crashes client MC-14792 Multipalyer Horse Rideing MC-13875 Horse bug MC-13876 Horse server issue. MC-13636 Null pointer after trying to ride dying horse MC-13639 Crash when riding horses MC-13650 Horse taming on SMP MC-13655 Server/client crash when attempting to ride horse without saddle MC-13664 Horse - Right clicking Horse removes player from game (Server) MC-13669 Client crash when riding on horses (on server) MC-13671 Riding tamed horses, LAN server kicking and horses duplicating MC-13681 Crash when riding a horse on a server MC-13696 Server kicks you for getting on a horse MC-13699 Null pointer exception when riding a horse in MP MC-13735 Cannot ride horses in multiplayer - You get kicked MC-13736 Kicked in multiplayer riding horses MC-13742 server crash MC-13758 13w16a Horse issue on servers MC-13767 Horses are glitched on servers. When you try to ride them, you get disconnected (Internal exception: java.land.NullPointerException) MC-13777 Server Issue MC-13779 with a LAN server when another player gets on a horse they are kicked off the server. MC-13781 Multiplayer When trying to ride horse on multiplayer the client crashes MC-13783 horses corrupt player data MC-13789 Right click horse crashes server MC-13826 Server Kicks Me From Riding An Untamed Hrose MC-13831 other players duplicate horses on lan MC-13838 SMP Mounting Horse NPE MC-13848 Server Problems MC-13858 Connection Lost (NullPointerException) after spawning horse MC-13865 LAN CRASH MC-13867 Cannot get on a horse in multiplayer without disconnecting

Comments

Nelson Santos

Same issue

Trent Nunofyobusiness

I actually had the issue with boats and minecarts too, so it's probably any rideable thing.

Ryan Yodie

Same issue... This is a bit, major.

[Crispy] PokeCanada

Confirmed. I don't like this. 😞

cheetah

Had this problem too

Four AM

Confirmed, although I didn't see this until my ticket was closed duplicate. Here is my summary in case extra info is helpful:
--------

Bug occurs in both game modes. Player spawned Horse using Spawn Egg in creative, then attempted to right-click to mount. Client disconnects with error Java.lang.NullPointerException; server reports:

2013-04-18 21:28:11 INFO 4am/108.34.217.76:1024 logged in with entity id 1551 at (212.62373750401767, 66.7000000178814, 305.9407252902083)
2013-04-18 21:28:11 SEVERE Reached end of stream
2013-04-18 21:28:12 INFO 4am lost connection: disconnect.endOfStream
2013-04-18 21:29:24 SEVERE Reached end of stream

no stacktraces or errors are generated, it seems like bad entity info is written to the map, because players cannot log back in once this happens.

Attempted in both Creative and Survival.
Process:
(fresh map, vanilla 13w16a server, all brand new and clean)
1. Creative player named a Horse spawn egg using an anvil, then attempted to mount. Client kicked with NPE, did not crash. Player could not log back in.
2. 2nd player (logged in this whole time) spawned horse in creative mode (did NOT name using anvil), changed /gamemode 0, then attempted to mount. Same result.

Neither player experinced crash in SSP.

Morsinius

Same issue an I hope this is addressed. It's major.

Michael Luyten

Replicated issue on SSP Open to Lan.

Player 1 (Host) is able to ride horses, however Player 2 (Client) is unable to and is unable to join server until their player datafile is deleted.

crazyman

I don't have this kind of issues, but I get Internal Server Error sometime :O

Michael Luyten

@crazyman are you playing single player or multiplayer?

crazyman

@Michael Luyten Sinleplayer creative..

zanginator

Would also like to note that, the horse that was mounted gets duplicated each time the user tries to reconnect.

Michael Luyten

@crazyman It's not real clear by the top of the job but this error relates to SMP Server Multiplayer and LAN Multiplayer based games only, Single Player works fine

caRJ33

Same happends with boats

Pete Nawara

Same issue running a multiplayer server.

Mac 10.8.3
snapshot 13w16a

server port changed to 25567 (not sure why, if it all, that would matter)

Here's my rundown... hope it helps!

Client> 2013-04-19 08:27:21 [CLIENT] [INFO] [CHAT] §7§o[Server: Opped gorganzoliator]
Client> 2013-04-19 08:27:30 [CLIENT] [INFO] [CHAT] Your game mode has been updated
Client> Creating hgr
Client> Creating hcrbdo
Client> Creating hgrwmo
Client> Creating hch
Client> Creating hbr
Client> Creating hblwdo
Client> Creating hcr
Client> java.lang.NullPointerException
Client> at ek.n(SourceFile:174)
Client> at ck.a(SourceFile:237)
Client> at ck.a(SourceFile:225)
Client> at ck.h(SourceFile:175)
Client> at ck.d(SourceFile:16)
Client> at cm.run(SourceFile:115)
Client> java.io.FileNotFoundException: http://assets.minecraft.net/1_6_has_been_released.flag
Client> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1434)
Client> at kq.a(SourceFile:237)
Client> at bhq.run(SourceFile:114)
Client> at java.lang.Thread.run(Thread.java:680)

Michael Luyten

Ok guys just confirmed the same error when using:
-Boats
-Minecarts
-Saddle on Pig
-Horses
Anything that you "Ride" will fail

Nuxas

A workaround is to block the AttachEntity and EntityMetadata

Jack Crofts

This happens too on a LAN world

Jasper Davis

I found that rather than deleting my player.dat file, I type into the server console "/tp <my player name> <friend's player name>" and I hit enter on that as soon as I click login. It appears to break the cycle and allows me to continue playing.

Still cannot ride a horse though.

Jasper Davis

@Nuxas,

How does one go about blocking the AttachEntity and EntityMetadata?

Aled Thomas

this is a very big problem it need to be fixed in next snapshot so vote up!

Vrej

Same here, I believe they will fix it in the next snapshot.

Daan Panis

Happens with boats too

SullyTheUnusual

Happens with boats and horses, both SMP and SP. Please fix!

Dennis Eichardt

Confirmed for horses and boats here. Can't re-login after that.

Vrej

Anyone try this with minecarts or saddled pigs?

[Crispy] PokeCanada

Yes. Both give a NPE.

Anon Ymus
sascha böwes

same with minecarts

Dylan Rivers

Same for me, really annoying

Rickard Ã…berg

Same here, I right clicked my mule and now I can't connect anymore.
I guess I need to go back to 1.5.1 to fix it.

Josh Watson

same issue here - in dev launcher i got an error that said something about 1_6 has not been released yet.flag

if that helps at all
setup is windows 8 desktop
and mc server running on ubuntu 12.04

SullyTheUnusual

You don't need to go back to 1.5.1 to fix it. Just NBT edit your player.dat file and delete the "Riding" group of tags, and avoid getting in/on any vehicles until they fix it (which should have happened already imo, wth?)

joseph jones

must be a difficult bug to sniff out.... and squash.

Nelson Santos

Or the fact that bugs only get fixed in snapshots, and they are in no rush to fix it because its only a snapshot and not an ACTUAL update?

Bien Vincent Balansag

Hope Jeb will fix this in 13w17a

Rickard Ã…berg

So everyone that play multiplayer get this bug? How could they have missed it. 😞

Bien Vincent Balansag

Got this too when taming horses for a horse race by me and my dad

Dennis Eichardt

Confirmed fixed in 13w16b

SullyTheUnusual

This is NOT fixed for me in 13w16b, in SP or SMP.

Nathan Adams

Please provide a crash report so that we can look into it, Sean.

SullyTheUnusual

Here it is: http://pastie.org/7710252

I run a SMP server, and have to NBT edit player.dat files and delete the "riding" group of tags so players can log back in afterward.

Hope that helps!

SullyTheUnusual

Confirmed this is still broken in 13w17a for both SP and SMP. 😞

Crash report: http://pastie.org/7720100

Anon Ymus

First of all, that is a different crash. Secondly, your Java version is out of date. Please update your Java to the latest version: http://www.java.com/en/download/. Keep in mind that when using a 32-bit browser on a 64-bit OS the automatic version detection will only show the 32-bit version of Java, the 64-bit version needs to be downloaded manually: http://www.java.com/en/download/manual.jsp.
Please report if the issue persists with the latest Java version.

James

1.7 is Java 7 mind you anon, its another terminology or something used by oracle to name versions. It is misleading tho.

Anon Ymus

The newest version is update 21, not update 17.

SullyTheUnusual

Different crash or not, the same event is causing it with the same result. I updated Java to 21, no change.

SP Crash: http://pastie.org/7721509
SMP Crash: http://pastie.org/7721507

Tomas Watchorn

now it's fixed will I be able to log into the LAN worlds i was kicked from again?

SullyTheUnusual

bump

It says "resolved", but this issue STILL is not fixed in 13w18c. Is this being looked into? Pretty frustrating that no one on my server can ride a horse without crashing and derping their player file. :/

Rickard Ã…berg

Riding into a Cactus in the desert by mistake made 13w18c crash for me.

Removing the riding section in my <playername>.dat file on the server fixes the issue temporarily.

EDIT:
I was running 13w18a server and 13w18c client, upgrading the server to 13w18c seems to have fixed it.

Jamie Martin

I have a question. In the normal game without a server, I have the issue of not being able to ride horses. I run Win 7 java is up to date and so is the game. I right click a horse with anything and it merely kicks (unless its done with a lead) and then walks off. If this ticket doesn't cover that I can just go make a new bug report but I can't find anyone else with this issue.

Tails

The horse needs to be tamed first. More info on the wiki: http://www.minecraftwiki.net/wiki/Horse#Taming

Lee Watson

Nathan Adams

Confirmed

LAN, horse, internal, kick, npe, server

Snapshot 13w16a

Snapshot 13w16b

Retrieved