United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6600301 Dragging of any component in NetBeans IDE hangs IDE
6600301 : Dragging of any component in NetBeans IDE hangs IDE

Details
Type:
Bug
Submit Date:
2007-09-03
Status:
Closed
Updated Date:
2011-05-13
Project Name:
JDK
Resolved Date:
2011-05-13
Component:
client-libs
OS:
solaris_10
Sub-Component:
java.awt
CPU:
sparc
Priority:
P4
Resolution:
Cannot Reproduce
Affected Versions:
5.0u12
Fixed Versions:

Related Reports
Relates:

Sub Tasks

Description
It is external report. I will attach thread dump after Java hangs. I am not able to reproduce this problem. Original report is at http://www.netbeans.org/issues/show_bug.cgi?id=113900. Problem seems to be in AWT. Original reporter has 2 CPU machine. I do not have currently access to 2 CPU Sparc with Solaris 10. I tested on 1 CPU Solaris 10 and 2 CPU machine with Solaris 11. On JDK 5.0u12 it hangs - thread dump is attached. I also asked reporter to install recommended OS patches but it did not solve this problem. Reporter is able to reproduce this problem so if you will have further questions I can ask him. On JDK 6u2 following exception is raised:

"A java.awt.dnd.InvalidDnDOperationException exception has occured.
However, the system should continue working without further problems.
Click Show Details for the stack trace."

java.awt.dnd.InvalidDnDOperationException: Already initialized
	at sun.awt.X11.XDragSourceProtocol.initializeDrag(XDragSourceProtocol.java:76)
	at sun.awt.X11.XDragSourceContextPeer.startDrag(XDragSourceContextPeer.java:153)
	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)
	at org.netbeans.core.windows.view.dnd.TopComponentDragSupport.doStartDrag(TopComponentDragSupport.java:359)
	at org.netbeans.core.windows.view.dnd.TopComponentDragSupport.eventDispatched(TopComponentDragSupport.java:292)
	at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Toolkit.java:2360)
	at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2251)
	at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2251)
	at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2251)
	at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2251)
	at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2251)
	at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2251)
	at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2251)
	at java.awt.Toolkit.notifyAWTEventListeners(Toolkit.java:2210)
	at java.awt.Component.dispatchEventImpl(Component.java:4308)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4240)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4003)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
	at java.awt.Container.dispatchEventImpl(Container.java:2102)
	at java.awt.Window.dispatchEventImpl(Window.java:2429)
	at java.awt.Component.dispatchEvent(Component.java:4240)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

                                    

Comments
EVALUATION

I see here two different problems.

1. NetBeans with 5.0 hangs.
It would be very usefull to get stack trace when Netbeans hangs. For this run netbeans from the remote console. Reproduce the problem and press CTRL+\ keyboard shortcut in the console. The output could give some useful information about the problem.

2. Exception occurs with 7.0
This exception usualy occurs when AWT and Swing DnD are used together. It could be also because of a problem with Swing DnD usage. I need take a look at the netbeans code where the exception is thrown.
                                     
2007-09-27
EVALUATION

I have downloaded NB 6.0-beta (2007, Sep 14) and tried it with 5.0u4, 5.0u7 and 6u1 with XToolkit and MToolkit. No problems are noticed... I also tested different X11 client-server configurations (both on linux, both on solaris, client on linux + server on solaris) and also without any problems.
                                     
2007-09-21
EVALUATION

Although I am not able to reproduce this problem on my own linux/solaris desktops, I'm leaving this bug opened, but with a lower priority.
                                     
2007-09-21
EVALUATION

I couldn't reproduce the problem with NB 5.5 + JDK5.0u12/JDK6u1 on my linux or solaris (CDE or JDS) desktops. Need more information to proceed. NetBeans bug 113900 is updated correspondingly.
                                     
2007-09-11



Hardware and Software, Engineered to Work Together