When a spawned in firework is launched the server kicks with End of stream and can not reconnect until entity is despawned.
java.lang.NullPointerException
at ef.a(SourceFile:310)
at mj.a(SourceFile:237)
at mj.a(SourceFile:157)
at et.a(SourceFile:36)
at ef.a(SourceFile:214)
at cg.h(SourceFile:178)
at cg.d(SourceFile:15)
at ci.run(SourceFile:114)
Linked issues
is duplicated by
Attachments
Comments

It only happens on a server and it repeatedly kicks you until the entity is despawned and the console only outputs that.

updated title
Confirmed, just installed 1.4.6pre to try out the fireworks, instant crash upon firing them.
This obviously needs fixing since it's one of the features announced for 1.4.6.
I'm not sure what the title implys but this firework was created with gunpowder/paper.
Crashes with "INFO java.lang.NullPointerException".
The server I'm on has been down for just about 2 days now because of this.
Still shows up in the server list, but trying to connect either gives a communication error or End of Stream.
No idea what the server's saying since I don't own it.
The way you fix it is constantly keep connecting and after about 10-30 connects the entity despawns and it no longer kicks you.
Well, if you can't login the entity won't despawn afaik.
I'm not sure but maybe it wasn't up on launching the fireworks the server crashed, could've been that my friend dropped them from the invenotry to the ground. Still, it's a bad bug.
Or it could be related to this MC-4723
And even if i restart the server, it won't let me connect properly. 😞
Happens for me, too. Crafted a normal rocket (paper + gun powder) - placing it on the ground (using right-click) instantly kicks every player from the server.
I was no longer able to connect until after I tried for the 10th time.
If your server is experiencing issues with the fireworks you can load the map on single player. This will make the firework despawn and will allow you to rejoin the server. If that doesn't work open the world in mcedit and delete the fireworks entity.
Still confirmed in 1.4.6
The server kicks all players on the server with end of stream (not only the one that launched the rocket)
Also launching using dispensers works fine.
I find the same symptoms when launching a crafted firework using a dispenser.
Griefers apparently can use this as a denial-of-service attack 😞
The users client side crashes anyone on a server nearby where the firework is placed. The 3x gunpowder + paper is what method I used. From what information I have gathered, I found out that ANYONE WITHIN 64 blocks will be kicked (including the placer of said firework) and receive the error message "End of Stream".
I created these from scratch AND spawned them using "gamemode 1" environment.
I checked the server.log but there are no useful information there.
*I can log back into the server just fine.
*I'm using a Linux server.
Apparently my problem is related to this so posting MY stack trace. Need to fix this one too while you do this ticket which in my opinion is 2 different issues.
java.lang.NullPointerException
at ayp.a(SourceFile:303)
at azi.j_(SourceFile:74)
at azr.a(SourceFile:51)
at net.minecraft.client.Minecraft.l(SourceFile:1347)
at net.minecraft.client.Minecraft.J(SourceFile:582)
at net.minecraft.client.Minecraft.run(SourceFile:534)
at java.lang.Thread.run(Unknown Source)
Just happened to me on my server, as well.
Confirming this on v1.4.6 final. No error log is generated on either the client or the server. Doesn't kill my server but does disconnect the user with an "End of Stream" error.
Kicks players regardless of whether rocket was launched by hand or dispenser.
This happened on my server as well. I spawned in a blank firework, right click on the ground with it, and myself and the other person on the server nearby were kicked off the server with an End of Stream message. Trying to log back in would give us more end of stream errors or communication errors, as well as a particular java.socket error (didn't manage to copy down which one)
We repeated this twice, and did not want to try it anymore, as it required us both to attempt logging in dozens of times before we could get back on.
This is a horrifying bug, as it allows the server to be swiftly shut down with ill intent or innocent ignorance of this bug.
Yea, everyone get this bug. I'm suprised this wasn't hotfixed.
Like someone mentioned, it can be used as a DoS attack. 😞
This issue seems to be quite serious for server security and stability, I would think the priority would be much higher.
Is there any way to relocate the player without them being logged in? My server keeps me out, but my daughter (in another part of the world) can still log in successfully. A work around would sure be nice until this is fixed.
Eli: keep trying to log in over and over. Each log-in causes a little game time to pass, so after about 20 or so failures, the firework will despawn, and you will be able to get in.
God help you if there is a dispenser full of fireworks on a redstone loop 😛
You can always edit your player.dat file with nbtedit to change your coords... but that requires that you have access to the server.
Agreed, why is this considered a minor issue?
No surprise, but noted that it occurs on LAN worlds as well. My 7 year old discovered this bug within two hours of updating – it's not likely to go unnoticed!
How is this only a minor issue? Seems like a relatively big deal, if it can keep people from playing altogether.
I am going to guess that "Minor" is the default priority, and nobody with permissions to edit the priority has noticed this bug yet.
There are no other priorities.

"Minor" is the only possible priority in this bug tracker.
When I try to lunch fireworks - server (1.4.6 with diablo-jdk1.6) kicks me out. And I can't connect anymore.
I updated java to openjdk6, but still cant connect, see the log:
Starting Minecraft...
210 recipes
27 achievements
2012-12-23 13:43:56 INFO Starting minecraft server version 1.4.6
2012-12-23 13:43:56 INFO Loading properties
2012-12-23 13:43:56 INFO Default game type: SURVIVAL
2012-12-23 13:43:56 INFO Generating keypair
2012-12-23 13:43:57 INFO Starting Minecraft server on *:25565
2012-12-23 13:43:57 WARNING **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
2012-12-23 13:43:57 WARNING The server will make no attempt to authenticate usernames. Beware.
2012-12-23 13:43:57 WARNING While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
2012-12-23 13:43:57 WARNING To change this, set "online-mode" to "true" in the server.properties file.
2012-12-23 13:43:57 INFO Preparing level "world"
2012-12-23 13:43:57 INFO Preparing start region for level 0
2012-12-23 13:43:58 INFO Done (1,132s)! For help, type "help" or "?"
Invalid argument <- Client opens LAN games
Invalid argument <- Client try to connect
2012-12-23 13:44:03 INFO NikitaTratorov/95.28.208.227:53318 logged in with entity id 27 at (-357.0897381757311, 64.0, -493.33058578735177)
java.lang.NullPointerException
at ef.a(SourceFile:310)
at mj.a(SourceFile:237)
at mj.a(SourceFile:157)
at et.a(SourceFile:36)
at ef.a(SourceFile:214)
at cg.h(SourceFile:178)
at cg.d(SourceFile:15)
at ci.run(SourceFile:114)
2012-12-23 13:44:04 INFO NikitaTratorov lost connection: disconnect.genericReason
stop
2012-12-23 13:48:57 INFO Stopping the server
2012-12-23 13:48:57 INFO Stopping server
2012-12-23 13:48:57 INFO Saving players
java.net.SocketException: Socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:375)
at java.net.ServerSocket.implAccept(ServerSocket.java:470)
at java.net.ServerSocket.accept(ServerSocket.java:438)
at hu.run(SourceFile:66)
Closing listening thread2012-12-23 13:48:57 INFO Saving worlds
2012-12-23 13:48:57 INFO Saving chunks for level 'world'/Overworld
2012-12-23 13:48:57 INFO Saving chunks for level 'world'/Nether
2012-12-23 13:48:57 INFO Saving chunks for level 'world'/The End
Can anyone else confirm that this only happens under the following circumstances:
End of Stream Crash with or without dispensers with plain Firework Rockets.
End of Stream Crash WITH Dispensers and any color Small Ball fireworks (no trails/twinkle/etc.., just plain Small Ball).
All other firework scenarios with or without dispensers seem to work fine.
Can anyone else confirm that this only happens under the following circumstances:
Yes. While fireworks is lunched, I can't log in to server. This method works for me:
Eli: keep trying to log in over and over. Each log-in causes a little game time to pass, so after about 20 or so failures, the firework will despawn, and you will be able to get in.
So, there is a problem with fireworks in multiplayer.
But in single player all works fine, even with dispenser.
> "Minor" is the only possible priority in this bug tracker.
Well that's pretty dumb, you'd think at least mods would be able to promote severe issues like this to "major" or something.
Can you please attach the complete crash report ?