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 48408 - [40cat] ITSE from ProcessDestroyer.removeShutdownHook
Summary: [40cat] ITSE from ProcessDestroyer.removeShutdownHook
Status: RESOLVED DUPLICATE of bug 85686
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: RANDOM
: 51554 51912 70515 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-02 17:27 UTC by skesper
Modified: 2006-11-02 00:21 UTC (History)
0 users

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 skesper 2004-09-02 17:27:39 UTC
[ BUILD # : 200408291800 ]
[ JDK VERSION : J2SE 1.5.0 ]

Somewhere in between... Exceptions just has been printed out after execution of a Java Main class:

java.lang.IllegalThreadStateException
	at java.lang.ThreadGroup.add(ThreadGroup.java:856)
	at java.lang.Thread.start(Thread.java:573)
	at org.apache.tools.ant.taskdefs.ProcessDestroyer.removeShutdownHook(ProcessDestroyer.java:145)
	at org.apache.tools.ant.taskdefs.ProcessDestroyer.remove(ProcessDestroyer.java:198)
	at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:487)
	at org.apache.tools.ant.taskdefs.Java.fork(Java.java:746)
	at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:170)
	at org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
	at org.apache.tools.ant.Task.perform(Task.java:364)
	at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
	at org.apache.tools.ant.Task.perform(Task.java:364)
	at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:377)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
	at org.apache.tools.ant.Task.perform(Task.java:364)
	at org.apache.tools.ant.Target.execute(Target.java:341)
	at org.apache.tools.ant.Target.performTasks(Target.java:369)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
	at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:216)
	at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:230)
	at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
Comment 1 Jesse Glick 2004-09-02 18:53:39 UTC
I think I've seen that one once before as well. No idea what causes
it. Seems to happen rarely. No known ill effect.
Comment 2 Jesse Glick 2004-11-22 13:52:00 UTC
*** Issue 51554 has been marked as a duplicate of this issue. ***
Comment 3 Jesse Glick 2004-12-03 19:40:13 UTC
*** Issue 51912 has been marked as a duplicate of this issue. ***
Comment 4 martinlester 2005-10-04 17:17:59 UTC
I have found this error very easy to reproduce by following these steps.

1- Build a medium sized project (so it takes a few moments to start up)
2- Using the short cut key, quickly run 2 instances of the project (i.e. 
double tap F6)
3- Close each instance of the project as soon as it loads.
4- On close of the second instance the above ITSE error is usually generated.

Though I have never found any ill effects because of this error, I did spend 
quite a long time trying to work out if I was causing it. It seemed to start 
once I added threads to my own code. However these threads are not run at 
start up.

I am using build 200505031930 on WinXP 5.1
Comment 5 Jesse Glick 2005-12-16 21:24:26 UTC
*** Issue 70515 has been marked as a duplicate of this issue. ***
Comment 6 Jesse Glick 2006-11-02 00:21:02 UTC

*** This issue has been marked as a duplicate of 85686 ***