Hi Iain,

It could be the java heap space settings. Try the settings listed in [1] or 
[2], or variations thereof.

(Guys - it took me about 5 minutes to find this information - argh!)

Regards,
Kevin

[1] 
http://mail-archives.apache.org/mod_mbox/incubator-isis-dev/201010.mbox/%[email protected]%3E
[2] http://incubator.apache.org/isis/docbkx/html/guide/ch01.html

On 13 Feb 2011 at 0:53, Iain Flynn wrote:

> Hi there,
> 
> My name is Iain and I'm looking into working with Apache Isis as part of an 
> MSc project. Unfortunately, I seem to have hit a bit of a snag building the 
> version that's on the project page (that you can check out using svn). I'm 
> running a MacBook on OS X Snow Leopard (latest updates installed) with Java 
> version 1.6.0_22. I've tried it multiple times, along with having as few 
> processes as possible running, but it seems like I get the same error every 
> time. I've not got access to another machine I can install maven on at the 
> moment so I can't test that.
> 
> I've had a look through this mailing list but can't seem to find any 
> similar-looking problems. If someone could try and tell me what's wrong here 
> I'd really appreciate it. If I've omitted any important details just tell me 
> and I'll do my best :)
> 
> - Iain
> 
> My log is as follows (I've just taken what seems relevant as I wouldn't want 
> to try burying a needle in a haystack!):
> 
> [INFO] Trace
> org.apache.maven.BuildFailureException: Compilation failure
> 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 java.nio.ByteBuffer.wrap(ByteBuffer.java:350)
>       at java.nio.ByteBuffer.wrap(ByteBuffer.java:373)
>       at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:237)
>       at java.lang.StringCoding.encode(StringCoding.java:272)
>       at java.lang.String.getBytes(String.java:946)
>       at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
>       at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228)
>       at java.io.File.isFile(File.java:778)
>       at 
> com.sun.tools.javac.util.DefaultFileManager.listDirectory(DefaultFileManager.java:319)
>       at 
> com.sun.tools.javac.util.DefaultFileManager.list(DefaultFileManager.java:872)
>       at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2130)
>       at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:1781)
>       at com.sun.tools.javac.code.Symbol.complete(Symbol.java:386)
>       at com.sun.tools.javac.code.Symbol$PackageSymbol.flags(Symbol.java:601)
>       at com.sun.tools.javac.comp.Attr.checkId(Attr.java:2120)
>       at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:1899)
>       at 
> com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1522)
>       at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:360)
>       at 
> com.sun.tools.javac.comp.MemberEnter.visitImport(MemberEnter.java:527)
>       at com.sun.tools.javac.tree.JCTree$JCImport.accept(JCTree.java:495)
>       at 
> com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:387)
>       at 
> com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:399)
>       at 
> com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:512)
>       at 
> com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:446)
>       at 
> com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:387)
>       at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:819)
>       at com.sun.tools.javac.code.Symbol.complete(Symbol.java:386)
>       at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:763)
>       at com.sun.tools.javac.code.Symbol$ClassSymbol.flags(Symbol.java:695)
>       at com.sun.tools.javac.comp.Resolve.isAccessible(Resolve.java:124)
>       at com.sun.tools.javac.comp.Resolve.loadClass(Resolve.java:843)
>       at com.sun.tools.javac.comp.Resolve.findGlobalType(Resolve.java:901)
> 
> 
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>       at 
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:597)
>       at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>       at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>       at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>       at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation 
> failure
> 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 java.nio.ByteBuffer.wrap(ByteBuffer.java:350)
>       at java.nio.ByteBuffer.wrap(ByteBuffer.java:373)
>       at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:237)
>       at java.lang.StringCoding.encode(StringCoding.java:272)
>       at java.lang.String.getBytes(String.java:946)
>       at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
>       at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228)
>       at java.io.File.isFile(File.java:778)
>       at 
> com.sun.tools.javac.util.DefaultFileManager.listDirectory(DefaultFileManager.java:319)
>       at 
> com.sun.tools.javac.util.DefaultFileManager.list(DefaultFileManager.java:872)
>       at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2130)
>       at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:1781)
>       at com.sun.tools.javac.code.Symbol.complete(Symbol.java:386)
>       at com.sun.tools.javac.code.Symbol$PackageSymbol.flags(Symbol.java:601)
>       at com.sun.tools.javac.comp.Attr.checkId(Attr.java:2120)
>       at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:1899)
>       at 
> com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1522)
>       at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:360)
>       at 
> com.sun.tools.javac.comp.MemberEnter.visitImport(MemberEnter.java:527)
>       at com.sun.tools.javac.tree.JCTree$JCImport.accept(JCTree.java:495)
>       at 
> com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:387)
>       at 
> com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:399)
>       at 
> com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:512)
>       at 
> com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:446)
>       at 
> com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:387)
>       at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:819)
>       at com.sun.tools.javac.code.Symbol.complete(Symbol.java:386)
>       at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:763)
>       at com.sun.tools.javac.code.Symbol$ClassSymbol.flags(Symbol.java:695)
>       at com.sun.tools.javac.comp.Resolve.isAccessible(Resolve.java:124)
>       at com.sun.tools.javac.comp.Resolve.loadClass(Resolve.java:843)
>       at com.sun.tools.javac.comp.Resolve.findGlobalType(Resolve.java:901)
> 
> 
>       at 
> org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:656)
>       at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
>       at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>       ... 17 more
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 9 minutes 56 seconds
> [INFO] Finished at: Fri Feb 11 16:22:47 GMT 2011
> [INFO] Final Memory: 111M/123M
> [INFO] 
> ------------------------------------------------------------------------
> 


--
Kevin Meyer, PhD, Pr.Sci.Nat
KMZ             P.O. Box 9822, Sharon Park, South Africa.
Tel: +27 11 363 2001    Cell: +27 83 346 3045


Reply via email to