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.
[linux, JDK 1.5.0_04, NB built from CVS 2005-07-08] Somewhat I got the window layout to the state (see attached screenshot) when I cannot drag the Navigator back to its normal position anymore. The Navigator is now docked to the output window (bottom) area. The output window shrinks to make room for the navigator. I want to expand the width of the output window again and make the navigator occupy the bottom half of the projects tab (the default) layout. I try to DnD the Navigator and the Output window but couldn't get it work. The feedback (the red rectangle) indicates that if I release the mouse button I would get what I want but when I release the button nothing happens. The navigator/output window doesn't move the the drop area indicated by the red rectangle. I am stuck.
Created attachment 23039 [details] Dragging Navigator without any effect
Created attachment 23041 [details] Dragging Output window without any effect
Created attachment 23042 [details] config/Windows2Local dir
in var/log/messages.log there is no exception
Trung is right , reproducible on Linux RH 9 / Gnome
Passing to Standa.
I experienced this bug when I started the latest NetBeans build (just created from the updated sources, update finished at about 16 Sep 2005, 11:10 AM CET) with a clean user dir. I closed the Runtime and Files windows, then I tried to drag the Navigator window over the Projects window (so that there would be a single window with two tabs for Projects and Navigator). I got three error messages and an exception. I accidentally killed that instance of NetBeans so I lost the three messages (they did not get to the IDE log). I think they all started with "_X" and at least one of them contained information about some failure of X socket(). Immediately below the three lines of error messages, the following exception was dumped: java.awt.dnd.InvalidDnDOperationException: The operation requested cannot be performed by the DnD system since it is not in the appropriate state at sun.awt.X11.XDragSourceContextPeer.startDrag(XDragSourceContextPeer.java:156) at sun.awt.dnd.SunDragSourceContextPeer.startDrag(SunDragSourceContextPeer.java:111) at java.awt.dnd.DragSource.startDrag(DragSource.java:306) at java.awt.dnd.DragSource.startDrag(DragSource.java:376) at java.awt.dnd.DragGestureEvent.startDrag(DragGestureEvent.java:247) [catch] at org.netbeans.core.windows.view.dnd.TopComponentDragSupport .doStartDrag(TopComponentDragSupport.java:365) at org.netbeans.core.windows.view.dnd.TopComponentDragSupport .eventDispatched(TopComponentDragSupport.java:287) at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Toolkit.java:2297) ... I will attach the full callstack of the exception.
Created attachment 24870 [details] DnD exceptions
I am able to reproduce it. I am running NB on JDK 1.6.0, b51. The three messages I lost the last time were the following: _X11TransSocketOpen: socket() failed for local _X11TransSocketOpenCOTSClient: Unable to open socket for local _X11TransOpen: transport open failed for local/petras-ws.czech.sun.com:0
this looks more like a bug in jdk or in gnome, see also issue #63800 that produces the same exception.
i can reproduce this problem on older netbeans builds but it works fine for me in the latest ones. the stack trace posted by mpetras is most likely related to a different bug as the exception occurs while the drag operation is starting, not during the drag itself.
I am also not able to reproduce it anymore.
I did not not experience the bug in the last week, either.
Should I file another issue for the exception I get (during start of DnD)? It happened again today (NB 20051108-1436, JDK 6.0 b59, Linux), I just wanted to swap the first two tabs in the editor. I noticed the exception mentioned in JDK bug 6342381 (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6342381) but I did not find it recorded separately or being solved. Do you keep track of drag'n'drop bugs in the JDK? (product "java", category "java", subcategory "dragndrop")
I found that the exception I encountered during start of DnD operation has been already reported as JDK bug 5069437 (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5069437), currently marked as not reproducible.
mpetras: you can add your stack trace and description to issue #63800 as it is a very similar problem.
still cannot reproduce -> decreasing priority to P3
There is a similar bug in the JDK, but it is specific to the middle mouse button only: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4955110
i think this issue is related to this JDK bug: http://bt2ws.central.sun.com/CrPrint?id=6623554 closing