ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: Junit report giving out of memory error
Date Tue, 12 Feb 2008 09:55:27 GMT
Mevitha wrote:
> Hi,
> 
> I am using WSAD 5.1 to run an ant script to run junit test cases.
> Everything is fine except when the junit report starts, I am getting the
> below error.
> 
> unitTestReport:
> 
> [mkdir] Created dir: D:\TempTesting\TestReports
> 
> [junitreport] Using Xalan version: XSLT4J Java 2.6.5

This can happen if you have really big reports, or, you are using a 
memory hungry XSL engine, such as the xsltc one shipped in the JVM.

try these (in order)

1. drop a recent copy of xalan into ANT_HOME/lib, even if you have 
java5+, with its own built in XSL engine
2. ask for even more memory

> 
> BUILD FAILED: java.lang.StackOverflowError
> 
> Total time: 4 minutes 21 seconds
> 
> It is working fine on another machine. But not in mine.
> I have tried giving ANT_OPTS=-Xmx500M
> 
> Please let me know how to resolve this.
> 
> Thanks in advance.
> 
> Mevitha
> 
> 


-- 
Steve Loughran                  http://www.1060.org/blogxter/publish/5
Author: Ant in Action           http://antbook.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message