Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8087682

Web unit test testDOMWindowAndStyleAccess gets NPE in Utils.getScreen

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 8u60
    • javafx
    • None
    • web

      The web unit tests now run in headless mode to support running them on our headless test machines -- see RT-40716. This results in the following exception in DOMTest.testDOMWindowAndStyleAccess, although the test still passes:

      javafx.scene.web.DOMTest > testDOMWindowAndStyleAccess STANDARD_ERROR
          java.lang.NullPointerException
           at com.sun.javafx.util.Utils.getScreen(Utils.java:687)
           at com.sun.javafx.webkit.WebPageClientImpl.getScreenBounds(WebPageClientImpl.java:110)
           at com.sun.webkit.WCWidget.fwkGetScreenRect(WCWidget.java:118)
           at com.sun.webkit.dom.DOMWindowImpl.resizeByImpl(Native Method)
           at com.sun.webkit.dom.DOMWindowImpl.resizeBy(DOMWindowImpl.java:1151)
           at javafx.scene.web.DOMTest.lambda$testDOMWindowAndStyleAccess$49(DOMTest.java:344)
           at javafx.scene.web.DOMTest$$Lambda$246/30864552.run(Unknown Source)
           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
           at java.util.concurrent.FutureTask.run(FutureTask.java:266)
           at com.sun.javafx.application.PlatformImpl.lambda$null$171(PlatformImpl.java:295)
           at com.sun.javafx.application.PlatformImpl$$Lambda$52/19305760.run(Unknown Source)
           at java.security.AccessController.doPrivileged(Native Method)
           at com.sun.javafx.application.PlatformImpl.lambda$runLater$172(PlatformImpl.java:294)
           at com.sun.javafx.application.PlatformImpl$$Lambda$51/9075867.run(Unknown Source)
           at com.sun.glass.ui.monocle.RunnableProcessor.runLoop(RunnableProcessor.java:92)
           at com.sun.glass.ui.monocle.RunnableProcessor.run(RunnableProcessor.java:51)
           at java.lang.Thread.run(Thread.java:744)

            Unassigned Unassigned
            kcr Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: