JDK-6888387 : NullPointerException in DownloadService2
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 6u18
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2009-10-05
  • Updated: 2010-09-16
  • Resolved: 2009-11-25
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.
6u18 b04Fixed 7Fixed
Related Reports
Duplicate :  
The new DownloadService2 API throws a NullPointerException when application calls DownloadService2.getCachedResources():

	at com.sun.jnlp.DownloadService2Impl.matches(Unknown Source)
	at com.sun.jnlp.DownloadService2Impl.getCachedResourcesImpl(Unknown Source)
	at com.sun.jnlp.DownloadService2Impl.access$000(Unknown Source)
	at com.sun.jnlp.DownloadService2Impl$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.jnlp.DownloadService2Impl.getCachedResources(Unknown Source)
	at hello.test(hello.java:28)
	at hello.<init>(hello.java:17)
	at hello.main(hello.java:51)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.sun.javaws.Launcher.executeApplication(Unknown Source)
	at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
	at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
	at com.sun.javaws.Launcher.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

SUGGESTED FIX http://sa.sfbay.sun.com/projects/deployment_data/6u18/6888387.0/

EVALUATION Working on it. We need additional null checks in some places.