JDK-6343024 : NullPointerException while trying to launch/import a "component extension"
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 5.0u6
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2005-10-28
  • Updated: 2014-02-27
  • Resolved: 2005-11-01
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0u6 b04Fixed
Related Reports
Relates :  
Description
This works fine with jre1.5.0_05-b05, but failed with  jre1.5.0_06-b03

Steps to reproduce :
--------------------
1. Install mustang jre1.5.0_06-b03 
2. Clear cache using javaws -uninstall 
3. Launch a jnlp with <component-desc/> element using command ,
javaws http://sceri.prc/~yl153753/tiger/cacheViewer/CacheViewer_Library.jnlp

Exception thrown:
Exception in thread "javawsApplicationMain" java.lang.NullPointerException
	at com.sun.javaws.LaunchSelection.selectJRE(Unknown Source)
	at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
	at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
	at com.sun.javaws.Launcher.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

Nothing got cached .
Same error to import the jnlp using "javaws -import"

Comments
EVALUATION In Launcher.java, if we are in import mode, we should not try to get the JREInfo, because we are just downloading resources into cache instead of running the application, and component extension jnlp file does not have jre info. In 5.0u6, when we add the SSV code, we change the code path and missed this case. (mustang is okay too, so basically just adding back the same check into 5.0u6)
28-10-2005

SUGGESTED FIX http://web-east.east/deployment/www/webrevs/ngthomas/6343024/webrev/
28-10-2005