Foren

Home » Liferay Social Office

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
maxsap sapranidis
out of memmory error
4. März 2011 11:40
Antwort

maxsap sapranidis

Rang: New Member

Nachrichten: 6

Eintrittsdatum: 20. Februar 2011

Neue Beiträge

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
8. März 2011 08:59
Antwort

Jamie L Sammons

Rang: Junior Member

Nachrichten: 33

Eintrittsdatum: 18. November 2008

Neue Beiträge

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
8. März 2011 09:16
Antwort

maxsap sapranidis

Rang: New Member

Nachrichten: 6

Eintrittsdatum: 20. Februar 2011

Neue Beiträge

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
12. März 2011 00:32
Antwort

maxsap sapranidis

Rang: New Member

Nachrichten: 6

Eintrittsdatum: 20. Februar 2011

Neue Beiträge

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