The reasons for it are not too clear to me, but i believe it occurs when the Trash applet fails to communicate correctly with the Gnome/Bonobo layer.
Solution is to remove the Trash applet from the panel and add a new Trash applet in its place. Alternatively, restart Gnome.
Cheers.
Bookmarks