Announcement

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

    What is causing this warning with a listGrid

    SmartGwt 3.1p
    JDK: 1.7+
    IDE Eclipse Juno

    I am getting this warning and I have not been able to narrow it down to the offending ListGrid.

    Can you tell me why this is happening and provide a way to remedy the warning?

    11:48:55.655 [ERROR] [triad40] 11:48:55.655:TMR3:WARN:Scrollbar:isc_ListGrid_0_body_vscroll:setImage: image 'corner' couldn't be found
    com.smartgwt.client.core.JsObject$SGWT_WARN: 11:48:55.655:TMR3:WARN:Scrollbar:isc_ListGrid_0_body_vscroll:setImage: image 'corner' couldn't be found
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
    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:292)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
    at java.lang.Thread.run(Thread.java:722)


    Thanks,
    Richard

    #2
    This message should be harmless, but, it would generally be caused by taking a series of actions on a grid which cause a scrollbar to appear and immediately disappear.

    This might indicate a slightly suboptimal pattern of API calls, such as excessive calls to redraw() or allowing the component to draw() then immediately changing configuration that causes it to have to throw away and rebuild the DOM it has just rendered.

    If you can isolate test code that causes this warning and doesn't appear to have any problems like the above, please let us know and we can look into it.

    Comment


      #3
      I will try to isolate which grid is causing the problem.

      My thougts are that it is happening on a tabset. The tabset in question has five tabs one of which has two grids. The tabset is on a Window.

      From observation alone, I think it is happening when the window show() method is called; but, I cannot at this time prove this.

      If I have time before our next development cycle I will try to isolate this with a test case.

      Thanks for your swift reply,
      Richard

      Comment


        #4
        Problem reproduced with BuiltInDS

        Hi

        SmartClient Version: v8.3p_2013-01-28/PowerEdition Deployment (built 2013-01-28)
        Browser: IE8: 8.0.6001.18702

        I've reproduced this problem using BuiltInDS. The only change I made to the distribution sample was to insert the following lines into BuiltInDS.java after the existing line "boundList.setHeight(200);" at line 97:

        boundList.setWidth(100);
        boundList.setAutoFitData(Autofit.HORIZONTAL);
        boundList.setAutoFitWidthApproach(AutoFitWidthApproach.BOTH);
        boundList.setAutoFitFieldWidths(true);
        boundList.setAutoFitFieldsFillViewport(false);
        boundList.setAutoFitMaxWidth(1000);

        The idea is to have a grid whose column widths and overall size expand horizontally as required to accommodate titles and data up to a maximum overall width, after which a horizontal scroll bar should appear. There's no error during initial rendering (i.e. with no data source selected), nor when selecting the first data source, e.g. animals. However subsequent data source selections give the error below. Although the display seems to render correctly, it would be good if there were some way to avoid the error.

        17:20:52.209 [ERROR] [builtinds] 17:20:52.209:TMR2:WARN:Scrollbar:isc_ListGrid_1_body_vscroll:setImage: image 'corner' couldn't be found

        com.smartgwt.client.core.JsObject$SGWT_WARN: 17:20:52.209:TMR2:WARN:Scrollbar:isc_ListGrid_1_body_vscroll:setImage: image 'corner' couldn't be found
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        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(Unknown Source)

        Comment


          #5
          Thanks for the test case. This warning is indeed safe to ignore but we've also made a change to get rid of it going forward. Please try the next nightly build dated May 2 or greater (addressed in 8.3p and 9.0d branches)

          Regards
          Isomorphic Software

          Comment

          Working...
          X