Heap err

17 views
Skip to first unread message

Nilanga Saluwadana

unread,
Jul 10, 2008, 4:20:31 AM7/10/08
to Google Web Toolkit
Dear all

I am using GWT 1.5 am GWT ext 2.1, When i am going to compile it using
netbeans IDE 6.1 there was err occur

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2882)
at
java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:
100)
at
java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
at java.lang.StringBuilder.append(StringBuilder.java:119)
at java.lang.StackTraceElement.toString(StackTraceElement.java:
157)
at java.lang.String.valueOf(String.java:2827)
at java.lang.StringBuilder.append(StringBuilder.java:115)
at java.lang.Throwable.printStackTrace(Throwable.java:512)
at
org.eclipse.jdt.internal.compiler.Compiler.handleInternalException(Compiler.java:
461)
at
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:411)
at
com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:275)
at
com.google.gwt.dev.javac.JdtCompiler.compile(JdtCompiler.java:194)
at
com.google.gwt.dev.javac.CompilationState.compile(CompilationState.java:
72)
at com.google.gwt.dev.GWTCompiler.distill(GWTCompiler.java:
327)
at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:564)
at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:554)
at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:214)
C:\Documents and Settings\prasanna\My Documents\NetBeansProjects
\WebApplication2\nbproject\build-gwt.xml:14: Java returned: 1
BUILD FAILED (total time: 13 seconds)


My heap size is === java -Xms512m -Xmx800m

please help me


pringi

unread,
Jul 10, 2008, 2:29:55 PM7/10/08
to Google Web Toolkit
Try to upgrade GWT-EXT to 2.0.4

sabaka

unread,
Jul 11, 2008, 5:06:05 PM7/11/08
to Google Web Toolkit
Hi,

Probably max heap size parameter is set in the wrong place..
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
I think that if you read this thread and my messages there - your
problem will go away.

Good luck,
Aleksandr

dean....@gmail.com

unread,
Sep 2, 2008, 5:35:30 AM9/2/08
to Google Web Toolkit
your link isn't working. I just upgraded from 1.4 and am getting
these OutOfMemoryExceptions in GwtTestCase or Shell mode(compiling
works fine).
thanks,
dean

On Jul 12, 5:06 am, sabaka <aleksan...@gmail.com> wrote:
> Hi,
>
> Probably max heap size parameter is set in the wrong place..http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...

Sumit Chandel

unread,
Sep 8, 2008, 4:18:39 PM9/8/08
to Google-We...@googlegroups.com
Hi Dean,

As Nilanga is doing above, have you tried allocating more memory to while running GwtTestCases or starting up hosted mode by passing in the -Xmx512m flag?

Hope that helps,
-Sumit Chandel
Reply all
Reply to author
Forward
0 new messages