Sorry for the delay in responding - i've been on paternity leave and didn't get 
back until today.

What you're seeing is essentially a timeout of the mantis ant task. It has a 
default timeout of 5 seconds so that when used in an automated process, a 
failure/hang in apt will not cause a hang in ant, but instead will cause the 
the ant call to fail "gracefully". Then you can look in the mantis logs for 
what went wrong, run the apt command line manually to reproduce, etc.

If you continue to have this problem, you can specify a timeout attribute to 
the mantis task call as a temporary work around. For example, to set the 
timeout to 10 seconds:

    <mantis srcdir="${src.dir}"
            includes="**/test/**.java"
            srcgen="${mantis.srcgen.dir}"
            bingen="${mantis.bingen.dir}"
            classpath="${mantis.run.classpath}"
            logdir="${mantis.log.dir}"
            config="${config}"
            aptcommand="${os.JAVA_HOME}/bin/apt"
                timeout="10000"
    />

I need to get the javadoc's and README updated. Sorry for the lack of info for 
ya. I will setup the active mantis target for the controls test runs to have a 
timeout specified as an ant property. That way if you're working on a machine 
that takes longer to process the files than normal, you'll be able to specify 
something like "-Dmantis.timeout=<new timeout>" to the ant call. I'll also set 
it to something greater than 5 secs since this has happened to you.

I hope this helps. Please let me know if you have any other questions/comments 
about mantis, and I'll try to address them quickly now that I'm back.

cheers,
Jamie

-----Original Message-----
From: Bryan Che [mailto:[EMAIL PROTECTED]
Sent: Friday, October 29, 2004 9:31 AM
To: Beehive Developers
Subject: ant controls.drt build failure


Hi, I'm getting an ant build failure when running ant controls.drt:

...
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

Are other people getting this as well?

Bryan

Reply via email to