Bug 475109

Summary: NullPointerException when launching JNLP file
Product: [Fedora] Fedora Reporter: Jerry James <loganjerry>
Component: java-1.6.0-openjdkAssignee: Omair Majid <omajid>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: low    
Version: 10CC: dbhole, don-redhat-z6y, fedora, langel, lkundrak, mjw, ralston, shiys
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-02-02 15:40:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jerry James 2008-12-07 21:48:06 UTC
Description of problem:
I tried to install the Java Web Start application available at http://www.familysearchindexing.org/.  The browser popped up a window that showed messages about downloading a bunch of jars.  Then the window disappeared and nothing more happened.  I found this in ~/.xsession-errors:

*** NSPlugin Wrapper *** WARNING: unhandled variable 11 in NPP_GetValue()
*** NSPlugin Wrapper *** WARNING: unhandled variable 11 in NPP_GetValue()
*** NSPlugin Wrapper *** WARNING: unhandled variable 11 in NPP_GetValue()
*** NSPlugin Wrapper *** WARNING: unhandled variable 11 in NPP_GetValue()
*** NSPlugin Wrapper *** WARNING: unhandled variable 11 in NPP_GetValue()
*** NSPlugin Wrapper *** WARNING: unhandled variable 11 in NPP_GetValue()
Window manager warning: Invalid WM_TRANSIENT_FOR window 0x3c00007 specified for 0x3c00011 (Choose a c).
netx: Launch Error: Could not launch JNLP file. (java.lang.NullPointerException null)
net.sourceforge.jnlp.LaunchException: Fatal: Launch Error: Could not launch JNLP file.
	at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:372)
	at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:600)
Caused by: java.lang.NullPointerException
	at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:358)
	... 1 more
Caused by: 
java.lang.NullPointerException
	at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:358)
	at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:600)

Version-Release number of selected component (if applicable):
java-1.6.0-openjdk-1.6.0.0-6.b12.fc10.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Visit http://www.familysearchindexing.org/
2. Click on the software installation link in the lower left-hand corner

Actual results:
Jars are downloaded, but the application fails to start.

Expected results:
The application should start.

Additional info:
This appears to be similar to, but distinct from, bug #475081.

Comment 1 Deepak Bhole 2008-12-11 21:50:34 UTC
This issue is happening due to combination of a bug in the site, and a missing feature in NetX. JNLP specifications allow for requesting a basic jar from the site afaict:

http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/downloadservletguide.html#mapping

The download server that www.familysearchindexing.org redirects to, does not support basic download request. Since it is the only protocol NetX supports, the app fails to load.

Comment 2 Lillian Angel 2009-01-11 16:38:18 UTC
*** Bug 479227 has been marked as a duplicate of this bug. ***

Comment 3 Lillian Angel 2009-02-02 15:40:06 UTC
this should be in rawhide within the next couple of days:
http://koji.fedoraproject.org/koji/taskinfo?taskID=1098935

Comment 4 Russell Harrison 2009-02-03 15:56:06 UTC
Should we expect the changes to be back ported once proven to work in rawhide or will F11 be the first stable release to see the fix?

Comment 5 Lillian Angel 2009-02-03 16:00:57 UTC
will be in f-10 soon. the update has been requested

Comment 6 Russell Harrison 2009-02-03 18:02:47 UTC
(In reply to comment #5)
> will be in f-10 soon. the update has been requested

Excellent, thanks for the update.

Comment 7 Fedora Update System 2009-02-05 02:23:29 UTC
java-1.6.0-openjdk-1.6.0.0-9.b14.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Shi Yusen 2009-05-31 05:50:31 UTC
I ran a JNLP in Fedora 10 with java-1.6.0-openjdk-1.6.0.0-15.b14.fc10, Firefox 3.0.10 and got the similar problem:
net.sourceforge.jnlp.LaunchException: Fatal: Launch Error: Could not launch JNLP file.
	at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:372)
	at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:600)
Caused by: java.lang.NullPointerException
	at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:358)
	... 1 more
Caused by: 
java.lang.NullPointerException
	at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:358)
	at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:600)

The JNLP can run on Windows XP with Sun JDK 1.5.0_06.

Is this the same bug or my mistake?

Comment 9 Omair Majid 2009-06-01 14:32:49 UTC
(In reply to comment #8)
> I ran a JNLP in Fedora 10 with java-1.6.0-openjdk-1.6.0.0-15.b14.fc10, Firefox
> 3.0.10 and got the similar problem:
> net.sourceforge.jnlp.LaunchException: Fatal: Launch Error: Could not launch
> JNLP file.
>  at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:372)
>  at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:600)
> Caused by: java.lang.NullPointerException
>  at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:358)
>  ... 1 more
> Caused by: 
> java.lang.NullPointerException
>  at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:358)
>  at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:600)
> 
> The JNLP can run on Windows XP with Sun JDK 1.5.0_06.
> 
> Is this the same bug or my mistake?  

Could you please post a link to the JNLP file?

Comment 10 Shi Yusen 2009-06-18 09:46:12 UTC
We're writing a java client to launch on a static html page in a CD-ROM. Now we found how to resolve the problem:
In Windows JNLP:
<jnlp spec="1.0+" codebase="file:." href="search.jnlp">

In Linux JNLP:
<jnlp spec="1.0+" codebase="." href="linux_search.jnlp">

Sorry for disturbing you.