-
Bug
-
Resolution: Duplicate
-
P2
-
6u18
-
generic
-
generic
DownloadService2.getCachedResources is throwing NPE. I am getting the following Exception while calling
ResourceSpec spec = new ResourceSpec("http://dl.javafx.com/.*","1.2.1",service.JAR);
ResourceSpec results[] = service.getCachedResources(spec);
java.lang.NullPointerException
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 TestFrame.<init>(TestFrame.java:47)
at TestFrame.main(TestFrame.java:53)
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)
Steps to reproduce:
Launch any applet from http://javafx.com/samples/
Then launch - javaws http://sqindia.india.sun.com/disk01/raghu/TestSpec/TestCases/Test.jnlp
Source code - http://sqindia.india.sun.com/disk01/raghu/TestSpec/TestCases/TestFrame.java
ResourceSpec spec = new ResourceSpec("http://dl.javafx.com/.*","1.2.1",service.JAR);
ResourceSpec results[] = service.getCachedResources(spec);
java.lang.NullPointerException
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 TestFrame.<init>(TestFrame.java:47)
at TestFrame.main(TestFrame.java:53)
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)
Steps to reproduce:
Launch any applet from http://javafx.com/samples/
Then launch - javaws http://sqindia.india.sun.com/disk01/raghu/TestSpec/TestCases/Test.jnlp
Source code - http://sqindia.india.sun.com/disk01/raghu/TestSpec/TestCases/TestFrame.java
- duplicates
-
JDK-6888387 NullPointerException in DownloadService2
-
- Closed
-