Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 387686

Summary: Drag&Drop error in controls demo
Product: [RT] RAP Reporter: Ralf Sternberg <rsternberg>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: tbuschto
Version: 1.5   
Target Milestone: 2.0 M3   
Hardware: PC   
OS: Linux   
Whiteboard: sr152

Description Ralf Sternberg CLA 2012-08-21 09:18:25 EDT
Happens in the Drag & Drop tab in the controls demo: Drag the rectangle "Drag Source Label" on the left onto the "Drag Target Label" on the right. Then do the same thing again.
-> HTTP 500

org.eclipse.swt.SWTException: Data does not have correct format for type
	at org.eclipse.swt.dnd.DND.error(DND.java:264)
	at org.eclipse.swt.dnd.DND.error(DND.java:215)
	at org.eclipse.swt.dnd.TextTransfer.javaToNative(TextTransfer.java:67)
	at org.eclipse.swt.internal.widgets.displaykit.DNDSupport.transferData(DNDSupport.java:411)
	at org.eclipse.swt.internal.widgets.displaykit.DNDSupport.processDragFinished(DNDSupport.java:279)
	at org.eclipse.swt.internal.widgets.displaykit.DNDSupport.access$6(DNDSupport.java:251)
	at org.eclipse.swt.internal.widgets.displaykit.DNDSupport$1.run(DNDSupport.java:111)
	at org.eclipse.rap.rwt.lifecycle.ProcessActionRunner.executeNext(ProcessActionRunner.java:56)
	at org.eclipse.swt.widgets.Display.runPendingMessages(Display.java:1143)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1135)
	at org.eclipse.rap.demo.controls.ControlsDemo.createUI(ControlsDemo.java:43)
	at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:177)
	at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:289)
	at java.lang.Thread.run(Thread.java:722)
	at org.eclipse.rap.rwt.internal.lifecycle.UIThread.run(UIThread.java:102)
Comment 1 Ivan Furnadjiev CLA 2012-10-02 06:17:34 EDT
Canceling of dragStart event was not handled on the client after the protocol migration. Fixed with commit c4bebcb6d3bd6b53940678df252b745be93d8350.
Comment 2 Ivan Furnadjiev CLA 2012-10-02 06:18:13 EDT
Marked as fixed.
Comment 3 Ralf Sternberg CLA 2013-01-14 11:18:14 EST
Looks like a safe fix for 1.5.2
Comment 4 Ivan Furnadjiev CLA 2013-01-21 06:01:02 EST
Backported to 1.5-maintenance branch with commit d1317204bc4ed439f45378f5b2052fb366c4ebfd.