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 12.2.1.3.0 and laterInformation in this document applies to any platform.
Symptoms
Attempting to run with Java Web Start in Forms 12.2.1.3, an error similar to the following is presented.
Error
"Unable to launch application"
Details
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$1.run(Unknown Source)
at java.lang.Thread.run(Unknown 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$3.run(Unknown Source)
... 1 more
Caused by: java.lang.NullPointerException
at sun.plugin2.applet.viewer.JNLP2Viewer.parseAndInitialize(Unknown Source)
at sun.plugin2.applet.viewer.JNLP2Viewer.run(Unknown Source)
at sun.plugin2.applet.viewer.JNLP2Viewer.main(Unknown Source)
Changes
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:
DOMAIN_HOME/config/fmwconfig/components/FORMS/instances/forms1/server
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"
xmlns:jfx="http://javafx.com"
%jnlp_param%="%jnlp_param_value%"
href="http://example.com/forms/frmservlet?config=sales"
>
Cause
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
Symptoms |
Changes |
Cause |
Solution |
References |