JDK-8124005 : Exception thrown on launching SwingInterop app
  • Type: Bug
  • Component: javafx
  • Sub-Component: application-lifecycle
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-01-25
  • Updated: 2015-06-17
  • Resolved: 2013-01-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Fixed
Related Reports
Blocks :  
Relates :  
Description
It is noticed on x86 Windows Vista,  Win 7, launching JavaFX 8 SwingInterop.jar resulted with Exception in thread "main" java.lang.reflect.InvocationTargetException
and the app failed to load. The issue appears since jre8-b73

*** Steps to reproduce:
0) Insdtall jre 8-b73
1) Get the JavaFX sample from:
http://jre.us.oracle.com/java/re/javafx/8.0.0/promoted/ea/b73/bundles/windows-i586/javafx_samples-8_0_0-ea-windows-i586.zip

2) Launch the  SwingInterop sample app from step#1 as:

C:\\javafx-samples-8.0.0-ea>java -jar SwingInterop.jar
Exception in thread "main" 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 sun.launcher.LauncherHelper$FXHelper.main(Unknown Source)
Caused by: java.lang.NullPointerException
        at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImp
l.java:235)
        ... 5 more

------------------------------------------------------------------------------------------------------------------

If the app failed to load with the above exception, the issue is reproducible

Comments
Verified on 8.0b105
30-08-2013

http://hg.openjdk.java.net/openjfx/8/graphics/rt/rev/3e9add1c8387
30-01-2013

This is related to the recent JDK 8 launcher changes, and is dependent on RT-26125. It requires an additional fix that is part of the work needed to finish the launcher implementation for RT-27054. The partial fix for the SwingInterop case will be tracked here by this JIRA (RT-27916).
29-01-2013