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.
Created attachment 102750 [details] Thread dump after undeploying web application when IDE has stopped responding. This happens at least a couple times a week. After undeploying my web application, the IDE stops responding. My web server is Tomcat 5.5.29 and the project is a maven web application (war) project. Thread dump attached.
More Information: I undeployed the web application from the Tomcat 5.5 server node in services tab, then clicked on the server node. That's when I noticed it had stopped responding.
Happened again today. I'm attaching a new thread dump. I've been running my Tomcat server in debug mode, if that helps.
Created attachment 102760 [details] Thread dump of IDE after it stopped responding. Same steps to repeat as before, I right-clicked on the Tomcat 5.5 web application node in the services tab and undeployed my application. That was when the IDE stopped responding.
Looks like deadlock in html pallete and server tree UI. Jardo, can you look at that and point us to code which should be fixed? Thanks, P.
Created attachment 102818 [details] Another thread dump of IDE after it stopped responding following webapp undeployment. Same steps to reproduce. Third occurrence in 5 days.
I guess that the biggest problem is that org.netbeans.modules.j2ee.deployment.impl.ui.InstanceTargetXNode.getCookie(InstanceTargetXNode.java:127) needs write access to Children hierarchy to return its value. If you can eliminate that, the deadlock shall be gone. At least I think as the AWT access looks like read only request, so other requests can run in parallel (unless they require Children.MUTEX.writeAccess).
Fixed in web-main de7e01ff462a.
Integrated into 'main-golden', will be available in build *201011100000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/de7e01ff462a User: Petr Hejl <phejl@netbeans.org> Log: #191535 IDE stopped responding after undeploying web application