PDA

View Full Version : StackOverflowError - many problems compiling with GWT 1.6.4 !



msauter
9 Jul 2009, 10:15 AM
I am trying GWT1.6.4 with GXT 2.0 and i often receive this error:



Compiling module com.test.gxt.MeinGxtTest
Compiling 5 permutations
Worker permutation 1 of 5
[ERROR] Unexpected internal compiler error
java.lang.StackOverflowError
at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.readInt(Unknown Source)
at java.io.ObjectInputStream.readHandle(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.util.ArrayList.readObject(Unknown Source)
at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
....
My Code is very simple, i am trying the BorderLayout-Example http://extjs.com/examples-dev/explorer.html#borderlayout (http://extjs.com/forum/../examples-dev/explorer.html#borderlayout)

and i create the instance with this code:



import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;

/**
* Entry point classes define <code>onModuleLoad()</code>.
*/
public class MeinGxtTest implements EntryPoint {

/**
* This is the entry point method.
*/
public void onModuleLoad() {

BorderLayoutExample sample = new BorderLayoutExample();
RootPanel.get().add(sample);
}
}
My Module


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.6.4//EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.6.4/distro-source/core/src/gwt-module.dtd">
<module rename-to='meingxttest'>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User'/>

<!-- Inherit the default GWT style sheet. You can change -->
<!-- the theme of your GWT application by uncommenting -->
<!-- any one of the following lines. -->
<inherits name='com.google.gwt.user.theme.standard.Standard'/>
<!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
<!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> -->

<!-- Other module inherits -->

<inherits name='com.extjs.gxt.ui.GXT'/>



<!-- Specify the app entry point class. -->
<entry-point class='com.test.gxt.client.MeinGxtTest'/>
</module>
My question, what's wrong? Please help me :)

sven
9 Jul 2009, 10:16 AM
This is not a bug in GXT. This was dicussed many times here and also on the GWT mailinglist.

http://code.google.com/p/google-web-toolkit/issues/detail?id=3510&can=5 There you can get the patch for GWT

msauter
9 Jul 2009, 10:34 AM
Thank you for the fast help, at the moment i am testing this patch and it is working. Are there any other known problems for which i need other patches?

Do you know when there will be the release of GWT 1.6.5 ?

For the rest of us, here you can see how to integrate this patch in your eclipse-project.

http://img98.imageshack.us/img98/6420/patchsolution.png

sven
9 Jul 2009, 10:35 AM
I dont know of any other patches.

msauter
9 Jul 2009, 10:45 AM
Ok, than i can start using gtx 2.0 . Apps produced with this are looking very good! Hope that the GWT 1.6.5 release will be soon.