This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 63800 - I've got InvalidDnDOperationException: The operation requested cannot be performed by the DnD system since it is not in the appropriate state
Summary: I've got InvalidDnDOperationException: The operation requested cannot be perf...
Status: VERIFIED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Palette (show other bugs)
Version: 5.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: JDK_SPECIFIC
: 152319 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-07 15:27 UTC by Marian Mirilovic
Modified: 2008-12-22 12:01 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack-trace (3.30 KB, text/plain)
2005-09-07 15:28 UTC, Marian Mirilovic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2005-09-07 15:27:37 UTC
NB5.0(200509051800), JDK 6.0 (b49)

Steps to reproduce:
- run IDE
- open project and add JFrame
- try to DnD component from the palette to the designer
-> once I got over the designer, I am getting this exception
(see attachment)
Comment 1 Marian Mirilovic 2005-09-07 15:28:08 UTC
Created attachment 24577 [details]
stack-trace
Comment 2 Stanislav Aubrecht 2005-09-12 16:15:42 UTC
it works for me in netbeans 050912, windows xp

what is your operating system?
Comment 3 Marian Mirilovic 2005-09-12 16:22:54 UTC
Linux RH 9 / Gnome
Comment 4 Tomas Danek 2005-09-14 12:39:09 UTC
also cannot reproduce on XP, 20050913
Comment 5 fds 2005-11-10 13:59:00 UTC
The problem still exists. I used Red Hat Enterprise Linux AS release 3 with 
GNOME installed by default. I ran it using remote display on Reflection X10. So 
the process was not fast. I noticed that sometimes window manager was dragging  
windows though I had released mouse button and just move a pointer.

According to JavaDoc for java.awt.dnd.DragSource

"When a drag gesture occurs, the DragSource's startDrag() method shall be 
invoked in order to cause processing of the user's navigational gestures and 
delivery of Drag and Drop protocol notifications. A DragSource shall only permit 
a single Drag and Drop operation to be current at any one time, and shall reject 
any further startDrag() requests by throwing an IllegalDnDOperationException 
until such time as the extant operation is complete."

So the problem could be in

- window manager works wrong way and somehow consumes key event which indicate 
that darg was finished
- NetBeans code tries to invoke startDrag() twice (it is possible that NetBeans 
does not finish previous drag operation)
Comment 6 Marian Petras 2005-11-14 13:03:06 UTC
This bug has been already reported as JDK bug 5069437
(http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5069437), currently marked
as not reproducible. See the latest entries in the evaluation section of the bug
report. I recommend you add yourself to the Cc: list of the bug report.

Btw. I think this bug in not specific to DnD in the palette. For me, once I get
the exception, I cannot DnD anything in the whole IDE.
Comment 7 Stanislav Aubrecht 2007-01-10 16:11:41 UTC
jdk problem, no workaround available - closing
Comment 8 Marian Mirilovic 2007-04-06 09:10:52 UTC
verified
Comment 9 Stanislav Aubrecht 2008-11-24 09:33:10 UTC
*** Issue 152319 has been marked as a duplicate of this issue. ***