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 11338 - IDE refusing to exit
Summary: IDE refusing to exit
Alias: None
Product: ide
Classification: Unclassified
Component: Internal Server (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker with 1 vote (vote)
Assignee: _ rkubacki
: 11060 (view as bug list)
Depends on:
Blocks: 11060
  Show dependency tree
Reported: 2001-04-12 09:02 UTC by David Strupl
Modified: 2013-10-21 00:47 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

Thread dump (10.87 KB, text/plain)
2001-07-20 20:38 UTC, David Strupl
Full Dump (8.27 KB, text/plain)
2002-01-24 17:54 UTC, virshu
Full Dump for NB 3.3.1 RC2 (12.90 KB, text/plain)
2002-01-24 18:36 UTC, virshu
NetBeans freezes when trying to stop HttpServer (8.41 KB, text/plain)
2002-01-24 18:48 UTC, virshu

Note You need to log in before you can comment on or make changes to this bug.
Description David Strupl 2001-04-12 09:02:21 UTC
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
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.
Comment 1 David Strupl 2001-04-12 09:02:58 UTC
Created attachment 1093 [details]
Thread dump
Comment 2 pollock 2001-04-19 14:25:24 UTC
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 

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.

Comment 3 Petr Jiricka 2001-04-21 16:26:39 UTC
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 (
Comment 4 pollock 2001-04-23 13:12:38 UTC
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.

I also have cygwin installed.

What other information would you like?


Comment 5 Jan Chalupa 2001-05-05 22:33:31 UTC
Target milestone -> 3.3
Comment 6 _ rkubacki 2001-10-01 10:10:52 UTC

*** This issue has been marked as a duplicate of 16036 ***
Comment 7 Peter W Carlson 2002-01-17 23:04:29 UTC
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.
Comment 8 _ rkubacki 2002-01-18 15:11:42 UTC
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.
Comment 9 virshu 2002-01-24 17:54:50 UTC
Created attachment 4403 [details]
Full Dump
Comment 10 virshu 2002-01-24 17:58:25 UTC
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 
Comment 11 _ rkubacki 2002-01-24 18:08:44 UTC
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.
Comment 12 virshu 2002-01-24 18:35:59 UTC
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
Comment 13 virshu 2002-01-24 18:36:41 UTC
Created attachment 4405 [details]
Full Dump for NB 3.3.1 RC2
Comment 14 virshu 2002-01-24 18:47:17 UTC
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 
Comment 15 virshu 2002-01-24 18:48:03 UTC
Created attachment 4407 [details]
NetBeans freezes when trying to stop HttpServer
Comment 16 eadams 2002-01-25 14:04:23 UTC
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?
Comment 17 Jan Chalupa 2002-01-25 14:31:22 UTC
Waiver approved by QA.
Comment 18 _ rkubacki 2002-02-25 09:19:56 UTC
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.

Comment 19 _ rkubacki 2002-02-25 09:30:57 UTC
*** Issue 11060 has been marked as a duplicate of this issue. ***
Comment 20 Oleg Khokhlov 2002-03-20 13:52:35 UTC
OK. I close this bug.