What steps will reproduce the problem?
1. Create a simple example with the code:
...
public void onModuleLoad() {
DynamicForm form = new DynamicForm();
form.setHeight100();
form.setWidth100();
form.setPadding(5);
form.setLayoutAlign(VerticalAlignment.BOTTOM);
TextItem textItem = new TextItem();
textItem.setTitle("Text");
textItem.setHint("<nobr>A plain text field</nobr>");
form.setFields(new FormItem[] { textItem });
HStack layoutTopRow = new HStack();
layoutTopRow.addMember(form);
layoutTopRow.draw();
}
...
2. When running the example the following line:
...
form.setFields(new FormItem[] { textItem });
...
generates 4 times this warning in hosted mode shell:
[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.jav
a: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:9
1)
at com.smartgwt.client.widgets.form.DynamicForm.create(DynamicForm.java)
at
com.smartgwt.client.widgets.BaseWidget.getOrCreateJsObj(BaseWidget.java:279)
at com.smartgwt.client.widgets.layout.Layout.addMember(Layout.java:791)
at
pt.gedi.base.interfaceClient.client.EntryPoint.onModuleLoad(EntryPoint.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:320)
at
com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java:329)
at
com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$300(BrowserWidgetIE6.java:37
)
at
com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidgetIE6
.java:76)
at
com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetIE6.ja
va:139)
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)
What is the expected output? What do you see instead?
The expected would be no errors/warnings at all
What version of the product are you using? On what operating system?
Java 1.5.16, windows xp, gwt 1.5.3, smartgwt.jar revision.219 for java 1.5
Please provide any additional information below.
I created this example based on the modality window sample in the showcase,
there is where I saw the warning for the first time.
Original issue reported on code.google.com by mihai.ile@gmail.com on 15 Jan 2009 at 10:04
Original issue reported on code.google.com by
mihai.ile@gmail.com
on 15 Jan 2009 at 10:04