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.
The bug was originally reported against projects. The fact that project module was not able to recover is being solved in project module. See bug http://www.netbeans.org/issues/show_bug.cgi?id=11275 I am pasting the Jonathan's description here : I can recreate the IDE refusing to exit problem, by performing the following steps: 1) remove all files in my -userdir directory. 2) runide (will create new files in -userdir directory. 3) select finish and do not import any settings. 4) select finish for initial setup. 5) click close on the tip that comes up. 6) after IDE starts, select exit. (IDE shutsdown successfully). 7) runide (will simply open the IDE). 8) click close on the tip that comes up. 9) select exit. (IDE does not finish. Says, "Debugger Finished" in status bar, but stays active. I will attach a thread dump for the state after #9.
Created attachment 1093 [details] Thread dump
I just did some additional testing, when I noticed that David created this bug against the httpserver product. I deleted my user directory and restarted the IDE. I then de-selected the httpserver module, so that it never starts. Now the IDE closes just fine each time. It'll work for me for the time being, but as soon as I want to do anything with JSP or the httpserver module, I'll be out of luck. Thanks
This bug only seems to appear on some configurations, I can not reproduce it on my Windows 2000 system. The behavior can be improved by not starting the server by default, that way users who do not used the HTTP server will not be affected. See also bug 11347 (http://www.netbeans.org/issues/show_bug.cgi?id=11347).
I think that's a good idea, but eventually it'll have to start, at which point the problem will resurface. It's only not a problem for me right now, because I'm focusing on a swing project. I am going to be moving onto a Java Server Page project shortly and would love to have this fixed. I am currently running Windows 2000 (rel: 5.00.2195), I have installed the following Hotfixes: Q252667, Q253934, Q259728, Q280838. For kicks, I also have the UnxUtils installed, so that I can do ls, tar, ... from the dos prompt. http://unxutils.sourceforge.net. I also have cygwin installed. What other information would you like? Thanks, -jonp
Target milestone -> 3.3
*** This issue has been marked as a duplicate of 16036 ***
This is a duplicate of 16036, which in turn is a duplicate of 11060. 11060 lists this bug (11338) as blocking it. We're in a loop here and it's never going to get fixed.
It looks that we are not able to fix this. Also we are not able to reproduce it neither in reported version nor in current one. According to thread dump it is also likely that this can be fixed now because the code in httpserver and in module starting/stopping is changed.
Created attachment 4403 [details] Full Dump
Actually, it got worse. If I enable HTTP server, NetBeans still freezes on exit (I attached a file with startup information and a full dump). However, if I cancel through Ctrl-C, it now freezes when I try to start it next time. The console goes through usual startup and gives the following message path="" :jsp: init Internal HTTP server running on port 8082 and GUI hangs with a message in splash screen saying "Opening Project Foo"
Can you reproduce it with latest version of IDE - NetBeans3.3 is our current release. Or it would be great if you was able to try it with NB3.3.1 release candidate. The things are changed from NB3.2 and stopping httpserver should not block NbTopManager anymore.
My previous problem report applied to NB 3.3. I just installed 3.3.1 RC2 and the original problem (freezes on exit) is still there. The "worse" problem (NB doesn't start after that) is gone. I attached a dump from 3.3.1 RC 2
Created attachment 4405 [details] Full Dump for NB 3.3.1 RC2
I forgot to mention that if I go to Options - HTTP Server and try to set Running back to False (which I presume tries to stops the server) the system freezes as well. The dump seems somewhat different from the one that I get on exit, so it may be useful to you as well (httpstop331.txt)
Created attachment 4407 [details] NetBeans freezes when trying to stop HttpServer
Waiver Approved. It is clear that we don't understand this bug well enough to fix it for NB 3.3.1. However, I strongly encourage that we continue to work on this problem and produce and AutoUpdate fix once we have the problem resolved. The problem was first reported last April and Petr J suggested a workaround. Then the bug did not receive any serious attention until Jan 18 of this year. It was then too late for NB 3.3.1. Lets not repeat this process. Radim can you work with Felix and Peter to find a solution?
Waiver approved by QA.
After a discussion between Felix and people from JDK team that included couple of tests to check what exactly is happening it showed that Windows hangs in closesocket. It appears there's a combination drivers and other components on Windows 2000 SP2 to cause this to happen. New bug is enter on Java BugParade to track this because the issue is not NetBeans specific. I am closing this as invalid and adding link to relevant issue. http://developer.java.sun.com/developer/bugParade/bugs/4641929.html
*** Issue 11060 has been marked as a duplicate of this issue. ***
OK. I close this bug.