airavata-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Suresh Marru <sma...@apache.org>
Subject Re: Airavata Build Errors
Date Mon, 21 Mar 2016 01:50:14 GMT
You can increase the memory given to Maven by “export MAVEN_OPTS="-Xmx8192m”

Ofcource you need to change the export equivalent to your shell and give a memory. I think
atleast a 1GB might be required, but you may need to do some trial and errors. 

Suresh


> On Mar 20, 2016, at 9:47 PM, Ethan Suh <dongyosuh2015@u.northwestern.edu> wrote:
> 
> Ah yes, you're right. I think this might be the problem: 
> 
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Airavata Generated Stubs Skeltons 0.16-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ airavata-api-stubs ---
> [INFO]
> [INFO] --- maven-resources-plugin:2.5:copy-resources (copy-resources) @ airavata-api-stubs
---
> [debug] execute contextualize
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory /home/vagrant/airavata/airavata-api/airavata-api-stubs/src/main/assembly/dist
> [INFO]
> [INFO] --- maven-remote-resources-plugin:1.5:process (default) @ airavata-api-stubs ---
> [INFO]
> [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ airavata-api-stubs
---
> [debug] execute contextualize
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory /home/vagrant/airavata/airavata-api/airavata-api-stubs/src/main/resources
> [INFO] Copying 3 resources
> [INFO]
> [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ airavata-api-stubs ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 3 source files to /home/vagrant/airavata/airavata-api/airavata-api-stubs/target/classes
> 
> The system is out of resources.
> Consult the following stack trace for details.
> java.lang.OutOfMemoryError: Java heap space
> 	at com.sun.tools.javac.parser.UnicodeReader.getRawCharacters(UnicodeReader.java:250)
> 	at com.sun.tools.javac.parser.JavaTokenizer.getLineMap(JavaTokenizer.java:763)
> 	at com.sun.tools.javac.parser.Scanner.getLineMap(Scanner.java:127)
> 	at com.sun.tools.javac.parser.JavacParser.parseCompilationUnit(JavacParser.java:3134)
> 	at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:628)
> 	at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:665)
> 	at com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler.java:950)
> 	at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:857)
> 	at com.sun.tools.javac.main.Main.compile(Main.java:523)
> 	at com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129)
> 	at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138)
> 	at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:126)
> 	at org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile(JavacCompiler.java:169)
> 	at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:785)
> 	at org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:129)
> 	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
> 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
> 	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
> 	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
> 	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
> 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] An unknown compilation problem occurred
> [INFO] 1 error
> [INFO] -------------------------------------------------------------
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Airavata ........................................... SUCCESS [01:04 min]
> [INFO] Airavata Configuration ............................. SUCCESS [  0.098 s]
> [INFO] Airavata Server Configuration ...................... SUCCESS [  9.993 s]
> [INFO] Airavata Client Configuration ...................... SUCCESS [  0.272 s]
> [INFO] Airavata API ....................................... SUCCESS [  0.066 s]
> [INFO] Airavata Data Models ............................... SUCCESS [ 12.242 s]
> [INFO] Airavata Generated Stubs Skeltons .................. FAILURE [  3.434 s]
> 
> I'm looking up the error as well but I'm not completely making sense of what I'm coming
across. Can you explain to me what went wrong?
> 
> Thanks!
> 
> Ethan Suh
> Northwestern University WCAS Class of 2017
> Major in Computer Science; Minor in Economics
> edys@u.northwestern.edu <mailto:dysuh@u.northwestern.edu>
> On Sun, Mar 20, 2016 at 8:33 PM, Suresh Marru <smarru.apache@gmail.com <mailto:smarru.apache@gmail.com>>
wrote:
> Hi Ethan, 
> 
> There should be one more error before this. Can u look at the full trace to find the
root cause. This snippet was not helpful.
> 
> Suresh
> 
> Sent from my iPhone
> 
> On Mar 20, 2016, at 8:27 PM, Ethan Suh <dongyosuh2015@u.northwestern.edu <mailto:dongyosuh2015@u.northwestern.edu>>
wrote:
> 
>> I'm currently having some difficulty building Airavata, and can't seem to figure
out what I'm doing wrong. I'm working in a Ubuntu vagrant box, and I took careful steps to
install java (1.8.0_65) and maven (3.3.9). I'm getting this message after running $mvn clean
install: 
>> 
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] Airavata ........................................... SUCCESS [01:04 min]
>> [INFO] Airavata Configuration ............................. SUCCESS [  0.098 s]
>> [INFO] Airavata Server Configuration ...................... SUCCESS [  9.993 s]
>> [INFO] Airavata Client Configuration ...................... SUCCESS [  0.272 s]
>> [INFO] Airavata API ....................................... SUCCESS [  0.066 s]
>> [INFO] Airavata Data Models ............................... SUCCESS [ 12.242 s]
>> [INFO] Airavata Generated Stubs Skeltons .................. FAILURE [  3.434 s]
>> 
>> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
(default-compile) on project airavata-api-stubs: Compilation failure
>> [ERROR] An unknown compilation problem occurred
>> [ERROR] -> [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/MojoFailureException
<http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException>
>> [ERROR]
>> [ERROR] After correcting the problems, you can resume the build with the command
>> [ERROR]   mvn <goals> -rf :airavata-api-stubs
>> 
>> Any ideas on what to do? 
>> 
>> Thanks for the help,
>> 
>> Ethan Suh
>> Northwestern University WCAS Class of 2017
>> Major in Computer Science; Minor in Economics
>> edys@u.northwestern.edu <mailto:dysuh@u.northwestern.edu>


Mime
View raw message