I try to write blogs whenever I get spare time

Just to let you know what I am trying to learn and what I am doing now.

How to get rid of the "java.lang.StackOverflowError " during the compilation of your GWT project

If you are using GWT 1.6.* (1.6.4 or earlier), have you ever faced "java.lang.StackOverflowError" during the compilation of your project? Perhaps, you may have got this exception. The fact is that, GWT 1.6 uses extensive optimization while compiling java code to javascript code which needs large memory and large stack size.
You can read here about this issue. There is a patch for fixing this problem.

  • First, Download the patch from here.
  • Then add it to the project run/debug settings.
  • In the ".classpath" file (located in your project folder), it should be placed above the GWT core library.
After doing these, you'll be able to compile your project.
One thing to note here is that, this is a temporary limitation of the GWT build. Hopefully, it'll be solved in the later versions.

0 comments:

Post a Comment