← Back to team overview

openjdk team mailing list archive

[Bug 544888] Re: Openjdk + icedtea6 plugin fails to load parameters from jnlp files

 

** Bug watch added: Iced Tea Bugzilla #464
   http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=464

** Also affects: openjdk via
   http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=464
   Importance: Unknown
       Status: Unknown

** Changed in: openjdk-6 (Ubuntu)
   Importance: Undecided => Medium

** Changed in: openjdk-6 (Ubuntu)
       Status: New => Triaged

-- 
Openjdk + icedtea6 plugin fails to load parameters from jnlp files
https://bugs.launchpad.net/bugs/544888
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in ubuntu.

Status in OpenJDK: Unknown
Status in “openjdk-6” package in Ubuntu: Triaged

Bug description:
I was testing applets in the tutorials, this one doesn't work:
http://java.sun.com/docs/books/tutorial/deployment/applet/param.html (scroll down for applet)

When launching firefox from console, an error is reported:
java.lang.NumberFormatException: null
	at java.lang.Integer.parseInt(Integer.java:443)
	at java.lang.Integer.parseInt(Integer.java:514)
	at AppletTakesParams.init(AppletTakesParams.java:39)
	at sun.applet.AppletPanel.run(AppletPanel.java:436)
	at java.lang.Thread.run(Thread.java:636)

This is caused by the parameter "paramInt" being unavailable. This parameter is defined in a jnlp file, reference in the HTML as such:
<applet code="AppletTakesParams.class" archive="examples/dist/applet_AppletWithParameters/applet_AppletWithParameters.jar" height="50" width="800"><param name="jnlp_href" value="examples/dist/applet_AppletWithParameters/applettakesparams.jnlp">....</applet>

The page works with sun's jre in ubuntu and windows under firefox.





References