Hello
I have the same maven project copied in two different machines: my local
machine and my "build" machine. When I try "mvn clean compile test" on
my local machine everything's fine.
But on my build machine I get the error:
org.apache.maven.surefire.booter.SurefireExecutionException: Java heap
space; nested exception is java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
And the full stack strace:
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running
com.ingdirect.dg.business.command.paymentterms.checkbook.AccuseReception
BusinessCommandTest
org.apache.maven.surefire.booter.SurefireExecutionException: Java heap
space; nested exception is java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
at
java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.jav
a:99)
at
java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:393)
at java.lang.StringBuffer.append(StringBuffer.java:220)
at
org.springframework.beans.factory.BeanCreationException.toString(BeanCre
ationException.java:154)
at java.lang.String.valueOf(String.java:2615)
at java.lang.StringBuffer.append(StringBuffer.java:220)
at
org.springframework.beans.factory.BeanCreationException.toString(BeanCre
ationException.java:154)
at java.lang.String.valueOf(String.java:2615)
at java.lang.StringBuffer.append(StringBuffer.java:220)
at
org.springframework.core.NestedExceptionUtils.buildMessage(NestedExcepti
onUtils.java:47)
at
org.springframework.core.NestedRuntimeException.getMessage(NestedRuntime
Exception.java:67)
at java.lang.Throwable.getLocalizedMessage(Throwable.java:267)
at java.lang.Throwable.toString(Throwable.java:344)
at
org.springframework.beans.factory.BeanCreationException.toString(BeanCre
ationException.java:149)
at java.lang.String.valueOf(String.java:2615)
at java.lang.StringBuffer.append(StringBuffer.java:220)
at
org.springframework.core.NestedExceptionUtils.buildMessage(NestedExcepti
onUtils.java:47)
at
org.springframework.core.NestedRuntimeException.getMessage(NestedRuntime
Exception.java:67)
at java.lang.Throwable.getLocalizedMessage(Throwable.java:267)
at java.lang.Throwable.toString(Throwable.java:344)
at
org.springframework.beans.factory.BeanCreationException.toString(BeanCre
ationException.java:149)
at java.lang.String.valueOf(String.java:2615)
at java.lang.StringBuffer.append(StringBuffer.java:220)
at
org.springframework.core.NestedExceptionUtils.buildMessage(NestedExcepti
onUtils.java:47)
at
org.springframework.core.NestedRuntimeException.getMessage(NestedRuntime
Exception.java:67)
at java.lang.Throwable.getLocalizedMessage(Throwable.java:267)
at java.lang.Throwable.toString(Throwable.java:344)
at
org.springframework.beans.factory.BeanCreationException.toString(BeanCre
ationException.java:149)
at java.lang.String.valueOf(String.java:2615)
at java.lang.StringBuffer.append(StringBuffer.java:220)
at
org.springframework.core.NestedExceptionUtils.buildMessage(NestedExcepti
onUtils.java:47)
at
org.springframework.core.NestedRuntimeException.getMessage(NestedRuntime
Exception.java:67)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] There are test failures.
The environment variable MAVEN_OPTS is set to -Xmx512m -Xms128m on both
machines.
I cannot find where is the difference between the two configuration and
why I get this error.
Thanks for your help
-----------------------------------------------------------------
ATTENTION:
The information in this electronic mail message is private and
confidential, and only intended for the addressee. Should you
receive this message by mistake, you are hereby notified that
any disclosure, reproduction, distribution or use of this
message is strictly prohibited. Please inform the sender by
reply transmission and delete the message without copying or
opening it.
Messages and attachments are scanned for all viruses known.
If this message contains password-protected attachments, the
files have NOT been scanned for viruses by the ING mail domain.
Always scan attachments before opening them.
-----------------------------------------------------------------