Forums

Home » Liferay Social Office

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
maxsap sapranidis
out of memmory error
March 4, 2011 11:40 AM
Answer

maxsap sapranidis

Rank: New Member

Posts: 6

Join Date: February 20, 2011

Recent Posts

Hello I am following this
example, but I am stuck at this step:
Expand portal and double-click all.


After help I received from this forum I have succesfully set ANT_OPTS to 1024 and 256 mb of ram, but when I double click on the run ant starts and after about 3 minutes I get this message:
The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: Java heap space
at com.sun.tools.javac.jvm.ClassReader.readCompoundAnnotation(ClassReader.java:1149)
at com.sun.tools.javac.jvm.ClassReader.attachAnnotations(ClassReader.java:1096)
at com.sun.tools.javac.jvm.ClassReader.readMemberAttr(ClassReader.java:867)
at com.sun.tools.javac.jvm.ClassReader.readClassAttr(ClassReader.java:1053)
at com.sun.tools.javac.jvm.ClassReader.readClassAttrs(ClassReader.java:1067)
at com.sun.tools.javac.jvm.ClassReader.readClass(ClassReader.java:1560)
at com.sun.tools.javac.jvm.ClassReader.readClassFile(ClassReader.java:1658)
at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:1845)
at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:1777)
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.members(Symbol.java:700)
at com.sun.tools.javac.jvm.ClassReader$AnnotationDeproxy.findAccessMethod(ClassReader.java:1290)
at com.sun.tools.javac.jvm.ClassReader$AnnotationDeproxy.deproxyCompound(ClassReader.java:1280)
at com.sun.tools.javac.jvm.ClassReader$AnnotationDeproxy.deproxyCompoundList(ClassReader.java:1269)
at com.sun.tools.javac.jvm.ClassReader$AnnotationCompleter.enterAnnotation(ClassReader.java:1444)
at com.sun.tools.javac.comp.Annotate.flush(Annotate.java:95)
at com.sun.tools.javac.comp.Annotate.enterDone(Annotate.java:87)
at com.sun.tools.javac.comp.Enter.complete(Enter.java:485)
at com.sun.tools.javac.comp.Enter.main(Enter.java:442)
at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:819)
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:69)
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.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:56)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1065)


I changes max head to 1536 but the error insists, has anyone encountered the same error?
regards maxsap.
Jamie L Sammons
RE: out of memmory error
March 8, 2011 8:59 AM
Answer

Jamie L Sammons

Rank: Junior Member

Posts: 33

Join Date: November 18, 2008

Recent Posts

Hi maxsap,

I have tried to recreate this issue several times without success. My guess is its environmental. I currently compile Social Office on a machine with 4 GB's of memory. The process tends to use most of that memory so perhaps if you are running less than that its running out of memory?

Thanks,
Jamie
maxsap sapranidis
RE: out of memmory error
March 8, 2011 9:16 AM
Answer

maxsap sapranidis

Rank: New Member

Posts: 6

Join Date: February 20, 2011

Recent Posts

I have 2 gigabytes of ram but in the system monitor shows that while build runs only 500 mb are allocated then the error occurs. Also I am running under ubuntu 10.10 and using suns version of java, I have tried to install ecj wondering if this could resolve the issue but no success so far.
regards maxsap
maxsap sapranidis
RE: out of memmory error
March 12, 2011 12:32 AM
Answer

maxsap sapranidis

Rank: New Member

Posts: 6

Join Date: February 20, 2011

Recent Posts

Anyne, any idea? I have tried to install ecj as mentioned, followin istructions from this link. No luck so far, when i change the build.properties to use ecj I get an error that ecj is not installed.
regards maxsap