[MC-4715] Crash when using spawned in firework / Server kicks you with an End of Stream error Created: 15/Dec/12  Updated: 03/Jun/17  Resolved: 28/Dec/12

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Snapshot 12w50b, Minecraft 1.4.6
Fix Version/s: Minecraft 1.4.7

Type: Bug
Reporter: YukonAppleGeek Assignee: Unassigned
Resolution: Fixed Votes: 32
Labels: crash, fireworks_rocket, null-pointer-exception

Attachments: JPEG File screenshot-1.jpg    
Issue Links:
Duplicate
is duplicated by MC-5374 Crashes when using empty firework in LAN Resolved
is duplicated by MC-5596 Dispenser Issue on LAN Servers Resolved
is duplicated by MC-6204 Firework Crashes My Server Resolved
is duplicated by MC-6307 Bug with fireworks in dispenser Resolved
is duplicated by MC-6577 Fire work cause end of stream when fi... Resolved
is duplicated by MC-6610 Fireworks fail servers Resolved
is duplicated by MC-6638 Can't launch framework rocket on serv... Resolved
is duplicated by MC-7504 Firework Usage on Server Caused Conne... Resolved
is duplicated by MC-4358 Fireworks going through lava kick pla... Resolved
is duplicated by MC-4723 Using a Firework Rocket with no stars... Resolved
is duplicated by MC-4731 Minecraft crashes when placing rocket... Resolved
is duplicated by MC-4783 Open To LAN Bug Resolved
is duplicated by MC-4809 Fireworks In Multiplayer Resolved
is duplicated by MC-4828 End of stream Resolved
is duplicated by MC-4874 Disconnect when firing firework Resolved
is duplicated by MC-4895 End Of Stream Error, In 1.4.6 Pre-Rel... Resolved
is duplicated by MC-4939 Flipping a lever causes the server to... Resolved
is duplicated by MC-4946 Firework specifications scrubbed, Whe... Resolved
is duplicated by MC-4948 Feyverki. Resolved
is duplicated by MC-4994 Normal Firework usage on servers caus... Resolved
is duplicated by MC-5014 Fireworks causes the server to loose ... Resolved
is duplicated by MC-5027 Fireworks on multiplayer Resolved
is duplicated by MC-5034 Minecraft server throws me out, compl... Resolved
is duplicated by MC-5040 Fireworks causing server disconnect a... Resolved
is duplicated by MC-5041 Red Stone will cause errors in MultiP... Resolved
is duplicated by MC-5045 After my friend launched a firework, ... Resolved
is duplicated by MC-5050 Players connecting to a LAN world cra... Resolved
is duplicated by MC-5066 strange firework Resolved
is duplicated by MC-5083 Game Crashes when using fireworks Resolved
is duplicated by MC-5085 NullPointerException on connection Resolved
is duplicated by MC-5089 Crash on server close Resolved
is duplicated by MC-5090 Fireworks Crashes anyone near by when... Resolved
is duplicated by MC-5114 End of Stream Resolved
is duplicated by MC-5122 End of Stream Error on 1.4.6 server Resolved
is duplicated by MC-5123 Fireworks Server Crash Resolved
is duplicated by MC-5131 Multiplayer crashes on Firework place... Resolved
is duplicated by MC-5150 Firework's disconnects you from server Resolved
is duplicated by MC-5190 Firework Rocket fails to operate in m... Resolved
is duplicated by MC-5200 Server crash when launching fireworks Resolved
is duplicated by MC-5248 Crashing when right clicking Firework... Resolved
is duplicated by MC-5258 Server 1.4.6 drops clients when conne... Resolved
is duplicated by MC-5265 Shows End of Stream on Open To LAN Up... Resolved
CHK:
Confirmation Status: Confirmed

 Description   

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)



 Comments   
Comment by NightKev [ 24/Dec/12 ]

> "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.

Comment by Nikita Tratorov [ 24/Dec/12 ]

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.

Comment by webjocky [ 24/Dec/12 ]

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.

Comment by Nikita Tratorov [ 23/Dec/12 ]

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

Comment by Kumasasa [ 22/Dec/12 ]

"Minor" is the only possible priority in this bug tracker.

Comment by Anon Ymus [ 22/Dec/12 ]

There are no other priorities.

Comment by James Paige [ 22/Dec/12 ]

I am going to guess that "Minor" is the default priority, and nobody with permissions to edit the priority has noticed this bug yet.

Comment by Michael Crawford [ 22/Dec/12 ]

How is this only a minor issue? Seems like a relatively big deal, if it can keep people from playing altogether.

Comment by Ron Risley [ 22/Dec/12 ]

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!

Comment by Kilo Force [ 22/Dec/12 ]

Agreed, why is this considered a minor issue?

Comment by Rickard Åberg [ 22/Dec/12 ]

You can always edit your player.dat file with nbtedit to change your coords... but that requires that you have access to the server.

Comment by James Paige [ 21/Dec/12 ]

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

Comment by Eli Kane [ 21/Dec/12 ]

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.

Comment by Michael Griffith [ 21/Dec/12 ]

This issue seems to be quite serious for server security and stability, I would think the priority would be much higher.

Comment by Rickard Åberg [ 21/Dec/12 ]

Yea, everyone get this bug. I'm suprised this wasn't hotfixed.
Like someone mentioned, it can be used as a DoS attack.

Comment by Ryan T. Miller [ 21/Dec/12 ]

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.

Comment by Rodney Beck [ 21/Dec/12 ]

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.

Comment by Michael Crawford [ 21/Dec/12 ]

Just happened to me on my server, as well.

Comment by Zach Bora [ 20/Dec/12 ]

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)

Comment by Greg [ 20/Dec/12 ]

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.

Comment by James Paige [ 20/Dec/12 ]

Griefers apparently can use this as a denial-of-service attack

Comment by _aD [ 20/Dec/12 ]

I find the same symptoms when launching a crafted firework using a dispenser.

Comment by Martin Goth [ 20/Dec/12 ]

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.

Comment by Anthony Dranfield [ 20/Dec/12 ]

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.

Comment by Julien Hoffmann [ 20/Dec/12 ]

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.

Comment by Rickard Åberg [ 20/Dec/12 ]

And even if i restart the server, it won't let me connect properly.

Comment by Rickard Åberg [ 20/Dec/12 ]

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

Comment by YukonAppleGeek [ 20/Dec/12 ]

The way you fix it is constantly keep connecting and after about 10-30 connects the entity despawns and it no longer kicks you.

Comment by Connor B [ 20/Dec/12 ]

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.

Comment by Rickard Åberg [ 19/Dec/12 ]

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".

Comment by Kumasasa [ 15/Dec/12 ]

updated title

Comment by YukonAppleGeek [ 15/Dec/12 ]

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

Comment by Kumasasa [ 15/Dec/12 ]

Can you please attach the complete crash report ?

Generated at Sun Jan 12 12:05:30 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.