You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by fl...@ingdirect.fr on 2009/04/07 15:01:03 UTC

Different build result in two different machine (same project)

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


Re: Different build result in two different machine (same project)

Posted by Mick Knutson <mi...@gmail.com>.
Same settings.xml ?

---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
Twitter: http://twitter.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---



On Tue, Apr 7, 2009 at 12:29 PM, Wayne Fay <wa...@gmail.com> wrote:

> > 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.
>
> Same exact version of Maven?
> Same exact version of JDK?
> Same exact amount of physical memory on both machines?
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Different build result in two different machine (same project)

Posted by Wayne Fay <wa...@gmail.com>.
> 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.

Same exact version of Maven?
Same exact version of JDK?
Same exact amount of physical memory on both machines?

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org