Announcement

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

    Unnecessary / Unclear warnings when switching fields in Listgrid.startEditingNew-row

    Hi Isomorphic,

    please see the testcase (using v10.0p_2015-10-08/PowerEdition Deployment) from this thread (attached files in the end, plus addition to BuiltInDS.html).

    When I click the "Add Row" button and enter data from left to right, after a cell-switch I get this error in the Developer Console several times:
    Code:
    23:50:35.596:MDN2:WARN:ResultSet:isc_ResultSet_0 (dataSource: employees, created by: isc_ListGrid_0):getRange(23, 24): start beyond end of rows, returning empty list
    23:50:42.182:MDN6:WARN:ResultSet:isc_ResultSet_0 (dataSource: employees, created by: isc_ListGrid_0):getRange(23, 24): start beyond end of rows, returning empty list
    I think that it does not matter, but I try to keep my application warning-free (this is a minor one for me).

    Best regards
    Blama

    #2
    This will be shown when a request is made against a resultSet for rows that are outside the advertised length of the data.
    Could you use the "watch" tab to enable Stack Traces on ResultSet getRange -- you can do this by entering "isc.ResultSet" as the "object" and "getRange" as the method, and then clicking trace method.

    You should see a stack trace right before this warning which will let us know what code is calling this with a bad start/end row parameter. This may indicate something in app code or in framework code. If you're not encountering any problems with your app this probably is safe to ignore, but we'd be happy to take a look at the stack trace to see if we can see what's causing it.

    Thanks
    Isomorphic Software

    Comment


      #3
      Hi Isomorphic,

      the stack trace (now using SNAPSHOT_v10.1d_2015-10-13/PowerEdition Deployment) is:
      Code:
      23:28:52.505:TMR4:WARN:Log:expression is: isc.Log.logWarn('ResultSet.getRange() - trace:' +isc.Log.getStackTrace())
      23:28:52.523:TMR4:WARN:Log:MethodTimer: Logging traces whenever getRange method on isc.ResultSet is called
      23:29:05.378:MUP7:WARN:Log:ResultSet.getRange() - trace:
          anonymous(_1=>0, _2=>undef, _3=>undef, _4=>undef)
          thunk(_1=>0, _2=>undef, _3=>undef, _4=>undef)
          getRangeObservation(0, undef)
          ListGrid.requestVisibleRows()
          Canvas.filterWithCriteria(_1=>Obj, _2=>Obj{ID:employees2_fetch}, _3=>Obj)
          Canvas.$wo(_1=>"filter", _2=>Obj, _3=>Obj, _4=>Obj)
          Class.invokeSuper(_1=>null, _2=>"$wo", _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef)
          Class.Super(_1=>"$wo", _2=>Array[4], _3=>[object Arguments])
          ListGrid.$wo(_1=>"filter", _2=>Obj, _3=>Obj, _4=>Obj, _5=>undef)
          Canvas.filterData(_1=>Obj, _2=>Obj, _3=>Obj)
          PickList.filterDataBoundPickList(_1=>Obj, _2=>true)
          PickList.$19p(_1=>false, _2=>Obj, _3=>null, _4=>true)
          PickList.filterPickList(_1=>false, _2=>false, _3=>Obj, _4=>true)
          PickList.setUpPickList(_1=>false, _2=>false, _3=>Obj, _4=>true)
          PickList.makePickList(_1=>false, _2=>Obj, _3=>false, _4=>true)
          SelectItem.makePickList(_1=>false, Obj, false, true)
          PickList.fetchData(_1=>null, _2=>Obj, _3=>true)
          SelectItem.drawn(_1=>true, _2=>undef, _3=>undef, _4=>undef)
          ListGrid.$30b(_1=>null, _2=>true, _3=>[GridBody ID:isc_ListGrid_0_body])
          GridBody.redraw(_1=>"Showing editor", _2=>undef, _3=>undef, _4=>undef)
          ListGrid.$32s(_1=>22, _2=>0, _3=>undef)
          ListGrid.showInlineEditor(_1=>22, _2=>0, _3=>true, _4=>true, _5=>undef)
          ListGrid.$31u(_1=>22, _2=>0, _3=>undef)
          ListGrid.startEditing(_1=>22, _2=>0, _3=>undef, _4=>undef, _5=>undef)
          ListGrid.startEditingNew(_1=>undef, _2=>undef)
          anonymous()
          anonymous(thisObj=>IButton{title: "Add Row",
      AUTOIDClass: "IButton",
      ID: "isc_IButton_0",
      position: "absolute",
      top: 600,
      styleName: null,
      locatorParent: [Window ID:isc_Window_0],
      parentElement: [Layout ID:isc_Window_0_body],
      topElement: [Window ID:isc_Window_0],
      tabIndex: 1254,
      ruleScope: "isc_Window_0",
      cacheOffsetCoords: true,
      zIndex: 200306,
      state: "Over",
      hasFocus: true,
      }, dispId=>3604482, p0=>An event type)
          anonymous(param=>Obj)
          anonymous(jsFunction=>anonymous(), thisObj=>[object Window], args=>[object Arguments])
          anonymous(thisObj=>null, dispId=>65576, p0=>anonymous(), p1=>[object Window], p2=>[object Arguments])
          anonymous(Obj)
          anonymous(Obj)
          [o]IButton.click(Obj, undef)
          StatefulCanvas.handleActivate(_1=>Obj, _2=>undef)
          StatefulCanvas.handleClick(_1=>Obj, _2=>undef)
          [c]EventHandler.bubbleEvent(_1=>[IButton ID:isc_IButton_0], _2=>"click", _3=>undef, _4=>undef, _5=>undef)
          [c]EventHandler.handleClick(_1=>[IButton ID:isc_IButton_0], _2=>undef)
          [c]EventHandler.$k5(_1=>[object MouseEvent], _2=>undef)
          [c]EventHandler.handleMouseUp(_1=>[object MouseEvent], _2=>undef)
          [c]EventHandler.dispatch(_1=>[c]EventHandler.handleMouseUp(), _2=>[object MouseEvent])
          anonymous(event=>[object MouseEvent])
      
      23:29:06.268:XRP6:WARN:Log:ResultSet.getRange() - trace:
          anonymous(_1=>0, _2=>undef, _3=>undef, _4=>undef)
          thunk(_1=>0, _2=>undef, _3=>undef, _4=>undef)
          getRangeObservation(0, undef)
          ListGrid.requestVisibleRows()
          PickListMenu.dataChanged(_1=>undef, _2=>undef, _3=>undef, _4=>undef, undef, undef)
          Class.invokeSuper(_1=>null, _2=>"dataChanged", _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef)
          Class.Super(_1=>"dataChanged", _2=>[object Arguments], _3=>undef)
          [o]PickListMenu.dataChanged(_5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef)
          anonymous(operationType=>undef, originalRecord=>undef, rowNum=>undef, updateData=>undef, filterChanged=>undef, dataFromCache=>undef)
          dataChangedObservation(undef, undef, undef, undef, undef, undef)
          ResultSet.$ee(_1=>undef, _2=>undef)
          ResultSet.$390(_1=>Array[23], _2=>Obj)
          ResultSet.fetchRemoteDataReply(dsResponse=>Obj, data=>Array[23], request=>Obj)
          [c]Class.fireCallback(_1=>Obj, _2=>"dsResponse,data,dsRequest", _3=>Array[3], _4=>[DataSource ID:employees2], _5=>undef)
          Class.fireCallback(_1=>Obj, _2=>"dsResponse,data,dsRequest", _3=>Array[3], _4=>undef)
          DataSource.fireResponseCallbacks(_1=>Obj, _2=>Obj, _3=>Obj, _4=>Obj)
          DataSource.$38b(_1=>Array[23], _2=>Obj, _3=>Obj, _4=>Obj, _5=>Obj)
          DataSource.$50h(_1=>Obj, _2=>Array[23], _3=>Obj)
          ** recursed on [c]Class.fireCallback
      
      23:29:06.291:XRP6:WARN:Log:ResultSet.getRange() - trace:
          anonymous(_1=>0, _2=>1, _3=>undef, _4=>undef)
          thunk(_1=>0, _2=>1, _3=>undef, _4=>undef)
          getRangeObservation(0, 1)
          Selection.selectRange(_1=>0, _2=>1, _3=>undef)
          Selection.selectItem(_1=>0)
          ScrollingMenu.dataChanged(undef, undef, undef, undef, undef, undef)
          Class.invokeSuper(_1=>null, _2=>"dataChanged", _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef)
          Class.Super(_1=>"dataChanged", _2=>[object Arguments], _3=>undef)
          PickListMenu.dataChanged(_1=>undef, _2=>undef, _3=>undef, _4=>undef, undef, undef)
          ** recursed on Class.invokeSuper
      
      23:29:06.338:XRP6:WARN:Log:ResultSet.getRange() - trace:
          anonymous(_1=>0, _2=>23, _3=>undef, _4=>undef)
          thunk(_1=>0, _2=>23, _3=>undef, _4=>undef)
          getRangeObservation(0, 23)
          PickList.handleDataArrived(_1=>0, _2=>23, _3=>[ResultSet ID:isc_ResultSet_1 (dataSource: employees2, created by: isc_PickListMenu_0)])
          [o]PickListMenu.dataArrived(_5=>0, _6=>23)
          ListGrid.$66d(_1=>0, _2=>23, undef)
          anonymous(startRow=>0, endRow=>23, dataFromCache=>undef)
          dataArrivedObservation(0, 23)
          ResultSet.$522(_1=>0, _2=>23, _3=>false)
          ResultSet.fetchRemoteDataReply(dsResponse=>Obj, data=>Array[23], request=>Obj)
          [c]Class.fireCallback(_1=>Obj, _2=>"dsResponse,data,dsRequest", _3=>Array[3], _4=>[DataSource ID:employees2], _5=>undef)
          Class.fireCallback(_1=>Obj, _2=>"dsResponse,data,dsRequest", _3=>Array[3], _4=>undef)
          DataSource.fireResponseCallbacks(_1=>Obj, _2=>Obj, _3=>Obj, _4=>Obj)
          DataSource.$38b(_1=>Array[23], _2=>Obj, _3=>Obj, _4=>Obj, _5=>Obj)
          DataSource.$50h(_1=>Obj, _2=>Array[23], _3=>Obj)
          ** recursed on [c]Class.fireCallback
      
      23:29:13.155:MUP5:WARN:Log:ResultSet.getRange() - trace:
          anonymous(_1=>0, _2=>undef, _3=>undef, _4=>undef)
          thunk(_1=>0, _2=>undef, _3=>undef, _4=>undef)
          getRangeObservation(0, undef)
          ListGrid.requestVisibleRows()
          Canvas.filterWithCriteria(_1=>Obj, _2=>Obj{ID:employees2_fetch}, _3=>Obj)
          Canvas.$wo(_1=>"filter", _2=>Obj, _3=>Obj, _4=>Obj)
          Class.invokeSuper(_1=>null, _2=>"$wo", _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef)
          Class.Super(_1=>"$wo", _2=>Array[4], _3=>[object Arguments])
          ListGrid.$wo(_1=>"filter", _2=>Obj, _3=>Obj, _4=>Obj, _5=>undef)
          Canvas.filterData(_1=>Obj, _2=>Obj, _3=>Obj)
          PickList.filterDataBoundPickList(_1=>undef, _2=>undef)
          PickList.$19p(_1=>undef, _2=>undef, _3=>null, _4=>undef)
          PickList.filterPickList(_1=>undef, _2=>undef, _3=>undef, _4=>undef)
          PickList.setUpPickList(_1=>undef, _2=>undef, _3=>undef, _4=>undef)
          PickList.showPickList(_1=>undef, _2=>undef)
          SelectItem.showPickList(_1=>undef, _2=>undef)
          SelectItem.handleClick([SelectItem ID:isc_BuiltInDS_SelectItemReportsTo_1 name:ReportsTo], undef, undef, undef)
          DynamicForm.bubbleItemHandler(_1=>[SelectItem ID:isc_BuiltInDS_SelectItemReportsTo_1 name:ReportsTo], _2=>"handleClick", _3=>[SelectItem ID:isc_BuiltInDS_SelectItemReportsTo_1 name:ReportsTo], _4=>undef, _5=>undef, _6=>undef)
          DynamicForm.handleItemClick(_1=>Obj, _2=>Obj)
          DynamicForm.handleClick(_1=>Obj, _2=>undef)
          [c]EventHandler.bubbleEvent(_1=>[DynamicForm ID:isc_DynamicForm_0], _2=>"click", _3=>undef, _4=>undef, _5=>undef)
          [c]EventHandler.handleClick(_1=>[DynamicForm ID:isc_DynamicForm_0], _2=>undef)
          [c]EventHandler.$k5(_1=>[object MouseEvent], _2=>undef)
          [c]EventHandler.handleMouseUp(_1=>[object MouseEvent], _2=>undef)
          [c]EventHandler.dispatch(_1=>[c]EventHandler.handleMouseUp(), _2=>[object MouseEvent])
          anonymous(event=>[object MouseEvent])
      
      23:29:13.421:MUP5:WARN:Log:ResultSet.getRange() - trace:
          anonymous(_1=>0, _2=>23, _3=>undef, _4=>undef)
          thunk(_1=>0, _2=>23, _3=>undef, _4=>undef)
          getRangeObservation(0, 23)
          ListGrid.requestVisibleRows()
          ListGrid.bodyDrawing(_1=>[GridBody ID:isc_PickListMenu_0_body])
          GridBody.getInnerHTML(completeInnerHTMLFun())
          Canvas.$px(_1=>undef)
          Canvas.$p8(_1=>true, _2=>undef)
          Canvas.draw(_1=>undef, undef, undef, undef, undef, undef, undef, undef, undef, undef)
          Class.invokeSuper(_1=>null, _2=>"draw", _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef)
          Class.Super(_1=>"draw", _2=>[object Arguments], _3=>undef)
          GridRenderer.draw(undef, undef, undef, undef, undef, undef, undef, undef, undef, undef)
          ** recursed on Class.invokeSuper
      
      23:29:13.698:MUP5:WARN:Log:ResultSet.getRange() - trace:
          anonymous(_1=>0, _2=>23, _3=>undef, _4=>undef)
          thunk(_1=>0, _2=>23, _3=>undef, _4=>undef)
          getRangeObservation(0, 23)
          ListGrid.requestVisibleRows()
          ListGrid.bodyDrawing(_1=>[GridBody ID:isc_PickListMenu_0_body])
          GridBody.getInnerHTML(completeInnerHTMLFun())
          Canvas.$px(_1=>undef)
          Canvas.$rd(undef, undef, undef, undef, undef, undef, undef, undef, undef, undef)
          Class.invokeSuper(_1=>[Class GridRenderer], _2=>"$rd", _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef)
          GridRenderer.$rd(_1=>undef, _2=>undef, _3=>undef, _4=>undef)
          Canvas.$ra()
          Canvas.redraw(_1=>"Layout getting new size", undef, undef, undef, undef, undef, undef, undef, undef, undef)
          ** recursed on Class.invokeSuper
      
      23:29:13.932:TMR3:WARN:Log:ResultSet.getRange() - trace:
          anonymous(_1=>0, _2=>23, _3=>undef, _4=>undef)
          thunk(_1=>0, _2=>23, _3=>undef, _4=>undef)
          getRangeObservation(0, 23)
          ListGrid.requestVisibleRows()
          ListGrid.bodyDrawing(_1=>[GridBody ID:isc_PickListMenu_0_body])
          GridBody.getInnerHTML(completeInnerHTMLFun())
          Canvas.$px(_1=>undef)
          Canvas.$rd(undef, undef, undef, undef, undef, undef, undef, undef, undef, undef)
          Class.invokeSuper(_1=>[Class GridRenderer], _2=>"$rd", _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef)
          GridRenderer.$rd(_1=>undef, _2=>undef, _3=>undef, _4=>undef)
          Canvas.$ra()
          Canvas.redraw(_1=>false, undef, undef, undef, undef, undef, undef, undef, undef, undef)
          ** recursed on Class.invokeSuper
      Best regards
      Blama

      Comment

      Working...
      X