changeset 295:1fc5f8ceb75c

PR788: Elluminate Live! is not working 2011-09-22 Omair Majid <omajid@redhat.com> PR788: Elluminate Live! is not working * NEWS: Update. * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java (checkForMain): If localFile is null (JAR couldn't be downloaded), try to continue, rather than allowing the exception to cause an abort.
author Omair Majid <omajid@redhat.com>
date Thu, 22 Sep 2011 17:00:02 -0400
parents 8ab68d19c6f7
children 16c81f4dcf12
files ChangeLog NEWS netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
diffstat 3 files changed, 13 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Sep 21 14:45:25 2011 -0400
+++ b/ChangeLog	Thu Sep 22 17:00:02 2011 -0400
@@ -1,3 +1,11 @@
+2011-09-22  Omair Majid  <omajid@redhat.com>
+
+	PR788: Elluminate Live! is not working
+	* NEWS: Update.
+	* netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
+	(checkForMain): If localFile is null (JAR couldn't be downloaded), try to
+	continue, rather than allowing the exception to cause an abort.
+
 2011-09-21  Omair Majid  <omajid@redhat.com>
 
 	PR766: javaws fails to parse an <argument> node that contains CDATA
--- a/NEWS	Wed Sep 21 14:45:25 2011 -0400
+++ b/NEWS	Thu Sep 22 17:00:02 2011 -0400
@@ -14,6 +14,7 @@
 	- RH718170, CVE-2011-2514: Java Web Start security warning dialog manipulation
 * NetX
   - PR765: JNLP file with all resource jars marked as 'lazy' fails to validate signature and stops the launch of application
+  - PR788: Elluminate Live! is not working
 * Plugin
   - PR749: sun.applet.PluginStreamHandler#handleMessage(String) really slow
   - PR782: Support building against npapi-sdk as well
--- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java	Wed Sep 21 14:45:25 2011 -0400
+++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java	Thu Sep 22 17:00:02 2011 -0400
@@ -586,9 +586,10 @@
                 File localFile = tracker
                         .getCacheFile(jars.get(i).getLocation());
 
-                if (localFile == null)
-                    throw new NullPointerException(
-                            "Could not locate jar file, returned null");
+                if (localFile == null) {
+                    System.err.println("JAR " + jars.get(i).getLocation() + " not found. Continuing.");
+                    continue; // JAR not found. Keep going.
+                }
 
                 JarFile jarFile = new JarFile(localFile);
                 Enumeration<JarEntry> entries = jarFile.entries();