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 191535 - IDE stopped responding after undeploying web application
Summary: IDE stopped responding after undeploying web application
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 6.x
Hardware: PC Windows 7 x64
: P2 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-01 18:44 UTC by rptmaestro
Modified: 2010-11-10 06:14 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump after undeploying web application when IDE has stopped responding. (28.13 KB, text/plain)
2010-11-01 18:44 UTC, rptmaestro
Details
Thread dump of IDE after it stopped responding. (24.87 KB, text/plain)
2010-11-02 18:21 UTC, rptmaestro
Details
Another thread dump of IDE after it stopped responding following webapp undeployment. (29.64 KB, text/plain)
2010-11-05 15:37 UTC, rptmaestro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rptmaestro 2010-11-01 18:44:50 UTC
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.
Comment 1 rptmaestro 2010-11-01 18:49:06 UTC
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.
Comment 2 rptmaestro 2010-11-02 18:14:44 UTC
Happened again today. I'm attaching a new thread dump. I've been running my Tomcat server in debug mode, if that helps.
Comment 3 rptmaestro 2010-11-02 18:16:57 UTC
Happened again today. I'm attaching a new thread dump. I've been running my Tomcat server in debug mode, if that helps.
Comment 4 rptmaestro 2010-11-02 18:21:00 UTC
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.
Comment 5 Petr Hejl 2010-11-05 10:07:25 UTC
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.
Comment 6 rptmaestro 2010-11-05 15:37:56 UTC
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.
Comment 7 Jaroslav Tulach 2010-11-08 12:28:14 UTC
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).
Comment 8 Petr Hejl 2010-11-08 15:21:57 UTC
Fixed in web-main de7e01ff462a.
Comment 9 Quality Engineering 2010-11-10 06:14:46 UTC
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