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 12805 - any program executed with external executor cause hangup during IDE shutdown
Summary: any program executed with external executor cause hangup during IDE shutdown
Status: CLOSED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: anovak
URL:
Keywords:
: 12804 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-06-13 09:59 UTC by Adam Sotona
Modified: 2008-12-22 21:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Sotona 2001-06-13 09:59:42 UTC
If any program is executed (and running) with external executor IDE does not 
return to command line.
All windows are closed, but Java does not finish and stack trace is not 
available.

This bug causes big problem for automatic tests runtime.
Comment 1 Adam Sotona 2001-06-13 10:22:45 UTC
*** Issue 12804 has been marked as a duplicate of this issue. ***
Comment 2 Adam Sotona 2001-06-14 10:50:58 UTC
my suggested fix is in org.netbeans.core.execution.TaskThreadGroup method 
waitFor():
catch InterruptedException outside while cycle allow to interrupt this thread

    /** blocks until this ThreadGroup die - isProcessDead = true
    */
   void waitFor() {
        synchronized (TIMER) {
            try {
                while (! isProcessDead()) {
                    if (Thread.currentThread() instanceof RunClassThread)
                        runClassThreadOut = true;
                    TIMER.wait(1000);
                }
            } catch (InterruptedException ex) { //this solves the problem
            } finally {
                TIMER.notifyAll();
                dead = true;
            }
        }
    }
Comment 3 anovak 2001-08-22 10:19:43 UTC
Works for me on Solaris and Windows with jdk1.3.1.
Comment 4 Quality Engineering 2003-07-01 15:54:36 UTC
Resolved for 3.4.x or earlier, no new info since then -> verified.

Comment 5 Quality Engineering 2003-07-01 16:37:59 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.