I had this same problem yesterday. So I decided to uninstall the current java plugins (was using icedtea).
Code:
sudo apt-get purge icedtea6-plugin icedtea-6-jre-cacao
and then installed the official sun plugin
Code:
sudo apt-get install sun-java6-plugin
This did it for me, YMMV.