cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Morrissey <matthew.morris...@sungard.com>
Subject Re: Build error
Date Thu, 13 Sep 2012 13:34:39 GMT
Thanks Yichi! I ran into this problem this morning and the .mavenrc file
did the trick :)

On Wed, Sep 12, 2012 at 6:17 PM, Yichi Lu <yichi.lu@sungard.com> wrote:

> Chiradeep:
>
> I now created a file .mavenrc (previously I put this line in
> .bash_profile), with one line in it:
> MAVEN_OPTS="-Xms512m -Xmx1024m -XX:MaxPermSize=128m -verbose:gc"
>
> Now my build is successful:
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache CloudStack ................................. SUCCESS [1.623s]
> [INFO] Apache CloudStack Utils ........................... SUCCESS [2.103s]
> [INFO] Apache CloudStack API ............................. SUCCESS [3.261s]
> [INFO] Apache XenSource XAPI ............................. SUCCESS [1.068s]
> [INFO] Apache CloudStack Core ............................ SUCCESS [1.184s]
> [INFO] Apache CloudStack Agents .......................... SUCCESS [1.161s]
> [INFO] Apache CloudStack SystemVM Patches ................ SUCCESS [2.379s]
> [INFO] Apache CloudStack Console Proxy ................... SUCCESS [6.471s]
> [INFO] Apache CloudStack Server .......................... SUCCESS [6.781s]
> [INFO] Apache CloudStack Usage Server .................... SUCCESS [0.630s]
> [INFO] Apache CloudStack Plugin POM ...................... SUCCESS [0.201s]
> [INFO] Apache CloudStack Plugin - User Concentrated Pod Deployment Planner
>  SUCCESS [0.534s]
> [INFO] Apache CloudStack Plugin - User Dispersing Deployment Planner
>  SUCCESS [0.518s]
> [INFO] Apache CloudStack Plugin - Host Allocator Random .. SUCCESS [0.664s]
> [INFO] Apache CloudStack Plugin - Hypervisor OracleVM .... SUCCESS [0.598s]
> [INFO] Apache CloudStack Plugin - Open vSwitch ........... SUCCESS [0.647s]
> [INFO] Apache CloudStack Plugin - Hypervisor Xen ......... SUCCESS [0.557s]
> [INFO] Apache CloudStack Plugin - Hypervisor KVM ......... SUCCESS [0.971s]
> [INFO] Apache CloudStack Plugin - Network Elastic Load Balancer  SUCCESS
> [0.499s]
> [INFO] Apache CloudStack Plugin - Network Nicira NVP ..... SUCCESS [0.600s]
> [INFO] Apache CloudStack Plugin - Storage Allocator Random  SUCCESS
> [0.460s]
> [INFO] Apache CloudStack Plugin - User Authenticator LDAP  SUCCESS [0.494s]
> [INFO] Apache CloudStack Plugin - User Authenticator MD5 . SUCCESS [0.530s]
> [INFO] Apache CloudStack Plugin - User Authenticator Plain Text  SUCCESS
> [0.583s]
> [INFO] Apache CloudStack AWS API Bridge .................. SUCCESS [7.125s]
> [INFO] Apache CloudStack Test ............................ SUCCESS [6.983s]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
>
> I just hope my experience might be useful to others.
>
> Thanks for your help.
>
> Yichi
>
> On Wed, Sep 12, 2012 at 4:17 PM, Yichi Lu <yichi.lu@sungard.com> wrote:
>
> > Hey, Chiradeep:
> >
> > Thanks for your help. But I still have the same problem:
> >
> > USLT-205731:incubator-cloudstack yichi.lu$ echo $MAVEN_OPTS
> > -Xms512m -Xmx1024m -XX:MaxPermSize=128m
> >
> > [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @
> > cloud-awsapi ---
> > [INFO] Compiling 972 source files to /Users/
> > yichi.lu/CloudStack/incubator-cloudstack/awsapi/target/classes
> > Exception in thread "Poller SunPKCS11-Darwin" java.lang.OutOfMemoryError:
> > Java heap space
> > at sun.security.pkcs11.wrapper.PKCS11.C_GetSlotInfo(Native Method)
> >  at sun.security.pkcs11.SunPKCS11.initToken(SunPKCS11.java:767)
> > at sun.security.pkcs11.SunPKCS11.access$100(SunPKCS11.java:42)
> >  at sun.security.pkcs11.SunPKCS11$TokenPoller.run(SunPKCS11.java:700)
> > at java.lang.Thread.run(Thread.java:680)
> > [INFO] -------------------------------------------------------------
> > [ERROR] COMPILATION ERROR :
> > [INFO] -------------------------------------------------------------
> > [ERROR] Failure executing javac, but could not parse the error:
> >
> >
> > The system is out of resources.
> > Consult the following stack trace for details.
> > java.lang.OutOfMemoryError: Java heap space
> > at com.sun.tools.javac.tree.TreeMaker.TypeIdent(TreeMaker.java:401)
> >  at
> >
> com.sun.tools.javac.parser.Parser.classOrInterfaceBodyDeclaration(Parser.java:2463)
> > at
> com.sun.tools.javac.parser.Parser.classOrInterfaceBody(Parser.java:2405)
> >  at com.sun.tools.javac.parser.Parser.classCreatorRest(Parser.java:1414)
> > at com.sun.tools.javac.parser.Parser.creator(Parser.java:1351)
> >  at com.sun.tools.javac.parser.Parser.term3(Parser.java:958)
> > at com.sun.tools.javac.parser.Parser.term2(Parser.java:683)
> >  at com.sun.tools.javac.parser.Parser.term1(Parser.java:654)
> > at com.sun.tools.javac.parser.Parser.term(Parser.java:610)
> >  at com.sun.tools.javac.parser.Parser.term(Parser.java:592)
> > at com.sun.tools.javac.parser.Parser.expression(Parser.java:582)
> >  at
> > com.sun.tools.javac.parser.Parser.variableInitializer(Parser.java:1443)
> > at
> >
> com.sun.tools.javac.parser.Parser.variableDeclaratorRest(Parser.java:2071)
> >  at
> >
> com.sun.tools.javac.parser.Parser.variableDeclaratorsRest(Parser.java:2042)
> > at
> com.sun.tools.javac.parser.Parser.variableDeclarators(Parser.java:2025)
> >  at com.sun.tools.javac.parser.Parser.blockStatements(Parser.java:1554)
> > at com.sun.tools.javac.parser.Parser.block(Parser.java:1459)
> >  at com.sun.tools.javac.parser.Parser.block(Parser.java:1473)
> > at
> com.sun.tools.javac.parser.Parser.methodDeclaratorRest(Parser.java:2529)
> >  at
> >
> com.sun.tools.javac.parser.Parser.classOrInterfaceBodyDeclaration(Parser.java:2478)
> > at
> com.sun.tools.javac.parser.Parser.classOrInterfaceBody(Parser.java:2405)
> >  at com.sun.tools.javac.parser.Parser.classDeclaration(Parser.java:2250)
> > at
> >
> com.sun.tools.javac.parser.Parser.classOrInterfaceOrEnumDeclaration(Parser.java:2188)
> >  at
> >
> com.sun.tools.javac.parser.Parser.classOrInterfaceBodyDeclaration(Parser.java:2443)
> > at
> com.sun.tools.javac.parser.Parser.classOrInterfaceBody(Parser.java:2405)
> >  at com.sun.tools.javac.parser.Parser.classDeclaration(Parser.java:2250)
> > at
> >
> com.sun.tools.javac.parser.Parser.classOrInterfaceOrEnumDeclaration(Parser.java:2188)
> >  at com.sun.tools.javac.parser.Parser.typeDeclaration(Parser.java:2177)
> > at com.sun.tools.javac.parser.Parser.compilationUnit(Parser.java:2123)
> >  at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:509)
> > at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:550)
> >  at
> > com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler.java:804)
> >
> > [INFO] 1 error
> >
> > But the spot where the error occurred is slightly different.
> >
> > Yichi
> >
> > On Wed, Sep 12, 2012 at 1:56 PM, Chiradeep Vittal <
> > Chiradeep.Vittal@citrix.com> wrote:
> >
> >> Try adding -XX:MaxPermSize=128m to MAVEN_OPTS
> >>
> >> On 9/12/12 11:50 AM, "Yichi Lu" <yichi.lu@sungard.com> wrote:
> >>
> >> >Hello, fellow CloudStacker.
> >> >
> >> >I am new here,and I have a problem. I downloaded CloudStack,
> >> >incubator-cloudstack, and tried to build it. I just typed mvn, and I
> got:
> >> >
> >> >...
> >> >[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @
> >> >cloud-awsapi ---
> >> >[INFO] Compiling 972 source files to /Users/
> >> >yichi.lu/CloudStack/incubator-cloudstack/awsapi/target/classes
> >> >[INFO] -------------------------------------------------------------
> >> >[ERROR] COMPILATION ERROR :
> >> >[INFO] -------------------------------------------------------------
> >> >[ERROR] Failure executing javac, but could not parse the error:
> >> >
> >> >
> >> >The system is out of resources.
> >> >Consult the following stack trace for details.
> >> >java.lang.OutOfMemoryError: Java heap space
> >> >at com.sun.tools.javac.tree.TreeMaker.Select(TreeMaker.java:383)
> >> >at com.sun.tools.javac.parser.Parser.term3(Parser.java:1026)
> >> >at com.sun.tools.javac.parser.Parser.term2(Parser.java:683)
> >> >at com.sun.tools.javac.parser.Parser.term1(Parser.java:654)
> >> >at com.sun.tools.javac.parser.Parser.term(Parser.java:610)
> >> >at com.sun.tools.javac.parser.Parser.term(Parser.java:592)
> >> >at com.sun.tools.javac.parser.Parser.type(Parser.java:586)
> >> >at com.sun.tools.javac.parser.Parser.formalParameter(Parser.java:2636)
> >> >at com.sun.tools.javac.parser.Parser.formalParameters(Parser.java:2617)
> >> >at
> >>
> >com.sun.tools.javac.parser.Parser.methodDeclaratorRest(Parser.java:2519)
> >> >at
> >>
> >>
> >com.sun.tools.javac.parser.Parser.classOrInterfaceBodyDeclaration(Parser.j
> >> >ava:2478)
> >> >at
> >>
> >com.sun.tools.javac.parser.Parser.classOrInterfaceBody(Parser.java:2405)
> >> >at com.sun.tools.javac.parser.Parser.classDeclaration(Parser.java:2250)
> >> >at
> >>
> >>
> >com.sun.tools.javac.parser.Parser.classOrInterfaceOrEnumDeclaration(Parser
> >> >.java:2188)
> >> >at
> >>
> >>
> >com.sun.tools.javac.parser.Parser.classOrInterfaceBodyDeclaration(Parser.j
> >> >ava:2443)
> >> >at
> >>
> >com.sun.tools.javac.parser.Parser.classOrInterfaceBody(Parser.java:2405)
> >> >at com.sun.tools.javac.parser.Parser.classDeclaration(Parser.java:2250)
> >> >at
> >>
> >>
> >com.sun.tools.javac.parser.Parser.classOrInterfaceOrEnumDeclaration(Parser
> >> >.java:2188)
> >> >at com.sun.tools.javac.parser.Parser.typeDeclaration(Parser.java:2177)
> >> >at com.sun.tools.javac.parser.Parser.compilationUnit(Parser.java:2123)
> >> >at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:509)
> >> >at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:550)
> >> >at
> >> com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler.java:804)
> >> >at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727)
> >> >at com.sun.tools.javac.main.Main.compile(Main.java:353)
> >> >at com.sun.tools.javac.main.Main.compile(Main.java:279)
> >> >at com.sun.tools.javac.main.Main.compile(Main.java:270)
> >> >at com.sun.tools.javac.Main.compile(Main.java:87)
> >> >at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> >at
> >>
> >>
> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> >> >39)
> >> >at
> >>
> >>
> >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
> >> >pl.java:25)
> >> >at java.lang.reflect.Method.invoke(Method.java:597)
> >> >
> >> >[INFO] 1 error
> >> >
> >> >I have:
> >> >USLT-205731:incubator-cloudstack yichi.lu$ echo $MAVEN_OPTS
> >> >-Xms512m -Xmx1024m
> >> >
> >> >Has anyone seen this problem before? Any suggestions? My machine is a
> >> >MacBook Pro, MacOS 10.7.3. I followed instructions here:
> >> >
> >>
> http://wiki.cloudstack.org/display/dev/Setting+up+a+CloudStack+development
> >> >+environment+on+Mac+OSX
> >> >
> >> >Thanks.
> >> >
> >> >Yichi Lu
> >>
> >>
> >>
> >
>



-- 
Matthew Morrissey
Software Engineer - SunGard Availability Services - 401 N. Broad Street,
Philadelphia, PA 19108
o: 215-446-2713 - e: matthew.morrissey@sungard.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message