Announcement

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

    JavaScript exception "Object doesn't support property or method 'blockOnFieldBusy'"

    Hi

    We're using SmartGWT 4.1p (2014-07-08 nightly build).
    Under conditions we were not able to determine, an exception is thrown when a FormItem gains focus (user clik, tab, ...) in a form.
    Almost all our forms suffer this bug, but not all. Trying with a simple unit test didn't help (not reproduced).

    Code:
    10:28:33.806 [ERROR] [application] 10:28:33.803:IFCS1:WARN:Log:TypeError: Object doesn't support property or method 'blockOnFieldBusy'
    Stack from error.stack:
        FormItem.elementFocus () @ application/sc/modules/ISC_Forms.js:1044:14
        DynamicForm.bubbleItemHandler () @ application/sc/modules/ISC_Forms.js:499:1
        DynamicForm.elementFocus () @ application/sc/modules/ISC_Forms.js:514:1
        FormItem._nativeElementFocus () @ application/sc/modules/ISC_Forms.js:1038:33
        Class.invokeSuper () @ application/sc/modules/ISC_Core.js:272:85
        Class.Super () @ application/sc/modules/ISC_Core.js:264:158
        TextItem._nativeElementFocus () @ application/sc/modules/ISC_Forms.js:1414:554
        FormItem.._nativeFocusHandler () @ application/sc/modules/ISC_Forms.js:598:8
        FormItem._nativeFocusHandler () @ application/sc/modules/ISC_Forms.js:596:196
    
    
    com.smartgwt.client.core.JsObject$SGWT_WARN: 10:28:33.803:IFCS1:WARN:Log:TypeError: Object doesn't support property or method 'blockOnFieldBusy'
    Stack from error.stack:
        FormItem.elementFocus () @ application/sc/modules/ISC_Forms.js:1044:14
        DynamicForm.bubbleItemHandler () @ application/sc/modules/ISC_Forms.js:499:1
        DynamicForm.elementFocus () @ application/sc/modules/ISC_Forms.js:514:1
        FormItem._nativeElementFocus () @ application/sc/modules/ISC_Forms.js:1038:33
        Class.invokeSuper () @ application/sc/modules/ISC_Core.js:272:85
        Class.Super () @ application/sc/modules/ISC_Core.js:264:158
        TextItem._nativeElementFocus () @ application/sc/modules/ISC_Forms.js:1414:554
        FormItem.._nativeFocusHandler () @ application/sc/modules/ISC_Forms.js:598:8
        FormItem._nativeFocusHandler () @ application/sc/modules/ISC_Forms.js:596:196
    
        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:172)
        at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
        at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
        at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
        at java.lang.Thread.run(Thread.java:662)
    This happens only in IE (Chrome and FF ok).
    What could cause such problem?

    Any help appreciated. Thanks in advance

    Regards
    Antoine

    #2
    Hi agalataud,

    I had similar problems with the build from end July (24th-25th(?)). I don't know the exact trace anymore, but it was related to ComboBoxItems and perhaps SelectItems.
    They went away with a newer build (perhaps 4.1-p20140727). Did you already try an August build?

    Best regards,
    Blama

    Comment


      #3
      I've just tried with the latest nightly (2014-08-03) and the problem is still there.

      With this version I face a 2nd possible regression with ListGridField.getCanHide:

      Code:
      java.lang.IllegalArgumentException: Something other than a Java object was returned from JSNI method '@com.smartgwt.client.core.DataClass::getAttributeAsBoolean(Ljava/lang/String;)': JS value of type boolean, expected java.lang.Object
      	at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:178)
      	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:281)
      	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
      	at com.smartgwt.client.core.DataClass.getAttributeAsBoolean(DataClass.java)
      	at com.smartgwt.client.widgets.grid.ListGridField.getCanHide(ListGridField.java:463)
      	at com.fircosoft.cdb.client.widgets.grid.ListGridFieldFactory.create(ListGridFieldFactory.java:40)
      Antoine

      Comment


        #4
        The second problem you mention is a dev-mode only problem which we'll address in the next build. We don't believe it's related to your original issue.

        Comment


          #5
          The IllegalArgumentException should be fixed in today's build of SGWT 5.0d and 4.1p.

          Comment


            #6
            Thanks for the update.
            Any idea on what could cause the first problem?

            Comment


              #7
              No one else has reported this, so you'll need to provide a way for us to reproduce it. If you can create a standalone repro case or tell us how to modify a showcase sample to hit the problem, that would help.

              Comment


                #8
                It turns out it was a mistake on our side.
                Thanks for your help.

                Comment

                Working...
                X