Java Web Start crashes with a Null Pointer Exception

Bug #205371 reported by Darren Albers
12
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

When I run javaws provided by open jdk it crashes with (I can only see this error in the console):
Exception in thread "main" java.lang.NullPointerException
 at net.sourceforge.jnlp.runtime.InstallDialog.<init>(InstallDialog.java:58)
 at net.sourceforge.jnlp.runtime.InstallDialog.getInstallDir(InstallDialog.java:153)
 at net.sourceforge.jnlp.runtime.JNLPRuntime.getDefaultBaseDir(JNLPRuntime.java:265)
 at net.sourceforge.jnlp.runtime.Boot.getBaseDir(Boot.java:407)
 at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:168)
 at java.security.AccessController.doPrivileged(Native Method)
 at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:159)

The link in the menu which opens the viewer works ok.

I tried just running javaws as well point it towards a few webstart apps and the result is the same.

Related branches

Revision history for this message
Darren Albers (dalbers) wrote :

I see that a new version is building right now so I will retest with that version.

Matti Lindell (mlind)
Changed in openjdk-6:
status: New → Incomplete
Revision history for this message
Darren Albers (dalbers) wrote :

I receive the same error with the new version as well

Matti Lindell (mlind)
Changed in openjdk-6:
importance: Undecided → Medium
status: Incomplete → Confirmed
Revision history for this message
R. Kyle Murphy (orclev) wrote :

Also receiving the same error with the latest versions downloaded from Synaptic. This was downloaded from the universe repository.

Revision history for this message
Matti Lindell (mlind) wrote :

running /usr/lib/jvm/java-6-openjdk/bin/javaws from command line results same outcome.

InstallDialog.java line 58:
   new ImageIcon(getClass().getClassLoader().getResource("net/sourceforge/jnlp/resources/install.png"));

getClassLoader() may return null (if class was loaded by bootstrap class loader) or install.png is not found for some reason in /usr/lib/jvm/java-6-openjdk/jre/lib/resources.jar.

Revision history for this message
Michael (michaeljt) wrote :

"Me too".

Running Hardy Beta on AMD64. "net/sourceforge/jnlp/resources/install.png" does seem to be present inside /usr/lib/jvm/java-6-openjdk/jre/lib/resources.jar.

Revision history for this message
Matthias Klose (doko) wrote :

running `javaws -viewer' from the command line does work, however the manpage states that this should be the default if an URL is missing on the command line.

Revision history for this message
Matthias Klose (doko) wrote :

javaws from sun-java6-jdk called without arguments just shows a help message and terminates. related?

Revision history for this message
Darren Albers (dalbers) wrote :

Correct, I get the viewer which seems to be a place to manager certificates but I can't seem to load any webstart apps:

darren@dpa-mini:~$ javaws http://java.sun.com/products/javawebstart/apps/notepad.jnlp
Exception in thread "main" java.lang.NullPointerException
 at net.sourceforge.jnlp.runtime.InstallDialog.<init>(InstallDialog.java:58)
 at net.sourceforge.jnlp.runtime.InstallDialog.getInstallDir(InstallDialog.java:153)
 at net.sourceforge.jnlp.runtime.JNLPRuntime.getDefaultBaseDir(JNLPRuntime.java:265)
 at net.sourceforge.jnlp.runtime.Boot.getBaseDir(Boot.java:407)
 at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:168)
 at java.security.AccessController.doPrivileged(Native Method)
 at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:159)

Maybe I am confused on the usage or how to launch webstart apps via javaws?

Revision history for this message
Dave Rolsky (autarch) wrote :

I'm seeing the same behavior with the latest version of the package, installed just now - 6b08-0ubuntu1

autarch@houseabsolute:~$ javaws http://files.gokgs.com/javaBin/cgoban.jnlp

Exception in thread "main" java.lang.NullPointerException
        at net.sourceforge.jnlp.runtime.InstallDialog.<init>(InstallDialog.java:58)
        at net.sourceforge.jnlp.runtime.InstallDialog.getInstallDir(InstallDialog.java:153)
        at net.sourceforge.jnlp.runtime.JNLPRuntime.getDefaultBaseDir(JNLPRuntime.java:265)
        at net.sourceforge.jnlp.runtime.Boot.getBaseDir(Boot.java:407)
        at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:168)
        at java.security.AccessController.doPrivileged(Native Method)
        at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:159)

I'm running Hardy on an AMD64 system.

Revision history for this message
Craig (candrews-integralblue) wrote :

I filed an issue with sun, it's review id 1219421. I'll post the actual bug number and a link to it when that's been created.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openjdk-6 - 6b08-0ubuntu3

---------------
openjdk-6 (6b08-0ubuntu3) hardy; urgency=low

  * Update IcedTea build infrastructure (pull before update ...).
    - Fixes crash starting javaws (Joshua Sumali). LP: #205371.

 -- Matthias Klose <email address hidden> Thu, 03 Apr 2008 17:13:20 +0200

Changed in openjdk-6:
status: Confirmed → Fix Released
Revision history for this message
Michael (michaeljt) wrote :

The link /usr/lib/jvm/java-6-openjdk/bin/javaws which points to ../jre/bin/javaws and which is used by konqueror to start javaws applications still doesn't work here. Executing

$ kioexec /usr/lib/jvm/java-6-openjdk/bin/javaws http://bugster.central/bugster.jnlp

gives me

exec: 6: ../jre/bin/javaws.real: not found

Revision history for this message
Paul Smith (psmith-gnu) wrote :

Hi Michael; please don't report different bugs in the comments for other bugs. It's very difficult to track them and determine when a bug is actually fixed, if extra bugs are reported in the comments. Every different bug should have its own bug report.

FWIW, I already filed the issue you're running into as a separate bug yesterday: https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/211515

Cheers!

Revision history for this message
fringd (fringd) wrote :

i'm still getting this problem with openjdk-6-jre 6b09. notepad somebody else linked does work, but

<code>
javaws http://files.gokgs.com/javaBin/cgoban.jnlp
netx: Launch Error: Could not launch JNLP file. (java.lang.NullPointerException null)
</code>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.