Announcement

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

    Paging error in ListGrid

    Hi all,

    I get the following error while fetching data to get second page (first one is OK !).

    This is the request content I get from restDatasource :

    Code:
     
    _componentId=isc_OID_1
    _sortBy=id
    _operationType=fetch
    _startRow=0
    _endRow=20
    _dataSource=contacts
    This is part of my response, displayed correctly :

    Code:
     
    <response>
        <status>0</status>
        <startRow>0</startRow>
        <endRow>20</endRow>
        <totalRows>809</totalRows>
        <data>
            <Record>
                <id>1</id>
                <FirstName>Francois</FirstName>
                <LastName>Louis</LastName>
                <Email>Christophe@yahoo.com</Email>
            </Record>
            <Record>
                <id>2</id>
                <FirstName>Ludivine</FirstName>
                <LastName>Isabelle</LastName>
                <Email>Kevin@yahoo.com</Email>
            </Record>
    [...]
            <Record>
                <id>21</id>
                <FirstName>Gérard</FirstName>
                <LastName>Francois</LastName>
                <Email>Ludivine@yahoo.com</Email>
            </Record>
        </data>
    </response>
    Then I get this message as soon as I scroll down

    Code:
    java.lang.ClassCastException
    	at java.lang.Class.cast(Unknown Source)
    	at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:125)
    	at com.google.gwt.dev.shell.ie.SwtOleGlue.convertVariantsToObjects(SwtOleGlue.java:57)
    	at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:119)
    	at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:155)
    	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)
    Uncaught JavaScript exception [java.lang.ClassCastException: null
    	at java.lang.Class.cast(Unknown Source)
    	at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:125)
    	at com.google.gwt.dev.shell.ie.SwtOleGlue.convertVariantsToObjects(SwtOleGlue.java:57)
    	at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:119)
    	at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:155)
    	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)] in http://localhost:8888/com
    This is the second request I get from RestDatasource :

    Code:
     
    _componentId=isc_OID_1
    _sortBy=id
    _operationType=fetch
    _startRow=21
    _endRow=41
    _dataSource=contacts
    So error occured before the second fetch request is send back to the server ! Any idea ?

    #2
    Paging error : more information

    Running it in web mode does not hang the interface.

    The problem I have is if I scroll to bottom then the ListGrid displays only the first page (20 records).

    If I scroll down gently (using pg-down key) then no problem at all.

    Thanks for your help

    Comment


      #3
      This is the same error that I reported in this thread:

      http://forums.smartclient.com/showthread.php?t=2994

      Sanjiv said he was looking into it, but I haven't heard anything on it for a while.

      Comment


        #4
        Thank you for this ; so this is a known issue, sure it will be managed soon. I will look for a workaround and let you know.

        Regards

        François

        Comment


          #5
          I added issue 61 for this. Sorry, I completely fogot to follow up on this. I will get back to looking into it. I have a good idea of what might be causing it in hosted mode.

          Thanks,
          Sanjiv

          Comment

          Working...
          X