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

[SWT, Swing] DnD cannot be done with image data type

    Details

      Description

      Here is an exception :

      Exception in thread "JavaFX Application Thread" org.eclipse.swt.SWTException: Data does not have correct format for type
      at org.eclipse.swt.dnd.DND.error(Unknown Source)
      at org.eclipse.swt.dnd.DND.error(Unknown Source)
      at org.eclipse.swt.dnd.ImageTransfer.javaToNative(Unknown Source)
      at org.eclipse.swt.dnd.DragSource.GetData(Unknown Source)
      at org.eclipse.swt.dnd.DragSource.access$7(Unknown Source)
      at org.eclipse.swt.dnd.DragSource$4.method3(Unknown Source)
      at org.eclipse.swt.internal.ole.win32.COMObject.callback3(Unknown Source)
      at org.eclipse.swt.internal.ole.win32.COM.VtblCall(Native Method)
      at org.eclipse.swt.internal.ole.win32.IDataObject.GetData(Unknown Source)
      at org.eclipse.swt.dnd.Transfer.getData(Unknown Source)
      at org.eclipse.swt.dnd.ImageTransfer.nativeToJava(Unknown Source)
      at org.eclipse.swt.dnd.DropTarget.Drop(Unknown Source)
      at org.eclipse.swt.dnd.DropTarget.Drop_64(Unknown Source)
      at org.eclipse.swt.dnd.DropTarget$3.method6(Unknown Source)
      at org.eclipse.swt.internal.ole.win32.COMObject.callback6(Unknown Source)
      at org.eclipse.swt.internal.ole.win32.COM.DoDragDrop(Native Method)
      at org.eclipse.swt.dnd.DragSource.drag(Unknown Source)
      at org.eclipse.swt.dnd.DragSource.access$0(Unknown Source)
      at org.eclipse.swt.dnd.DragSource$1.handleEvent(Unknown Source)
      at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
      at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
      at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
      at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
      at org.eclipse.swt.widgets.Widget.notifyListeners(Unknown Source)
      at javafx.embed.swt.FXCanvas$HostContainer$3$1.run(FXCanvas.java:823)
      at com.sun.javafx.application.PlatformImpl$5$1.run(PlatformImpl.java:239)
      at com.sun.javafx.application.PlatformImpl$5$1.run(PlatformImpl.java:236)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:236)
      at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
      at com.sun.glass.ui.win.WinApplication._enterNestedEventLoopImpl(Native Method)
      at com.sun.glass.ui.win.WinApplication._enterNestedEventLoop(WinApplication.java:129)
      at com.sun.glass.ui.Application.enterNestedEventLoop(Application.java:456)
      at com.sun.glass.ui.EventLoop.enter(EventLoop.java:107)
      at com.sun.javafx.tk.quantum.QuantumToolkit.enterNestedEventLoop(QuantumToolkit.java:652)
      at com.sun.javafx.tk.quantum.FxEventLoop$Impl.start(FxEventLoop.java:72)
      at com.sun.javafx.tk.quantum.FxEventLoop.enterNestedLoop(FxEventLoop.java:118)
      at com.sun.javafx.tk.quantum.EmbeddedSceneDnD$ClipboardAssistanceImpl.flush(EmbeddedSceneDnD.java:189)
      at com.sun.javafx.tk.quantum.QuantumClipboard.flush(QuantumClipboard.java:260)
      at com.sun.javafx.tk.quantum.QuantumToolkit.startDrag(QuantumToolkit.java:1306)
      at javafx.scene.Scene$DnDGesture.dragDetectedProcessed(Scene.java:2918)
      at javafx.scene.Scene$DnDGesture.process(Scene.java:2979)
      at javafx.scene.Scene$DnDGesture.access$8800(Scene.java:2874)
      at javafx.scene.Scene$MouseHandler.process(Scene.java:3638)
      at javafx.scene.Scene$MouseHandler.process(Scene.java:3453)
      at javafx.scene.Scene$MouseHandler.access$1900(Scene.java:3405)
      at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1697)
      at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2473)
      at com.sun.javafx.tk.quantum.EmbeddedScene$2$1.run(EmbeddedScene.java:208)
      at com.sun.javafx.tk.quantum.EmbeddedScene$2$1.run(EmbeddedScene.java:196)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.javafx.tk.quantum.EmbeddedScene$2.run(EmbeddedScene.java:196)
      at com.sun.javafx.application.PlatformImpl$5$1.run(PlatformImpl.java:239)
      at com.sun.javafx.application.PlatformImpl$5$1.run(PlatformImpl.java:236)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:236)
      at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
      at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
      at org.eclipse.swt.internal.win32.OS.DispatchMessage(Unknown Source)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
      at test.javaclient.shared.InteroperabilityApp$3.run(InteroperabilityApp.java:199)
      at java.lang.Thread.run(Thread.java:724)

        Attachments

          Activity

            People

            • Assignee:
              snorthov Steve Northover (Inactive)
              Reporter:
              akirov Alexander Kirov (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: