javaws throws NullPointerException with some JNLP file

Bug #558527 reported by Jesse
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

System: Lucid Beta 1 amd64
I was trying to run Bloom the facebook photo uploader. But OpenJDK's Java Web Start doesn't launch. So I tried it on command line:
$ javaws http://antaki.ca/bloom/Bloom.jnlp
and it dies:

net.sourceforge.jnlp.LaunchException: Fatal: Launch Error: Could not launch JNLP file.
 at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:462)
 at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:731)
Caused by: java.lang.NullPointerException
 at net.sourceforge.jnlp.JNLPSplashScreen.correctSize(JNLPSplashScreen.java:71)
 at net.sourceforge.jnlp.JNLPSplashScreen.setSplashImageURL(JNLPSplashScreen.java:61)
 at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:411)
 ... 1 more
Caused by:
java.lang.NullPointerException
 at net.sourceforge.jnlp.JNLPSplashScreen.correctSize(JNLPSplashScreen.java:71)
 at net.sourceforge.jnlp.JNLPSplashScreen.setSplashImageURL(JNLPSplashScreen.java:61)
 at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:411)
 at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:731)

Now the workaround: I installed the less free sun-java6-jre and ran update-alternatives to point javaws to sun's version.

Revision history for this message
Jesse (sbjesse) wrote :
Revision history for this message
Raoul Bhatia (raoul-bhatia) wrote :

i experience the same issue when running an ikvm app from a supermicro server.

please find the logs attached. note: i replaced the server's hostname/ip with "servername".

Revision history for this message
Raoul Bhatia (raoul-bhatia) wrote :
Revision history for this message
Matthias Klose (doko) wrote :

please could you recheck with the openjdk-6 packages in
deb http://ppa.launchpad.net/openjdk/ppa/ubuntu lucid main

I cannot reproduce this crash with these packages

Changed in openjdk-6 (Ubuntu):
status: New → Incomplete
Revision history for this message
sineex (sineex) wrote :

Update from deb http://ppa.launchpad.net/openjdk/ppa/ubuntu lucid main helped me to resolve the problem with the jnlp file from Dell BMC.

Revision history for this message
Raoul Bhatia (raoul-bhatia) wrote :

still not working for supermicro ikvm with the mentioned sources.

ii icedtea-6-jre-cacao 6b20-1.9-0lucid2
ii openjdk-6-jre 6b20-1.9-0lucid2
ii openjdk-6-jre-headless 6b20-1.9-0lucid2
ii openjdk-6-jre-lib 6b20-1.9-0lucid2

# java -version
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9) (6b20-1.9-0lucid2)
OpenJDK 64-Bit Server VM (build 17.0-b16, mixed mode)

Revision history for this message
Raoul Bhatia (raoul-bhatia) wrote :

it is, however, working with 10.10 maverick out of the box:

raoul@rb:~$ dpkg -l|grep -i jdk
ii icedtea-6-jre-cacao 6b20-1.9-0ubuntu1
ii openjdk-6-jdk 6b20-1.9-0ubuntu1
ii openjdk-6-jre 6b20-1.9-0ubuntu1
ii openjdk-6-jre-headless 6b20-1.9-0ubuntu1
ii openjdk-6-jre-lib 6b20-1.9-0ubuntu1

raoul@rb:~$ java -version
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)

Revision history for this message
Raoul Bhatia (raoul-bhatia) wrote :

ok, my bad. java -version clearly shows that i'm using the sun/oracle edition.

using "/usr/lib/jvm/java-6-openjdk/jre/bin/javaws" is still not working:

using raoul@rb:~$ /usr/lib/jvm/java-6-openjdk/jre/bin/javaws Desktop/ikvm.jnlp
> net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize application.
> at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:651)
> at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:420)
> at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:732)
> Caused by: java.lang.NullPointerException
> at net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:427)
> at net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:168)
> at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:249)
> at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:641)
> ... 2 more
> Caused by:
> java.lang.NullPointerException
> at net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:427)
> at net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:168)
> at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:249)
> at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:641)
> at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:420)
> at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:732)

thanks,
raoul

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

[Expired for openjdk-6 (Ubuntu) because there has been no activity for 60 days.]

Changed in openjdk-6 (Ubuntu):
status: Incomplete → Expired
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.