Problem with upgrading to 1.4.60

4 views
Skip to first unread message

Gabbie

unread,
Aug 30, 2007, 5:37:14 PM8/30/07
to Google Web Toolkit
Hello,

I am working on upgrading a project to 1.4.60 and am having some
errors. I copied all of the jars over to where all of the old ones of
the same names where(Got rid of the old ones of course). But whenever
I run my ant build I get this message,
[java] Output will be written into output\gwt\SampleApp
[java] Analyzing permutation #1
[java] [ERROR] Unexpected internal compiler error
[java] java.lang.OutOfMemoryError: Java heap space
[java] at java.lang.ClassLoader.findLoadedClass0(Native
Method)
[java] at
java.lang.ClassLoader.findLoadedClass(ClassLoader.java:922)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:
295)
[java] at sun.misc.Launcher
$AppClassLoader.loadClass(Launcher.java:276)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:
251)
[java] at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
[java] at
com.google.gwt.dev.jjs.InternalCompilerException.addNode(InternalCompilerException.java:
133)
[java] at
com.google.gwt.dev.jjs.InternalCompilerException.addNode(InternalCompilerException.java:
124)
[java] at
com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:
540)
[java] at
com.google.gwt.dev.jjs.ast.JVisitor.doTraverse(JVisitor.java:529)
[java] at
com.google.gwt.dev.jjs.ast.JVisitor.doAccept(JVisitor.java:509)
[java] at
com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:69)
[java] at
com.google.gwt.dev.jjs.impl.GenerateJavaScriptAST.execImpl(GenerateJavaScriptAST.java:
1785)
[java] at
com.google.gwt.dev.jjs.impl.GenerateJavaScriptAST.exec(GenerateJavaScriptAST.java:
1653)
[java] at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compile(JavaToJavaScriptCompiler.java:
385)
[java] at
com.google.gwt.dev.GWTCompiler.realizePermutation(GWTCompiler.java:
688)
[java] at
com.google.gwt.dev.GWTCompiler.compilePermutations(GWTCompiler.java:
411)
[java] at
com.google.gwt.dev.GWTCompiler.distill(GWTCompiler.java:335)
[java] at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:
755)
[java] at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:
745)
[java] at
com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:213)
[java] [ERROR] Out of memory; to increase the amount of
memory, use the -Xmx flag at startup (java -Xmx128
M ...)
[java] [ERROR] Build failed

BUILD FAILED
C:\cygwin\home\agibson\repository\gwt-rpc\bldfiles\build.xml:244: Java
returned: 1

Total time: 1 minute 2 seconds

Has anyone else seen this before? Or is it just me? And does anyone
have any ideas about what to do to fix it?

Thanks,
-Gabbie

Ian Petersen

unread,
Aug 30, 2007, 5:44:48 PM8/30/07
to Google-We...@googlegroups.com
On 8/30/07, Gabbie <Chaopsy...@gmail.com> wrote:
> [java] java.lang.OutOfMemoryError: Java heap space

The compiler is running out of memory. It's possible that there's
some error in the compiler that you've managed to tickle, but it's
more likely that you just need to give the JVM more RAM. I think the
usual argument is something like -Xmx512M, but I could be wrong. Look
at the documentation for your JVM and try to figure out how to give it
more heap space.

Ian

--
Tired of pop-ups, security holes, and spyware?
Try Firefox: http://www.getfirefox.com

Gabbie

unread,
Aug 30, 2007, 5:51:22 PM8/30/07
to Google Web Toolkit
Thanks, that was totally it. I feel like such an idiot, when I was
trying that before I completely forgot the 'M' at the end, no wonder
it wasn't working. >.< Whoops.

-Gabbie

On Aug 30, 3:44 pm, "Ian Petersen" <ispet...@gmail.com> wrote:

Serega....@gmail.com

unread,
Oct 23, 2007, 3:05:36 AM10/23/07
to Google Web Toolkit
Please, tell me, whad did you write and where?
I have the sema problem!
I try to write -Xmx512M but it doesn't help to solve problem

On 31 авг, 01:51, Gabbie <Chaopsychoch...@gmail.com> wrote:
> Thanks, that was totally it. I feel like such an idiot, when I was
> trying that before I completely forgot the 'M' at the end, no wonder
> it wasn't working. >.< Whoops.
>
> -Gabbie
>
> On Aug 30, 3:44 pm, "Ian Petersen" <ispet...@gmail.com> wrote:
>
> > On 8/30/07, Gabbie <Chaopsychoch...@gmail.com> wrote:
>
> > > [java] java.lang.OutOfMemoryError: Javaheapspace
>

> > The compiler is running out ofmemory. It's possible that there's

Serega....@gmail.com

unread,
Oct 23, 2007, 4:23:14 AM10/23/07
to Google Web Toolkit

anglers

unread,
Nov 28, 2007, 7:09:13 AM11/28/07
to Google Web Toolkit
For Eclipse + Cypal Studio this workaround works if
in hosted mode run target configuration to point in tab `Parameters`
in field VM Options : -Xms256M -Xmx512M

Thanks

On 23 окт, 11:23, "Serega.Shey...@gmail.com"
<Serega.Shey...@gmail.com> wrote:
> http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
Reply all
Reply to author
Forward
0 new messages