I am using SmartGWT 3.0p nightly (3/2/2012) with GWT 2.3 and having this issue with IE 8.
When we call clear on the canvas while the combo box is expanded, it throws an exception. This happens only in IE 8. It works fine when the combo box is collapsed.
The use case is that the user is in a form with a combo box expanded and the session timeout appears and on timeout we clear the canvas as part of history clearing and take them to the end page, it bombs there while clearing the canvas.
This is not the real code but a sample snippet with the isolated example to replicate the issue:
Here's the stack trace:
When we call clear on the canvas while the combo box is expanded, it throws an exception. This happens only in IE 8. It works fine when the combo box is collapsed.
The use case is that the user is in a form with a combo box expanded and the session timeout appears and on timeout we clear the canvas as part of history clearing and take them to the end page, it bombs there while clearing the canvas.
This is not the real code but a sample snippet with the isolated example to replicate the issue:
Code:
final DynamicForm form1 = new DynamicForm(); form1.setID("form1"); final LinkedHashMap<String, String> valueMap = new LinkedHashMap<String, String>(); valueMap.put("US", "United States"); valueMap.put("CH", "China"); valueMap.put("IN", "India"); final SelectItem selectItem = new SelectItem("Select"); selectItem.setValueMap(valueMap); form1.setFields(selectItem); final VLayout vLayout = new VLayout(); vLayout.addMember(form1); final Timer t2 = new Timer() { @Override public void run() { vLayout.clear(); } }; t2.schedule(2000); vLayout.draw();
Code:
15:35:03.461 [ERROR] [smartgwttester] 15:35:03.459:WARN:Log:Error: '' in http://127.0.0.1:8888/smartgwttester/sc/modules/ISC_Forms.js at line 1566 FormItem.focusInItem() PickListMenu.hide(_1=>undef, _2=>undef, _3=>undef, _4=>undef) SelectItem.cleared() DynamicForm.$11a() DynamicForm.clear() clearObservation(true) Canvas.clear(_1=>undef) com.smartgwt.client.core.JsObject$SGWT_WARN: 15:35:03.459:WARN:Log:Error: '' in http://127.0.0.1:8888/smartgwttester/sc/modules/ISC_Forms.js at line 1566 FormItem.focusInItem() PickListMenu.hide(_1=>undef, _2=>undef, _3=>undef, _4=>undef) SelectItem.cleared() DynamicForm.$11a() DynamicForm.clear() clearObservation(true) Canvas.clear(_1=>undef) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:167) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:132) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:289) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107) at com.smartgwt.client.widgets.Canvas.clear(Canvas.java) at com.sujay.client.SmartGWTTester$1.run(SmartGWTTester.java:88) at com.google.gwt.user.client.Timer.fire(Timer.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:167) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:132) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:167) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) at java.lang.Thread.run(Thread.java:662)
Comment