DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40726>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40726

           Summary: java.lang.IllegalThreadStateException thrown when
                    terminating several proccesses started via exec task.
           Product: Ant
           Version: 1.6.5
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: [EMAIL PROTECTED]


When running several proccesses of a certain executable (described bellow), and
then closing them all rapidly - one after the other - an
IllegalThreadStateException is being thrown.

When running the same amount of proccesses of  the same executable via a shell
prompt, and rapidly closing them all, no exception is being thrown, hence the
exception doesn't have anything to do with the executables themselves.

Here are some details:
OS: Windows XP
Ant version: 1.6.5
Java version: 1.5.0_08 
The executable is - CDC toolkit beta. (running several emulators and closing 
them).

The stack trace is:
java.lang.IllegalThreadStateException
       at org.apache.tools.ant.Task.perform(Task.java:373)
       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.executeSortedTargets(Project.java:1216)
       at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
       at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
       at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
       at
org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:234)
       at
org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:287)
       at 
org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
Caused by: 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:490)
       at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:576)
       at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:617)
       at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:452)
       at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
       at org.apache.tools.ant.Task.perform(Task.java:364)
       ... 9 more
--- Nested Exception ---
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:490)
       at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:576)
       at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:617)
       at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:452)
       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.executeSortedTargets(Project.java:1216)
       at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
       at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
       at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
       at
org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:234)
       at
org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:287)
       at 
org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to