It was discovered by accident when testing AMC that a jnlp file without any resources will throw a NPE instead of a LaunchError dialog when it is run thru javaws using the AppletLifecycle path (fx app or applet). A jnlp file (other than a component-extension) must have at least some resources (either a <jar> element or a library extension that has (recursivly) at least one <jar> element. The correct error dialog is shown when the jnlp file is an application-desc, but when it is not, an NPE is thrown: java.lang.NullPointerException at com.sun.javaws.jnl.LaunchDesc.getAppInfo(Unknown Source) at sun.plugin2.applet.JNLP2Manager.getAppInfo(Unknown Source) at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java:745)
|