You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "James Song (JIRA)" <be...@incubator.apache.org> on 2004/10/30 02:21:32 UTC
[jira] Resolved: (BEEHIVE-35) MantisTask tries to get exit code before process is finished
[ http://issues.apache.org/jira/browse/BEEHIVE-35?page=history ]
James Song resolved BEEHIVE-35:
-------------------------------
Assign To: James Song (was: Bryan Che)
Resolution: Fixed
This is fixed by applying Bryan's fix. r56008.
> MantisTask tries to get exit code before process is finished
> ------------------------------------------------------------
>
> Key: BEEHIVE-35
> URL: http://issues.apache.org/jira/browse/BEEHIVE-35
> Project: Beehive
> Type: Bug
> Components: Controls
> Versions: V1Alpha
> Environment: beehive on red hat enterprise linux 3
> Reporter: Bryan Che
> Assignee: James Song
> Fix For: V1Alpha
> Attachments: MantisTask.java.patch
>
> In /controls/test/tools/mantis/src/org/apache/beehive/test/tools/mantis/MantisTask.java, the method MantisTask.execute() tries to print an exit code for a process. However, this leads to an error if the process has not exited yet:
> mantis:
> [mantis] running command:
> [mantis] /opt/jdk1.5.0/bin/apt -nocompile -classpath /opt/jdk1.5.0/lib/tools.jar:/home/bche/src/svn/beehive/v1-alpha/installed/apache-ant-1.6.2/lib/ant.jar:/home/bche/src/svn/beehive/v1-alpha/external/junit/junit.jar:/home/bche/src/svn/beehive/v1-alpha/external/servlet/servlet-api-2.4.jar:/home/bche/src/svn/beehive/v1-alpha/controls/test/infra/milton/milton.jar:/home/bche/src/svn/beehive/v1-alpha/controls/test/infra/tch/schema.jar:/home/bche/src/svn/beehive/v1-alpha/controls/test/infra/mantis/mantis.jar:/home/bche/src/svn/beehive/v1-alpha/external/xmlbeans/apache-xbean.jar:/home/bche/src/svn/beehive/v1-alpha/installed/jsr173/jsr173_1.0_api.jar:/home/bche/src/svn/beehive/v1-alpha/controls/build/jars/controls.jar:/home/bche/src/svn/beehive/v1-alpha/controls/test/build/classes/beans:/home/bche/src/svn/beehive/v1-alpha/controls/test/build/classes/drivers -s /home/bche/src/svn/beehive/v1-alpha/controls/test/mantis-cases -d /home/bche/src/svn/beehive/v1-alpha/controls/test/mantis-bingen -factory org.apache.beehive.test.tools.mantis.MantisFactory -Aconfig=/home/bche/src/svn/beehive/v1-alpha/controls/test/infra/mantis/mantis.properties @/home/bche/src/svn/beehive/v1-alpha/controls/test/mantis-cases/files.txt
> BUILD FAILED
> /home/bche/src/svn/beehive/v1-alpha/build.xml:59: The following error occurred while executing this line:
> /home/bche/src/svn/beehive/v1-alpha/controls/build.xml:210: The following error occurred while executing this line:
> /home/bche/src/svn/beehive/v1-alpha/controls/test/build.xml:301: The following error occurred while executing this line:
> /home/bche/src/svn/beehive/v1-alpha/controls/test/build.xml:141: The following error occurred while executing this line:
> /home/bche/src/svn/beehive/v1-alpha/controls/test/build.xml:454: java.lang.IllegalThreadStateException: process hasn't exited
> The proper thing to do is to call Process.waitFor() rather than Process.exitValue()
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira