JDK-8119070 : ExceptionInInitializerError in HelloTableView
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 8
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2013-02-05
  • Updated: 2015-06-17
  • Resolved: 2013-05-22
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
8Resolved
Related Reports
Duplicate :  
Description
8.0-graphics-scrum build#657

Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.NullPointerException
    at com.sun.glass.ui.Screen.getScreens(Unknown Source)
    at com.sun.javafx.tk.quantum.QuantumToolkit.getScreens(QuantumToolkit.java:670)
    at com.sun.javafx.tk.quantum.QuantumToolkit.getMaxPixelScale(QuantumToolkit.java:675)
    at com.sun.javafx.tk.quantum.QuantumToolkit.loadImage(QuantumToolkit.java:683)
    at javafx.scene.image.Image.loadImage(Image.java:952)
    at javafx.scene.image.Image.initialize(Image.java:738)
    at javafx.scene.image.Image.<init>(Image.java:552)
    at helloworld.HelloTableView.<clinit>(HelloTableView.java:283) 
Comments
This is already fixed when running FX 8 with Java 8, by the following: RT-27054
22-05-2013

This should be fixed if you run with the JDK 8 launcher. I will verify this, and if so, resolve it as fixed.
26-04-2013

It has affected more than thousand tests on DnD, which used to transfer image. Looks like it affects any test with images. Raise priority
08-02-2013

The indicated class looks like it is loading an Image in a static class initialization block which may or may not be an appropriate thread to load images from. This may not have caused any problems before because we did not need to know anything about the platform to load an image, but now we must know if the platform has a high resolution display before we load any images so that we can choose the appropriate image to load.
06-02-2013