Hi all, I checked out a copy of Hupa using SVN. When I try to build the project through maven2 I get the following OutOfMemoryError. I followed all the set up and build instructions on james.apache.org, but I don't know why I am getting this error. Can someone help to resolve this problem? I increased the amount of memory using maven opts xmx1024m, but it didn't solve the error.
[INFO] [ERROR] Unexpected [INFO] java.lang.OutOfMemoryError: Java heap space [INFO] at java.lang.Class.getDeclaredMethods0(Native Method) [INFO] at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) [INFO] at java.lang.Class.getDeclaredMethod(Class.java:1935) [INFO] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispatch(GenerateJavaAST.java:499) [INFO] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispProcessExpression(GenerateJavaAST.java:527) [INFO] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.addCallArgs(GenerateJavaAST.java:1990) [INFO] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processExpression(GenerateJavaAST.java:804) [INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [INFO] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [INFO] at java.lang.reflect.Method.invoke(Method.java:597) [INFO] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispatch(GenerateJavaAST.java:500) [INFO] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispProcessExpression(GenerateJavaAST.java:527) [INFO] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.addCallArgs(GenerateJavaAST.java:1990) [INFO] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processExpression(GenerateJavaAST.java:1135) [INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [INFO] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [INFO] at java.lang.reflect.Method.invoke(Method.java:597) [INFO] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispatch(GenerateJavaAST.java:500) [INFO] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispProcessExpression(GenerateJavaAST.java:527) [INFO] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispProcessStatement(GenerateJavaAST.java:557) [INFO] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processStatements(GenerateJavaAST.java:1829) [INFO] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processMethod(GenerateJavaAST.java:1483) [INFO] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processType(GenerateJavaAST.java:431) [INFO] at com.google.gwt.dev.jjs.impl.GenerateJavaAST.exec(GenerateJavaAST.java:2994) [INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:465) [INFO] at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:32) [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:522) [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:414) [INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:201) [INFO] at com.google.gwt.dev.Compiler$1.run(Compiler.java:152) [INFO] [ERROR] Out of memory; to increase the amount of memory, use the -Xmx flag at startup (java -Xmx128M ...) [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] hupa-parent ....................................... SUCCESS [1.018s] [INFO] hupa-shared ....................................... SUCCESS [7.499s] [INFO] hupa-server ....................................... SUCCESS [14.641s] [INFO] hupa-widgets ...................................... SUCCESS [7.018s] [INFO] hupa .............................................. FAILURE [3:42.552s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4:13.038s [INFO] Finished at: Wed Sep 22 00:02:05 EDT 2010 [INFO] Final Memory: 18M/79M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:1.2:compile (default) on project hupa-client: Command [[ /bin/sh -c /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -Dhupa.config.file=/Users/Guest/Documents/workspace/hupa/server/src/main/webapp/WEB-INF/conf/config.properties -classpath "/Users/Guest/Documents/workspace/hupa/client/src/main/java":"/Users/Guest/Documents/workspace/hupa/client/src/main/resources":"/Users/Guest/Documents/workspace/hupa/client/war/WEB-INF/classes":"/Users/Guest/Documents/workspace/hupa/server/target/hupa-server-0.0.1-SNAPSHOT.jar":"/Users/Guest/Documents/workspace/hupa/shared/target/hupa-shared-0.0.1-SNAPSHOT.jar":"/Users/Guest/.m2/repository/net/customware/gwt/dispatch/gwt-dispatch/1.0.0/gwt-dispatch-1.0.0.jar":"/Users/Guest/.m2/repository/com/google/inject/guice/2.0/guice-2.0.jar":"/Users/Guest/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar":"/Users/Guest/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar":"/Users/Guest/.m2/repository/log4j/log4j/1.2.13/log4j-1.2.13.jar":"/Users/Guest/.m2/repository/javax/mail/mail/1.4.1/mail-1.4.1.jar":"/Users/Guest/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar":"/Users/Guest/.m2/repository/gwtupload/gwtupload/0.5.8-M5/gwtupload-0.5.8-M5.jar":"/Users/Guest/.m2/repository/commons-fileupload/commons-fileupload/1.2.1/commons-fileupload-1.2.1.jar":"/Users/Guest/.m2/repository/commons-io/commons-io/1.4/commons-io-1.4.jar":"/Users/Guest/.m2/repository/com/google/code/guice/guice/2.0/guice-2.0.jar":"/Users/Guest/.m2/repository/com/google/code/guice/guice-servlet/2.0/guice-servlet-2.0.jar":"/Users/Guest/Documents/workspace/hupa/widgets/target/hupa-widgets-0.0.1-SNAPSHOT.jar":"/Users/Guest/.m2/repository/com/google/gwt/gwt-incubator/20100204-r1747/gwt-incubator-20100204-r1747.jar":"/Users/Guest/.m2/repository/org/cobogw/gwt/cobogw/1.3/cobogw-1.3.jar":"/Users/Guest/.m2/repository/com/googlecode/gwt/inject/gin/1.0/gin-1.0.jar":"/Users/Guest/.m2/repository/net/customware/gwt/presenter/gwt-presenter/1.1.0-replace-SNAPSHOT/gwt-presenter-1.1.0-replace-SNAPSHOT.jar":"/Users/Guest/.m2/repository/com/google/code/gwt-dnd/gwt-dnd/2.6.5/gwt-dnd-2.6.5.jar":"/Users/Guest/.m2/repository/eu/maydu/gwt/gwt-vl/0.8b/gwt-vl-0.8b.jar":"/Users/Guest/.m2/repository/com/google/gwt/gwt-user/2.0.3/gwt-user-2.0.3.jar":"/Users/Guest/.m2/repository/com/google/gwt/gwt-dev/2.0.3/gwt-dev-2.0.3.jar" com.google.gwt.dev.Compiler -gen "/Users/Guest/Documents/workspace/hupa/client/target/.generated" -logLevel INFO -style OBF -war "/Users/Guest/Documents/workspace/hupa/client/target/hupa-client-0.0.1-SNAPSHOT" -localWorkers 2 -soyc -extra "/Users/Guest/Documents/workspace/hupa/client/target/extra" org.apache.hupa.Hupa ]] failed with status 1 -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :hupa-client --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
