PDA

View Full Version : [FIXED] Strange exception when adding a TreeTable to a container with a FitLayout



axeldxter
4 Jun 2008, 2:28 PM
Hi, darrel. After you updated the SVN version (revision 371) this afternoon (remember the TreeTableBinder bug I found?), I've been having some errors with a TreeTable that is added to a panel with a FitLayout or to a BorderLayout. This didn't happen in the previous SVN revisions. The following are the errors:



[ERROR] Uncaught exception escaped
com.google.gwt.dev.shell.HostedModeException: Something other than a Java object was returned from JSNI method '@com.google.gwt.dom.client.Element::getStyle()': attempt to use JavaScript 'undefined' as a value, expected java.lang.Object
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:51)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:257)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:105)
at com.google.gwt.dom.client.Element$.getStyle$(Element.java:269)
at com.google.gwt.user.client.DOM.setStyleAttribute(DOM.java:1199)
at com.extjs.gxt.ui.client.core.El.setWidth(El.java:2091)
at com.extjs.gxt.ui.client.widget.table.TableHeader.resizeColumn(TableHeader.java:298)
at com.extjs.gxt.ui.client.widget.table.TableHeader.resizeColumns(TableHeader.java:330)
at com.extjs.gxt.ui.client.widget.treetable.TreeTableHeader.resizeColumns(TreeTableHeader.java:28)
at com.extjs.gxt.ui.client.widget.treetable.TreeTable.onResize(TreeTable.java:391)


[ERROR] Uncaught exception escaped
com.google.gwt.dev.shell.HostedModeException: Something other than a Java object was returned from JSNI method '@com.google.gwt.dom.client.Element::getStyle()': attempt to use JavaScript 'undefined' as a value, expected java.lang.Object
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:487)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:275)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:121)
at com.extjs.gxt.ui.client.util.WidgetHelper.doAttachNative(WidgetHelper.java:29)
at com.extjs.gxt.ui.client.util.WidgetHelper.doAttach(WidgetHelper.java:19)
at com.extjs.gxt.ui.client.widget.Container.doLayout(Container.java:241)
at com.extjs.gxt.ui.client.widget.Container.layout(Container.java:302)
at com.extjs.gxt.ui.client.widget.LayoutContainer.layout(LayoutContainer.java:234)
at com.extjs.gxt.ui.client.widget.TabPanel.setSelection(TabPanel.java:532)
at com.drl.rts.management.client.PageManager.showPage(PageManager.java:55)
Thanks

darrellmeyer
4 Jun 2008, 9:32 PM
The fix is in SVN.