A member of my server produced some firework rockets using more paper and gunpowder than charges on top, then used shift-click. This consumed all resources on the crafting grid.
When he then attempted to launch the firework he was disconnected (with disconnect.genericReason shown in the server log and Connection Lost - End of Stream on the client) and any attempts to reconnect failed with the same errors both in the sever log and on the client. Restarting the server resolved the issue, however upon attempting to launch a firework the problem repeated.
Linked issues
duplicates
Comments

Duplicate of MC-4715 , please use the search function to see if your bug has already been submitted. Currently over 35% of tickets are being closed as duplicate.

Not actually a duplicate; this bug report shows the 'blank' rockets that cause the issue can be created with the crafting grid.
/give player 401 is the blank rocket

Is spawned fireworks and crafted fireworks the same? Because I made the kind that causes the disconnect, on my crafting bench
If you found a non-blank firework that causes end of stream, please post the combination to the comments of MC-4715.

No, I believe the bug is that using shift-click to bulk create, the non-starred fireworks made from the remaining paper and sulfur after using up the stars ARE the same as spawned blanks. I don't think normally crafted blanks give this problem.
Apologies, the reason I didn't spot the other one as being the same issue is because the other indicates a crash and includes a null pointer exception error, no such events are visibly occurring in logs on my server. It merely disconnects the user with no useful information returned about why.
Hey. I'm the one who experienced the problem Freakus submitted.
I'm not sure what the exact numbers were, so they may not be 100% correct.
I made 14 fireworks stars, with feathers and yellow dye, then further modified to fade to red.
I made the rockets by putting the 14 stars on top, 20 papers below it, and (I think) 26 sulfur below that.
When shift-clicking, I got 14 1-power, yellow-to-red, Burst-explosion fireworks rockets, and 4 rockets with no modifiers at all shown on them. These 4 are what causes the problem.
Note that after the server restart, the problem only occurred again because I shot another one of these "blank" rockets.