Hi Iain,
Thanks for considering Isis as part of your MSc.

As the other guys have said, this looks like a simple Java heap memory error. Isis is pretty big, and Maven needs to allocate memory in order to compile it. The defaults (defined by $MAVEN_OPTS) are not big enough to compile Isis, hence your problem.

The fix - setting MAVEN_OPTS to a larger value - is pretty standard; but of course if you haven't seen the error before, you wouldn't necessarily know how to fix it.

Let us know how you get on with the fixes suggested by Kevin / Mike.

Also, so you know, we do have Isis snapshots available on the Apache Snapshots repository, at https://repository.apache.org/index.html#view-repositories;snapshots-group~browsestorage <https://repository.apache.org/index.html#view-repositories;snapshots-group%7Ebrowsestorage> . I'm just working on getting an updated archetype there also, after which I'll provide a page on our site to tell people how to get up and started using that archetype.

Thanks again for your interest,
Dan


On 13/02/2011 00: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] ------------------------------------------------------------------------


Reply via email to