I'm experimenting with SmartGWT after downloading the 1.0b1 release yesterday - so far it looks very nice.
I coded up a prototype which uses among other things a SectionStack. It seems to behave as expected, but I see a bunch of warning messages on the hosted mode development shell window:
Malformed JSNI reference 'constructor'; expect subsequent failures.
The detailed stack trace shows:
My code looks like this:
I'm running GWT 1.5.3 on a Windows XP machine if that matters.
Any ideas?
thanks,
Tom
I coded up a prototype which uses among other things a SectionStack. It seems to behave as expected, but I see a bunch of warning messages on the hosted mode development shell window:
Malformed JSNI reference 'constructor'; expect subsequent failures.
The detailed stack trace shows:
Code:
[WARN] Malformed JSNI reference 'constructor'; expect subsequent failures java.lang.NoSuchFieldError: constructor at com.google.gwt.dev.shell.CompilingClassLoader$DispatchClassInfoOracle.getDispId(CompilingClassLoader.java:119) at com.google.gwt.dev.shell.CompilingClassLoader.getDispId(CompilingClassLoader.java:531) at com.google.gwt.dev.shell.ie.IDispatchProxy.getIDsOfNames(IDispatchProxy.java:124) at com.google.gwt.dev.shell.ie.IDispatchImpl.GetIDsOfNames(IDispatchImpl.java:273) at com.google.gwt.dev.shell.ie.IDispatchImpl.method5(IDispatchImpl.java:189) at org.eclipse.swt.internal.ole.win32.COMObject.callback5(COMObject.java:108) at org.eclipse.swt.internal.ole.win32.COM.VtblCall(Native Method) at org.eclipse.swt.internal.ole.win32.IDispatch.Invoke(IDispatch.java:64) at org.eclipse.swt.ole.win32.OleAutomation.invoke(OleAutomation.java:493) at org.eclipse.swt.ole.win32.OleAutomation.invoke(OleAutomation.java:417) at com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvokeOnWindow(ModuleSpaceIE6.java:67) at com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvoke(ModuleSpaceIE6.java:152) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:447) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:228) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.smartgwt.client.widgets.layout.SectionStack.create(SectionStack.java) at com.smartgwt.client.widgets.BaseWidget.getOrCreateJsObj(BaseWidget.java:279) at com.smartgwt.client.widgets.layout.Layout.addMember(Layout.java:855) at com.rg.gwt.test.client.Test$3.onClick(Test.java:207) at com.smartgwt.client.widgets.events.ClickEvent.dispatch(ClickEvent.java:67) at com.smartgwt.client.widgets.events.ClickEvent.dispatch(ClickEvent.java:1) at com.google.gwt.event.shared.HandlerManager$JavaHandlerRegistry.fireEvent(HandlerManager.java:81) at com.google.gwt.event.shared.HandlerManager$JavaHandlerRegistry.access$1(HandlerManager.java:76) at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:371) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:126) at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:155) at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:294) at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:194) at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966) at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720) at com.google.gwt.dev.GWTShell.run(GWTShell.java:593) at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)
Code:
SectionStack filtersStack = new SectionStack(); filtersStack.setHeight100(); filtersStack.setWidth100(); filtersStack.setVisibilityMode(VisibilityMode.MULTIPLE); SectionStackSection findTerm = new SectionStackSection("Find Term"); findTerm.setExpanded(true); findTerm.addItem(new Label("find term stuff goes here...")); filtersStack.addSection(findTerm); SectionStackSection hideDocuments = new SectionStackSection("Hide Documents"); hideDocuments.setExpanded(true); hideDocuments.addItem(new Label("hide documents goes here...")); filtersStack.addSection(hideDocuments); SectionStackSection filterByDate = new SectionStackSection("Filter by Date"); filtersStack.addSection(filterByDate); hLayout.addMember(filtersStack);
Any ideas?
thanks,
Tom
Comment