JDK-6895405 : Regression: Some invalid scenarios are throwing java.lang.NullPointerException
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u18
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2009-10-26
  • Updated: 2010-04-04
  • Resolved: 2009-10-27
Related Reports
Duplicate :  
Description
While evaluating the PIT automated results I noticed that some of the applets are failing, since instead of expected "NoClassDefFoundError " following exception is getting thrown
java.lang.NullPointerException
	at sun.plugin2.applet.Plugin2Manager.findAppletJDKLevel(Unknown Source)
	at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
	at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Exception: java.lang.NullPointerException

Steps to reproduce:
----------------
1) Install 6u18-b04 pit and try to load following applet
http://sqeweb.sfbay.sun.com/deployment2/jitu/deployment_mustang_exec_ws/deployment/src/plugin/jarcaching/jarcaching/html/JarCachingNoHelperJarArchiveTest.html

If above mentioned exception is thrown instead of NoClassDefFoundError then bug is reproduced