jchaganti
25 Jun 2009, 6:35 AM
I am getting StackOverflowError error while doing GWT compilation of code containing SimpleComboBox.
Viewport view = new Viewport();
view.setBounds(0, 0, 900, 600);
TabPanel tp = new TabPanel();
tp.setBounds(0, 0, 900, 600);
tp.setBorders(true);
TabItem pti = new TabItem("Properties");
BorderLayout bl = new BorderLayout();
pti.setLayout(bl);
pti.setWidth("100%");
FormPanel north = new FormPanel();
north.setEncoding(Encoding.MULTIPART);
north.setMethod(Method.POST);
north.setHeading("Widgets demo");
north.setWidth("100%");
BorderLayoutData outNorth = new BorderLayoutData(LayoutRegion.NORTH);
outNorth.setMargins(new Margins(5, 5, 5, 5));
outNorth.setSize(100);
HBoxLayout hb = new HBoxLayout();
north.setLayout(hb);
HBoxLayoutData hbData = new HBoxLayoutData(5, 15, 5, 15);
SimpleComboBox<String> scb = new SimpleComboBox<String>();
Slider s = new Slider();
s.setMinValue(0);
s.setMaxValue(100);
s.setWidth(100);
s.setIncrement(1);
north.add(s, hbData);
Button b = new Button("Launch Wizard");
north.add(b, hbData);
LabelField l = new LabelField(" Upload file:");
north.add(l, new HBoxLayoutData(5,0,0,0));
FileUploadField fu = new FileUploadField();
north.add(fu, hbData);
b = new Button("Launch BreadCrumb Demo");
north.add(b, hbData);
LayoutContainer centerContainer = new LayoutContainer();
centerContainer.setWidth("100%");
ContentPanel propertiesListPanel = new ContentPanel();
propertiesListPanel.setHeading("Properties List");
propertiesListPanel.setBodyBorder(true);
//propertiesListPanel.setHeight(600);
ContentPanel googleMapPanel = new ContentPanel();
googleMapPanel.setHeading("Google Map");
googleMapPanel.setBodyBorder(true);
BorderLayoutData inWest = new BorderLayoutData(LayoutRegion.WEST);
inWest.setMargins(new Margins(5, 5, 5, 5));
inWest.setSize(500);
BorderLayoutData inCenter = new BorderLayoutData(LayoutRegion.CENTER);
inCenter.setMargins(new Margins(5, 5, 5, 5));
inCenter.setSize(400);
centerContainer.setLayout(new BorderLayout());
centerContainer.add(propertiesListPanel, inWest);
centerContainer.add(googleMapPanel, inCenter);
pti.add(north, outNorth);
pti.add(centerContainer, new BorderLayoutData(LayoutRegion.CENTER));
tp.add(pti);
TabItem pt2 = new TabItem("Customer");
pt2.setWidth("100%");
tp.add(pt2);
view.add(tp, new MarginData(100, 200, 50, 200));
RootPanel.get().add(view);Just remove the line "SimpleComboBox<String> scb = new SimpleComboBox<String>();" and it compiles.
I am using GXT 2.0-m3 , GWT 1.6.4, JDK 1.6, eclipse 3.4. I tried the following options:
1) Increased the jvm's stack size to 16M using Xss switch. If I use 32M, eclipse throws OutOfMemory errors.
2. I tried the patch given in http://code.google.com/p/google-web-toolkit/issues/detail?id=3510&can=5
But did not help.
If this has been fixed, kindly let me know. Or else this could be a bug.
Thanks,
jchaganti
Viewport view = new Viewport();
view.setBounds(0, 0, 900, 600);
TabPanel tp = new TabPanel();
tp.setBounds(0, 0, 900, 600);
tp.setBorders(true);
TabItem pti = new TabItem("Properties");
BorderLayout bl = new BorderLayout();
pti.setLayout(bl);
pti.setWidth("100%");
FormPanel north = new FormPanel();
north.setEncoding(Encoding.MULTIPART);
north.setMethod(Method.POST);
north.setHeading("Widgets demo");
north.setWidth("100%");
BorderLayoutData outNorth = new BorderLayoutData(LayoutRegion.NORTH);
outNorth.setMargins(new Margins(5, 5, 5, 5));
outNorth.setSize(100);
HBoxLayout hb = new HBoxLayout();
north.setLayout(hb);
HBoxLayoutData hbData = new HBoxLayoutData(5, 15, 5, 15);
SimpleComboBox<String> scb = new SimpleComboBox<String>();
Slider s = new Slider();
s.setMinValue(0);
s.setMaxValue(100);
s.setWidth(100);
s.setIncrement(1);
north.add(s, hbData);
Button b = new Button("Launch Wizard");
north.add(b, hbData);
LabelField l = new LabelField(" Upload file:");
north.add(l, new HBoxLayoutData(5,0,0,0));
FileUploadField fu = new FileUploadField();
north.add(fu, hbData);
b = new Button("Launch BreadCrumb Demo");
north.add(b, hbData);
LayoutContainer centerContainer = new LayoutContainer();
centerContainer.setWidth("100%");
ContentPanel propertiesListPanel = new ContentPanel();
propertiesListPanel.setHeading("Properties List");
propertiesListPanel.setBodyBorder(true);
//propertiesListPanel.setHeight(600);
ContentPanel googleMapPanel = new ContentPanel();
googleMapPanel.setHeading("Google Map");
googleMapPanel.setBodyBorder(true);
BorderLayoutData inWest = new BorderLayoutData(LayoutRegion.WEST);
inWest.setMargins(new Margins(5, 5, 5, 5));
inWest.setSize(500);
BorderLayoutData inCenter = new BorderLayoutData(LayoutRegion.CENTER);
inCenter.setMargins(new Margins(5, 5, 5, 5));
inCenter.setSize(400);
centerContainer.setLayout(new BorderLayout());
centerContainer.add(propertiesListPanel, inWest);
centerContainer.add(googleMapPanel, inCenter);
pti.add(north, outNorth);
pti.add(centerContainer, new BorderLayoutData(LayoutRegion.CENTER));
tp.add(pti);
TabItem pt2 = new TabItem("Customer");
pt2.setWidth("100%");
tp.add(pt2);
view.add(tp, new MarginData(100, 200, 50, 200));
RootPanel.get().add(view);Just remove the line "SimpleComboBox<String> scb = new SimpleComboBox<String>();" and it compiles.
I am using GXT 2.0-m3 , GWT 1.6.4, JDK 1.6, eclipse 3.4. I tried the following options:
1) Increased the jvm's stack size to 16M using Xss switch. If I use 32M, eclipse throws OutOfMemory errors.
2. I tried the patch given in http://code.google.com/p/google-web-toolkit/issues/detail?id=3510&can=5
But did not help.
If this has been fixed, kindly let me know. Or else this could be a bug.
Thanks,
jchaganti