I just downloaded the SmartClient Version: SC_SNAPSHOT-2010-10-26/EVAL Deployment. The first thing I noticed when running it is that on a couple of different ListGrids, when they are first displayed and the afterwards whenever the mouse pointer is moved over the grid area (even the part below the last record in the grid) the following message appears repeatedly. Every time I move the mouse it shows up another 4 or 5 times.
17:31:53.314:TMR9:WARN:ResultSet:isc_ResultSet_26 (created by: isc_IpListGrid_6):get: invalid index -2
17:31:53.409:TMR2:WARN:ResultSet:isc_ResultSet_26 (created by: isc_IpListGrid_6):get: invalid index -2
17:31:53.488:TMR5:WARN:ResultSet:isc_ResultSet_26 (created by: isc_IpListGrid_6):get: invalid index -2
17:31:53.577:TMR9:WARN:ResultSet:isc_ResultSet_26 (created by: isc_IpListGrid_6):get: invalid index -2
17:31:53.643:TMR2:WARN:ResultSet:isc_ResultSet_26 (created by: isc_IpListGrid_6):get: invalid index -2
17:31:53.710:TMR4:WARN:ResultSet:isc_ResultSet_26 (created by: isc_IpListGrid_6):get: invalid index -2
17:31:53.779:TMR8:WARN:ResultSet:isc_ResultSet_26 (created by: isc_IpListGrid_6):get: invalid index -2
Not reproducible with some quick tests, can you be more specific? This is most likely due to some API you are calling, or some specific combination of features you have enabled.
To reproduce it, we just click empty spaces in a databound ListGrid (no handlers attached).
The datasource has been loaded properly (confirmed by all standard DS operations working as they should).
The only useful discerning detail I can give is that, all other things being equal:
8.3p_2013-02-14/EVAL Deployment gives us no warning
8.3p_2013-05-14/EVAL Deployment does give us the warning, and so does the latest 4.0 beta.
Hi,
Same problem into SmartGWT EE latest nightly (and also nightly of 10 may).
Into ListGrids databounded, no Handler added, all clicks on “white space” not in record, give a:
[ERROR] [dtproviding] - 14:57:47.987:MUP4:WARN:ResultSet:isc_ResultSet_1 (created by: isc_ListGrid_1):get: invalid index -2
Having this issue with SmartGWT PRO 2014-01-22 nightly build, in my application which includes a number of databound ListGrids… In any of the grids that have white space below the last row, hovering just below the last row results in an error, shown below for three different grids:
TMR8:WARN:ResultSet:isc_ResultSet_0 (created by: ticketListGrid):get: invalid index -2
TMR5:WARN:ResultSet:isc_ResultSet_3 (created by: tatListGridSpecial_Day):get: invalid index -2
TMR3:WARN:ResultSet:isc_ResultSet_4 (created by: tatListGridSpecial_Number_Char):get: invalid index -2
Could it be a fix needs to be ported to this edition?
(Had just upgraded from SmartGWT LGPL version 3.1 and had not seen this error before.)
The fix that resolved the 3.1 issue was definitely applied to 4.0. It’s likely this issue is new, or it could be actual bad usage on your part (something like asking for the index of a null Record).
We’d need a way to reproduce the problem to comment further. If it seems to be related to your hovers, try adding similar settings to one of the samples and see if you can get the warning to appear; we can then look at that code.
This code manifests the problem in my environment. When I hover just under the last line of data in the grid, I get: [ERROR] [wgrid] - 09:08:30.523:TMR3:WARN:ResultSet:isc_ResultSet_0 (created by: isc_ListGrid_0):get: invalid index -2
Would appreciate if you could take a look. Thanks.
Wgrid.java:
package wgrid.client;
import com.google.gwt.core.client.EntryPoint;
import com.smartgwt.client.data.DataSource;
import com.smartgwt.client.data.DataSourceField;
import com.smartgwt.client.data.Record;
import com.smartgwt.client.types.FieldType;
import com.smartgwt.client.widgets.HTMLFlow;
import com.smartgwt.client.widgets.grid.ListGrid;
import com.smartgwt.client.widgets.layout.VStack;
public class Wgrid implements EntryPoint
{
public void onModuleLoad()
{
ListGrid grid = new ListGrid();
grid.setHeight(150); // adds white space below
DataSource source = new DataSource();
source.setClientOnly(true);
DataSourceField[] dsFields = new DataSourceField[2];
dsFields[0] = new DataSourceField("One", FieldType.TEXT);
dsFields[1] = new DataSourceField("Two", FieldType.TEXT);
source.setFields(dsFields);
source.getFields()[0].setPrimaryKey(true);
grid.setDataSource(source);
for (int i=0 ; i<3; i++) {
Record rec = new com.smartgwt.client.data.Record();
rec.setAttribute("One",Integer.toString(i));
rec.setAttribute("Two",Integer.toString(i));
source.addData(rec);
}
grid.fetchData();
VStack vstack = new VStack();
vstack.addMember(grid);
vstack.addMember(new HTMLFlow("<hr/>"));
vstack.draw();
}
}
This appears to have been a regression in the 4.0p / 9.0p branch only. We’ve made a change to fix this.
Please try the next nightly build dated Feb 1 or above