My Oracle Support Banner

Forms 12/webstart: Java.lang.reflect.InvocationTargetException When Adding A Href In Jnlp (Doc ID 2360073.1)

Last updated on MAY 25, 2023

Applies to:

Oracle Forms - Version and later
Information in this document applies to any platform.


Attempting to run with Java Web Start in Forms, an error similar to the following is presented.


"Unable to launch application"


java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.sun.javaws.Launcher.executeApplet(Unknown Source)
at com.sun.javaws.Launcher.launchAppUsingAppletLifecycle(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main.access$000(Unknown Source)
at com.sun.javaws.Main$ Source)
at Source)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher$ Source)
... 1 more
Caused by: java.lang.NullPointerException
at sun.plugin2.applet.viewer.JNLP2Viewer.parseAndInitialize(Unknown Source)
at Source)
at sun.plugin2.applet.viewer.JNLP2Viewer.main(Unknown Source)



An "href" has been added to the "jnlp" element of the Forms template jnlp file (i.e. base.jnlp or webutil.jnlp). The template files are located here:


The addition of an "href" is expected to help ensure that the content on the user's machine represents the same content as would be provided if the user directly requested the page from the server. Using this change only applies if the user is accessing the application through a static JNLP file stored on their machine or if the "install shortcut" option (e.g. found in Java Control Panel) was used to create a desktop shortcut. This adds no value if accessing the application directly using a URL to the Forms Servlet.

Example of added entry:

<jnlp spec="1.0"



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.