Details
-
Bug
-
Resolution: Fixed
-
P3
-
8, 9, 10
-
generic
-
windows
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8189781 | 8u172 | Prasanta Sadhukhan | P3 | Resolved | Fixed | b01 |
JDK-8189823 | 8u162 | Prasanta Sadhukhan | P3 | Resolved | Fixed | b03 |
Description
Problem Description:
On second drag it is throwing "Exception in thread "JavaFX Application Thread" java.awt.dnd.InvalidDnDOperationException: Drag and drop in progress"
Steps to Reproduce:
Run the attached program SwingFx.java with -Djavafx.embed.singleThread=true. On second drag we will get the exception.
Issue is reproducible in JDK8, JDK9 build 181 , JDK10 build 24.
Stack trace:
Exception in thread "JavaFX Application Thread" java.awt.dnd.InvalidDnDOperationException: Drag and drop in progress
at java.desktop/sun.awt.dnd.SunDragSourceContextPeer.setDragDropInProgress(SunDragSourceContextPeer.java:357)
at java.desktop/java.awt.dnd.DragSource.startDrag(DragSource.java:303)
at java.desktop/java.awt.dnd.DragSource.startDrag(DragSource.java:422)
at java.desktop/java.awt.dnd.DragGestureEvent.startDrag(DragGestureEvent.java:238)
at SwingFx$2$1.dragGestureRecognized(SwingFx.java:71)
at java.desktop/java.awt.dnd.DragGestureRecognizer.fireDragGestureRecognized(DragGestureRecognizer.java:361)
at javafx.swing/javafx.embed.swing.FXDnD$FXDragGestureRecognizer.fireEvent(FXDnD.java:190)
at javafx.swing/javafx.embed.swing.FXDnD$FXDragGestureRecognizer.access$1000(FXDnD.java:139)
at javafx.swing/javafx.embed.swing.FXDnD.fireEvent(FXDnD.java:200)
at javafx.swing/javafx.embed.swing.FXDnD.lambda$new$1(FXDnD.java:226)
at javafx.swing/javafx.embed.swing.SwingFXUtils.runOnEDTAndWait(SwingFXUtils.java:294)
at javafx.swing/javafx.embed.swing.FXDnD.lambda$new$2(FXDnD.java:226)
at javafx.base/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218)
at javafx.base/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
at javafx.base/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
at javafx.base/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
at javafx.base/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at javafx.base/com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
at javafx.base/com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
at javafx.base/javafx.event.Event.fireEvent(Event.java:198)
at javafx.graphics/javafx.scene.Scene$DnDGesture.fireEvent(Scene.java:3052)
at javafx.graphics/javafx.scene.Scene$DnDGesture.process(Scene.java:3131)
at javafx.graphics/javafx.scene.Scene$DnDGesture.access$8400(Scene.java:3028)
at javafx.graphics/javafx.scene.Scene$MouseHandler.process(Scene.java:3892)
at javafx.graphics/javafx.scene.Scene$MouseHandler.access$1300(Scene.java:3604)
at javafx.graphics/javafx.scene.Scene.processMouseEvent(Scene.java:1874)
at javafx.graphics/javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2613)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:397)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:295)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(GlassViewEventHandler.java:434)
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:433)
at javafx.graphics/com.sun.glass.ui.View.handleMouseEvent(View.java:556)
at javafx.graphics/com.sun.glass.ui.View.notifyMouse(View.java:942)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._enterNestedEventLoopImpl(Native Method)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._enterNestedEventLoop(WinApplication.java:199)
at javafx.graphics/com.sun.glass.ui.Application.enterNestedEventLoop(Application.java:511)
at javafx.graphics/com.sun.glass.ui.EventLoop.enter(EventLoop.java:107)
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.enterNestedEventLoop(QuantumToolkit.java:590)
at javafx.swing/com.sun.javafx.embed.swing.SwingFXUtilsImpl$FwSecondaryLoop.lambda$enter$0(SwingFXUtilsImpl.java:49)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.runAndWait(PlatformImpl.java:440)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.runAndWait(PlatformImpl.java:430)
at javafx.swing/com.sun.javafx.embed.swing.SwingFXUtilsImpl$FwSecondaryLoop.enter(SwingFXUtilsImpl.java:48)
at java.desktop/java.awt.EventQueue$FwSecondaryLoopWrapper.enter(EventQueue.java:1027)
at javafx.swing/javafx.embed.swing.FXDnD$FXDragSourceContextPeer.startDrag(FXDnD.java:315)
at java.desktop/sun.awt.dnd.SunDragSourceContextPeer.startDrag(SunDragSourceContextPeer.java:134)
at java.desktop/java.awt.dnd.DragSource.startDrag(DragSource.java:317)
at java.desktop/java.awt.dnd.DragSource.startDrag(DragSource.java:422)
at java.desktop/java.awt.dnd.DragGestureEvent.startDrag(DragGestureEvent.java:238)
at SwingFx$2$1.dragGestureRecognized(SwingFx.java:71)
at java.desktop/java.awt.dnd.DragGestureRecognizer.fireDragGestureRecognized(DragGestureRecognizer.java:361)
at javafx.swing/javafx.embed.swing.FXDnD$FXDragGestureRecognizer.fireEvent(FXDnD.java:190)
at javafx.swing/javafx.embed.swing.FXDnD$FXDragGestureRecognizer.access$1000(FXDnD.java:139)
at javafx.swing/javafx.embed.swing.FXDnD.fireEvent(FXDnD.java:200)
at javafx.swing/javafx.embed.swing.FXDnD.lambda$new$1(FXDnD.java:226)
at javafx.swing/javafx.embed.swing.SwingFXUtils.runOnEDTAndWait(SwingFXUtils.java:294)
at javafx.swing/javafx.embed.swing.FXDnD.lambda$new$2(FXDnD.java:226)
at javafx.base/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218)
at javafx.base/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
at javafx.base/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
at javafx.base/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
at javafx.base/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at javafx.base/com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
at javafx.base/com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
at javafx.base/javafx.event.Event.fireEvent(Event.java:198)
at javafx.graphics/javafx.scene.Scene$DnDGesture.fireEvent(Scene.java:3052)
at javafx.graphics/javafx.scene.Scene$DnDGesture.process(Scene.java:3131)
at javafx.graphics/javafx.scene.Scene$DnDGesture.access$8400(Scene.java:3028)
at javafx.graphics/javafx.scene.Scene$MouseHandler.process(Scene.java:3892)
at javafx.graphics/javafx.scene.Scene$MouseHandler.access$1300(Scene.java:3604)
at javafx.graphics/javafx.scene.Scene.processMouseEvent(Scene.java:1874)
at javafx.graphics/javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2613)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:397)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:295)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(GlassViewEventHandler.java:434)
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:433)
at javafx.graphics/com.sun.glass.ui.View.handleMouseEvent(View.java:556)
at javafx.graphics/com.sun.glass.ui.View.notifyMouse(View.java:942)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:172)
at java.base/java.lang.Thread.run(Thread.java:844)
On second drag it is throwing "Exception in thread "JavaFX Application Thread" java.awt.dnd.InvalidDnDOperationException: Drag and drop in progress"
Steps to Reproduce:
Run the attached program SwingFx.java with -Djavafx.embed.singleThread=true. On second drag we will get the exception.
Issue is reproducible in JDK8, JDK9 build 181 , JDK10 build 24.
Stack trace:
Exception in thread "JavaFX Application Thread" java.awt.dnd.InvalidDnDOperationException: Drag and drop in progress
at java.desktop/sun.awt.dnd.SunDragSourceContextPeer.setDragDropInProgress(SunDragSourceContextPeer.java:357)
at java.desktop/java.awt.dnd.DragSource.startDrag(DragSource.java:303)
at java.desktop/java.awt.dnd.DragSource.startDrag(DragSource.java:422)
at java.desktop/java.awt.dnd.DragGestureEvent.startDrag(DragGestureEvent.java:238)
at SwingFx$2$1.dragGestureRecognized(SwingFx.java:71)
at java.desktop/java.awt.dnd.DragGestureRecognizer.fireDragGestureRecognized(DragGestureRecognizer.java:361)
at javafx.swing/javafx.embed.swing.FXDnD$FXDragGestureRecognizer.fireEvent(FXDnD.java:190)
at javafx.swing/javafx.embed.swing.FXDnD$FXDragGestureRecognizer.access$1000(FXDnD.java:139)
at javafx.swing/javafx.embed.swing.FXDnD.fireEvent(FXDnD.java:200)
at javafx.swing/javafx.embed.swing.FXDnD.lambda$new$1(FXDnD.java:226)
at javafx.swing/javafx.embed.swing.SwingFXUtils.runOnEDTAndWait(SwingFXUtils.java:294)
at javafx.swing/javafx.embed.swing.FXDnD.lambda$new$2(FXDnD.java:226)
at javafx.base/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218)
at javafx.base/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
at javafx.base/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
at javafx.base/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
at javafx.base/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at javafx.base/com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
at javafx.base/com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
at javafx.base/javafx.event.Event.fireEvent(Event.java:198)
at javafx.graphics/javafx.scene.Scene$DnDGesture.fireEvent(Scene.java:3052)
at javafx.graphics/javafx.scene.Scene$DnDGesture.process(Scene.java:3131)
at javafx.graphics/javafx.scene.Scene$DnDGesture.access$8400(Scene.java:3028)
at javafx.graphics/javafx.scene.Scene$MouseHandler.process(Scene.java:3892)
at javafx.graphics/javafx.scene.Scene$MouseHandler.access$1300(Scene.java:3604)
at javafx.graphics/javafx.scene.Scene.processMouseEvent(Scene.java:1874)
at javafx.graphics/javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2613)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:397)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:295)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(GlassViewEventHandler.java:434)
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:433)
at javafx.graphics/com.sun.glass.ui.View.handleMouseEvent(View.java:556)
at javafx.graphics/com.sun.glass.ui.View.notifyMouse(View.java:942)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._enterNestedEventLoopImpl(Native Method)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._enterNestedEventLoop(WinApplication.java:199)
at javafx.graphics/com.sun.glass.ui.Application.enterNestedEventLoop(Application.java:511)
at javafx.graphics/com.sun.glass.ui.EventLoop.enter(EventLoop.java:107)
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.enterNestedEventLoop(QuantumToolkit.java:590)
at javafx.swing/com.sun.javafx.embed.swing.SwingFXUtilsImpl$FwSecondaryLoop.lambda$enter$0(SwingFXUtilsImpl.java:49)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.runAndWait(PlatformImpl.java:440)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.runAndWait(PlatformImpl.java:430)
at javafx.swing/com.sun.javafx.embed.swing.SwingFXUtilsImpl$FwSecondaryLoop.enter(SwingFXUtilsImpl.java:48)
at java.desktop/java.awt.EventQueue$FwSecondaryLoopWrapper.enter(EventQueue.java:1027)
at javafx.swing/javafx.embed.swing.FXDnD$FXDragSourceContextPeer.startDrag(FXDnD.java:315)
at java.desktop/sun.awt.dnd.SunDragSourceContextPeer.startDrag(SunDragSourceContextPeer.java:134)
at java.desktop/java.awt.dnd.DragSource.startDrag(DragSource.java:317)
at java.desktop/java.awt.dnd.DragSource.startDrag(DragSource.java:422)
at java.desktop/java.awt.dnd.DragGestureEvent.startDrag(DragGestureEvent.java:238)
at SwingFx$2$1.dragGestureRecognized(SwingFx.java:71)
at java.desktop/java.awt.dnd.DragGestureRecognizer.fireDragGestureRecognized(DragGestureRecognizer.java:361)
at javafx.swing/javafx.embed.swing.FXDnD$FXDragGestureRecognizer.fireEvent(FXDnD.java:190)
at javafx.swing/javafx.embed.swing.FXDnD$FXDragGestureRecognizer.access$1000(FXDnD.java:139)
at javafx.swing/javafx.embed.swing.FXDnD.fireEvent(FXDnD.java:200)
at javafx.swing/javafx.embed.swing.FXDnD.lambda$new$1(FXDnD.java:226)
at javafx.swing/javafx.embed.swing.SwingFXUtils.runOnEDTAndWait(SwingFXUtils.java:294)
at javafx.swing/javafx.embed.swing.FXDnD.lambda$new$2(FXDnD.java:226)
at javafx.base/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218)
at javafx.base/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
at javafx.base/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
at javafx.base/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
at javafx.base/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at javafx.base/com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
at javafx.base/com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
at javafx.base/javafx.event.Event.fireEvent(Event.java:198)
at javafx.graphics/javafx.scene.Scene$DnDGesture.fireEvent(Scene.java:3052)
at javafx.graphics/javafx.scene.Scene$DnDGesture.process(Scene.java:3131)
at javafx.graphics/javafx.scene.Scene$DnDGesture.access$8400(Scene.java:3028)
at javafx.graphics/javafx.scene.Scene$MouseHandler.process(Scene.java:3892)
at javafx.graphics/javafx.scene.Scene$MouseHandler.access$1300(Scene.java:3604)
at javafx.graphics/javafx.scene.Scene.processMouseEvent(Scene.java:1874)
at javafx.graphics/javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2613)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:397)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:295)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(GlassViewEventHandler.java:434)
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:433)
at javafx.graphics/com.sun.glass.ui.View.handleMouseEvent(View.java:556)
at javafx.graphics/com.sun.glass.ui.View.notifyMouse(View.java:942)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:172)
at java.base/java.lang.Thread.run(Thread.java:844)
Attachments
Issue Links
- backported by
-
JDK-8189781 "InvalidDnDOperationException: Drag and drop in progress" while running javafx application with option -Djavafx.embed.singleThread=true
- Resolved
-
JDK-8189823 "InvalidDnDOperationException: Drag and drop in progress" while running javafx application with option -Djavafx.embed.singleThread=true
- Resolved
- relates to
-
JDK-8094457 [SwingNode, DND] : drag-and-drop does not work
- Resolved