You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by vino_hymi <vi...@gmail.com> on 2009/12/15 12:55:41 UTC
ant process failed -process hasn't exited
Hi,
I am running taskdef ant task. But i get the below error and says build
failed.
BUILD FAILED
/u/tibco/Builds/build.xml:36: java.lang.IllegalThreadStateException: process
hasn't exited
at BuildEarTask.execute(BuildEarTask.java:41)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.Main.runBuild(Main.java:698)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.lang.IllegalThreadStateException: process hasn't exited
at java.lang.UNIXProcess.exitValue(UNIXProcess.java:122)
at BuildEarTask.execute(BuildEarTask.java:37)
... 17 more
--- Nested Exception ---
java.lang.IllegalThreadStateException: process hasn't exited
at java.lang.UNIXProcess.exitValue(UNIXProcess.java:122)
at BuildEarTask.execute(BuildEarTask.java:37)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.Main.runBuild(Main.java:698)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
--
View this message in context: http://old.nabble.com/ant-process-failed--process-hasn%27t-exited-tp26793662p26793662.html
Sent from the Ant - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: ant process failed -process hasn't exited
Posted by Stefan Bodewig <bo...@apache.org>.
On 2009-12-15, vino_hymi <vi...@gmail.com> wrote:
> I am running taskdef ant task. But i get the below error and says build
> failed.
please use the user@ant list for user questions, this list is for the
development of Ant itself.
The error message you see says there is a problem with the task
BuildEarTask
> BUILD FAILED
> /u/tibco/Builds/build.xml:36: java.lang.IllegalThreadStateException: process
> hasn't exited
> at BuildEarTask.execute(BuildEarTask.java:41)
This task is not part of Ant itself, so I don't really know how we
should be able to help.
This here
> --- Nested Exception ---
> java.lang.IllegalThreadStateException: process hasn't exited
> at java.lang.UNIXProcess.exitValue(UNIXProcess.java:122)
> at BuildEarTask.execute(BuildEarTask.java:37)
says that the task is trying to obtain the exit value of a process it
has started before that process has exited. This should give the author
of the task enough of a clue.
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org