[xep-support] Re: getting failed XEP build to make ant task fail

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Tue Jan 08 2013 - 06:21:50 PST

At 2013-01-07 16:57 -0800, Mark Giffin wrote:
>I'm using Apache Ant to run XEP like this:
> <exec dir="." executable="cmd.exe" failonerror="true">
> <arg line="/c xep -valid -fo output.fo -out output\reference.pdf"/>
> </exec>
>Even though I use ant's @failonerror="true" attribute, the ant
>script does not fail when the XEP build fails. I get this error
>before XEP gets going, but ant still says the build was successful:
>[exec] Error occurred during initialization of VM
>[exec] Could not reserve enough space for object heap
>[exec] Could not create the Java virtual machine.
>I am running ant from inside the Jenkins CI tool. I would like it if
>XEP could return -1 or something to tell ant that it failed. Is this possible?

Although I don't know Java virtual machines very well, I doubt XEP is
even in the picture at the time the error message because of the wording:

    "Error occurred during initialization of VM"

Do you have evidence that XEP is actually running? Perhaps any
startup messages from XEP?

Wouldn't the virtual machine have to be initialized and up and
running before even starting XEP?

I'm guessing your problem is elsewhere. Did you use memory
management parameters when you invoked Ant? If not, it could simply
be that Ant is running out of memory. Often when I invoke Ant I use
the following Java parameters to make a bigger memory footprint
available to the processes that my script invokes:

   -Xss2m -Xms128m -Xmx1024m

I hope this helps.

. . . . . . . . . Ken

Contact us for world-wide XML consulting and instructor-led training
Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm
Crane Softwrights Ltd.            http://www.CraneSoftwrights.com/f/
G. Ken Holman                   mailto:gkholman@CraneSoftwrights.com
Google+ profile: https://plus.google.com/116832879756988317389/about
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
Received on Tue Jan 8 06:22:05 2013

This archive was generated by hypermail 2.1.8 : Tue Jan 08 2013 - 06:22:13 PST