Skip to main content

Applets + JNLP problem

2 replies [Last post]
jimaltio
Offline
Joined: 2008-03-13
Points: 0

I am trying to get a simple JNLP Applet example working, based upon the information here https://jdk6.dev.java.net/plugin2/jnlp/, and using the Java 6 update 10 beta (build 22)

I am currently at the stage where if I open the JNLP file alone, the applet appears in a window and runs successfully, but if I try and reference the JNLP from the tag in an HTML page I get the following exception:
--
java.lang.NullPointerException
at sun.plugin2.applet.JNLP2Manager.prepareToLaunch(Unknown Source)
at sun.plugin2.applet.JNLP2Manager.initialize(Unknown Source)
at sun.plugin2.main.client.PluginMain$StartAppletRunner.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Exception: java.lang.NullPointerException
ExitException[ 3]java.lang.NullPointerException
at sun.plugin2.applet.JNLP2Manager.prepareToLaunch(Unknown Source)
at sun.plugin2.applet.JNLP2Manager.initialize(Unknown Source)
at sun.plugin2.main.client.PluginMain$StartAppletRunner.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Error while initializing manager: ExitException[ 3]java.lang.NullPointerException, bail out
--

My HTML looks like:

And my JNLP file looks like:

<?xml version="1.0" encoding="UTF-8"?>

JNLP Example
Altio

I added the codebase attribute to the JNLP element as launching the JNLP directly seemed to require it, but I can get no more information than the NullPointerException when trying to us it from the tag.

Does anyone know what I'm doing wrong?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kbr
Offline
Joined: 2003-06-16
Points: 0

Can you please provide a test case on an Internet-facing server, or email me a zip archive containing a test case at kenneth dot russell at sun dot com? The sooner the better.

I don't think build 22 was completely dead on arrival, although whatever is going on above, clearly better exception reporting is needed (and might have been incorporated into build 23 already).

jimaltio
Offline
Joined: 2008-03-13
Points: 0

Hi,

I've emailed you the details you asked for,

Cheers