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

[JFXPanel] WebView in Applet leads to NullPointerException in setCursor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8u40
    • 8u11, 8u20
    • javafx
    • None
    • Safari 5+, MacOS X 10.9.x

      Dear JavaFX team,

      When WebView inside JFXPanel in Applet on MacOS X within Safari, the WebView dumps the following exception:
      Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
         at sun.awt.SunToolkit.getSystemEventQueueImplPP(SunToolkit.java:1082)
         at sun.awt.SunToolkit.getSystemEventQueueImplPP(SunToolkit.java:1077)
         at sun.awt.SunToolkit.getSystemEventQueueImpl(SunToolkit.java:1072)
         at java.awt.Toolkit.getEventQueue(Toolkit.java:1734)
         at java.awt.EventQueue.invokeLater(EventQueue.java:1252)
         at javax.swing.SwingUtilities.invokeLater(SwingUtilities.java:1290)
         at javafx.embed.swing.JFXPanel$HostContainer.setCursor(JFXPanel.java:876)
         at com.sun.javafx.tk.quantum.EmbeddedScene.setCursor(EmbeddedScene.java:314)
         at javafx.scene.Scene$MouseHandler.updateCursorFrame(Scene.java:3857)
         at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2407)
         at com.sun.javafx.tk.Toolkit.lambda$runPulse$28(Toolkit.java:314)
         at com.sun.javafx.tk.Toolkit$$Lambda$114/1581091068.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.javafx.tk.Toolkit.runPulse(Toolkit.java:313)
         at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:340)
         at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:451)
         at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:431)
         at com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$363(QuantumToolkit.java:298)
         at com.sun.javafx.tk.quantum.QuantumToolkit$$Lambda$59/1564976993.run(Unknown Source)
         at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)

      Easy to reproduce:
       - simple Swing application with JFPanel and WebView inside
       - Open page with Applet in Safari on MacOS X
       - navigate to any web site inside your webview control
       - move mouse over webview -> dump in Console

      With Best Regards,
      Mykola Gorbrov

            ant Anton Tarasov (Inactive)
            mykolagorjfx MykolaGorbarov_SAP (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: