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

SB clipboard handling is not resilient enough

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • 8
    • javafx
    • None

    Description

      To reproduce:
      -start the tool from source
      -press PrintScreen button
      -try to invoke Edit menu item
      -get the exception:


      Exception in thread "JavaFX Application Thread" java.lang.IllegalStateException: Bug in FXOMRefresher: FXML dumped in C:\Users\...\AppData\Local\Temp\DTL-5996-4170015621759077780.fxml
       at com.oracle.javafx.scenebuilder.kit.fxom.FXOMRefresher.refresh(FXOMRefresher.java:78)
       at com.oracle.javafx.scenebuilder.kit.fxom.FXOMDocument.refreshSceneGraph(FXOMDocument.java:256)
       at com.oracle.javafx.scenebuilder.kit.fxom.FXOMDocument.endUpdate(FXOMDocument.java:243)
       at com.oracle.javafx.scenebuilder.kit.fxom.FXOMDocument.setFxomRoot(FXOMDocument.java:160)
       at com.oracle.javafx.scenebuilder.kit.metadata.util.ClipboardDecoder.makeFxomDocumentFromImageURL(ClipboardDecoder.java:188)
       at com.oracle.javafx.scenebuilder.kit.metadata.util.ClipboardDecoder.makeFxomDocumentFromImageURL(ClipboardDecoder.java:153)
       at com.oracle.javafx.scenebuilder.kit.metadata.util.ClipboardDecoder.decode(ClipboardDecoder.java:111)
       at com.oracle.javafx.scenebuilder.kit.editor.job.PasteJob.makeSubJobs(PasteJob.java:73)
       at com.oracle.javafx.scenebuilder.kit.editor.job.v2.CompositeJob.getSubJobs(CompositeJob.java:64)
       at com.oracle.javafx.scenebuilder.kit.editor.job.v2.CompositeJob.isExecutable(CompositeJob.java:84)
       at com.oracle.javafx.scenebuilder.kit.editor.EditorController.canPerformEditAction(EditorController.java:1008)
       at com.oracle.javafx.scenebuilder.app.menubar.MenuBarController$EditActionController.canPerform(MenuBarController.java:1292)
       at com.oracle.javafx.scenebuilder.app.menubar.MenuBarController.handleOnMenuValidation(MenuBarController.java:909)
       at com.oracle.javafx.scenebuilder.app.menubar.MenuBarController.access$700(MenuBarController.java:84)
       at com.oracle.javafx.scenebuilder.app.menubar.MenuBarController$13.handle(MenuBarController.java:899)
       at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
       at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
       at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
       at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
       at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
       at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
       at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
       at javafx.event.Event.fireEvent(Event.java:204)
       at javafx.scene.control.Menu.setShowing(Menu.java:169)
       at javafx.scene.control.Menu.show(Menu.java:376)
       at com.sun.javafx.scene.control.skin.MenuBarSkin$23.handle(MenuBarSkin.java:670)
       at com.sun.javafx.scene.control.skin.MenuBarSkin$23.handle(MenuBarSkin.java:662)
       at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
       at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
       at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
       at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
       at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
       at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
       at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
       at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
       at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
       at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
       at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
       at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
       at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
       at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
       at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
       at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
       at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
       at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
       at javafx.event.Event.fireEvent(Event.java:204)
       at javafx.scene.Scene$MouseHandler.process(Scene.java:3684)
       at javafx.scene.Scene$MouseHandler.access$1800(Scene.java:3409)
       at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1671)
       at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2462)
       at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:314)
       at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:243)
       at java.security.AccessController.doPrivileged(Native Method)
       at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:345)
       at com.sun.glass.ui.View.handleMouseEvent(View.java:526)
       at com.sun.glass.ui.View.notifyMouse(View.java:898)
       at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
       at com.sun.glass.ui.win.WinApplication.access$300(WinApplication.java:39)
       at com.sun.glass.ui.win.WinApplication$4$1.run(WinApplication.java:112)
       at java.lang.Thread.run(Thread.java:744)
      Caused by: java.io.IOException: javafx.fxml.LoadException:
      unknown path:9

       at com.oracle.javafx.scenebuilder.kit.fxom.FXOMLoader.load(FXOMLoader.java:86)
       at com.oracle.javafx.scenebuilder.kit.fxom.FXOMDocument.<init>(FXOMDocument.java:74)
       at com.oracle.javafx.scenebuilder.kit.fxom.FXOMRefresher.refresh(FXOMRefresher.java:58)
       ... 59 more
      Caused by: javafx.fxml.LoadException:
      unknown path:9

       at javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2592)
       at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2570)
       at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2400)
       at com.oracle.javafx.scenebuilder.kit.fxom.FXOMLoader.load(FXOMLoader.java:83)
       ... 61 more
      Caused by: java.lang.IllegalArgumentException: URL must not be empty
       at javafx.scene.image.Image.validateUrl(Image.java:1073)
       at javafx.scene.image.Image.<init>(Image.java:671)
       at com.sun.javafx.fxml.builder.JavaFXImageBuilder.build(JavaFXImageBuilder.java:47)
       at com.sun.javafx.fxml.builder.JavaFXImageBuilder.build(JavaFXImageBuilder.java:37)
       at javafx.fxml.FXMLLoader$ValueElement.processEndElement(FXMLLoader.java:755)
       at javafx.fxml.FXMLLoader.processEndElement(FXMLLoader.java:2814)
       at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2507)
       ... 63 more

      Attachments

        Issue Links

          Activity

            People

              eleponn Eric Le Ponner
              dkozorez Dmitry Kozorez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: