PDA

View Full Version : [CLOSED] GXT 2.0 and JDK 1.5



christian.schmitz
26 May 2009, 7:43 AM
Hello,

I am evaluating GXT to use it in a project and the first simple Example fails.

I use Ganemede (actual version) with GWT Plugin 1.6.4 and JDK 1.5.0_17. If I try to compile my simple Example I get a StackOverFlowError:

[ERROR] Unexpected internal compiler error
java.lang.StackOverflowError: null
at java.lang.reflect.InvocationTargetException.<init>(InvocationTargetException.java:54)
at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)

The Xss-Parameter is set to my Java VM (-Xss1024k). In the documentation I cannot find any recommendation for the JDK, but if I change to a JDK 6 compilation works. So, is it a bug or do I have to use JDK 6 with GXT 2.0?

Regrads, Christian

Here is my Sample Class:

package de.test.gxt.client;

import com.extjs.gxt.ui.client.Style.Scroll;
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.widget.Dialog;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;

public class MyGxtTest implements EntryPoint {

public void onModuleLoad() {

final Dialog simple = new Dialog();
simple.setHeading("Dialog Test");
simple.setButtons(Dialog.YESNO);
simple.setBodyStyleName("pad-text");
simple.addText("Ich bin ein Dialog");
simple.setScrollMode(Scroll.AUTO);
simple.setHideOnButtonClick(true);

Button b = new Button("Click me...",
new SelectionListener<ButtonEvent>() {

public void componentSelected(ButtonEvent ce) {
simple.show();
};
});

RootPanel.get("nameFieldContainer").add(b);
}
}

sven
26 May 2009, 7:44 AM
You just need to increase your stacksize. It is the GWT compiler that needs a quite big stacksize.

GXT works fine with JDK 1.5

christian.schmitz
26 May 2009, 7:52 AM
How do I increase the stacksize? What is a good value? I tried -Xss64m and it does not work.

sven
26 May 2009, 7:54 AM
-Xss32m works fine for me.

You can also try this patch for GWT:
http://code.google.com/p/google-web-toolkit/issues/detail?id=3510#c42

christian.schmitz
26 May 2009, 8:14 AM
Hello Sven,

thanks for this quick answer. It works with the patch.

Christian