Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    IE8 Issue: Canvas clear throw error when Select Item is expanded

    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:
    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();
    Here's the stack trace:
    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=&gt;undef, _2=&gt;undef, _3=&gt;undef, _4=&gt;undef)
        SelectItem.cleared()
        DynamicForm.$11a()
        DynamicForm.clear()
        clearObservation(true)
        Canvas.clear(_1=&gt;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=&gt;undef, _2=&gt;undef, _3=&gt;undef, _4=&gt;undef)
        SelectItem.cleared()
        DynamicForm.$11a()
        DynamicForm.clear()
        clearObservation(true)
        Canvas.clear(_1=&gt;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)
    Last edited by sujaydutta; 5 Mar 2012, 12:48.

    #2
    We've made a change to address this in the 3.0p and 3.1d branches. The change will be present in the next nightly build, dated March 6 or greater.

    Comment


      #3
      Thanks for the quick turnaround, paying for support has it's advantages :) The issue seems to be resolved now. Thanks again!
      Last edited by sujaydutta; 6 Mar 2012, 07:53.

      Comment

      Working...
      X