Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Ext GWT Premium Member
    Join Date
    Oct 2011
    Posts
    99
    Vote Rating
    0
    LEWJO10@ca.com is on a distinguished road

      0  

    Default (GXT 3.0.3 GA) LiveGridView Exception Occurs When An Empty Result Set Is Returned

    (GXT 3.0.3 GA) LiveGridView Exception Occurs When An Empty Result Set Is Returned


    Version of Ext GWT
    This problem occurs in the recently released GA version of Ext GWT 3.0.3.

    Browser Versions
    Firefox 7
    Internet Explorer 8

    Operating System
    Windows 7 64 bit

    Hardware
    Dell Precision M4500
    8 CPUs – Intel Core i7
    8 GB Memory

    Virtual Machine
    No

    Description
    When using LiveGridView and the result set returned is empty, a java.lang.AssertionError in StoreAddEvent occurs because items.size() = 0.

    The exception does not occur as long as the result set returned has at least one item

    This is an issue in applications where the source for the result set may not always be populated with data.

    Run Mode
    Occurs in when deployed to Tomcat (web mode), and when running under Eclipse (dev mode).

    Steps to Reproduce
    The attached java class file (ExampleServiceImpl.txt) can be used to demonstrate the problem.

    This is the java class that is used for returning result sets to the Live Grid demo in the Sencha Explorer application. The class was modified on lines 127 thru 136 so that on every 3rd
    GWT RPC call an empty result set is returned.

    Replace the same class in the Sencha Explorer application with the attached java class file (ExampleServiceImpl.txt) and launch Explorer.

    Use the Navigation tree on the left to invoke the Live Grid demo.

    You will encounter the exception by moving the scroll button on the right of the Live Grid up or down 3 times or more to initiate GWT RPC calls to the modified version of ExampleServiceImpl.

    Please let me know if I am doing anything wrong in the code in the attached file or if there is a work around.

    Thanks,
    John L

    Attached Files

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,732
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    This was a regression introduced in 3.0.3, released Dec 11, 2012. This was fixed in 3.0.4, released Feb 6th 2013.

  3. #3
    Ext GWT Premium Member
    Join Date
    Oct 2011
    Posts
    99
    Vote Rating
    0
    LEWJO10@ca.com is on a distinguished road

      0  

    Default


    Thanks Colin. That's good to know.

Thread Participants: 1