Announcement

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

    remove call hangs with TypeError

    I am occasionally having a problem when I delete from a list grid where the remove call works from the server side but the client just hangs due to a TypeError.

    Here is the DSRequest:
    Code:
    dataSource:"resourceUsage", 
        operationType:"remove", 
        data:{
            sysId:"c6ad403784284882921c7914f484a64d", 
            isVersion:false
        }, 
        willHandleError:true, 
        showPrompt:true, 
        oldValues:{
            sysId:"c6ad403784284882921c7914f484a64d", 
            isVersion:false
        }, 
        requestId:"resourceUsage$62717", 
        fallbackToEval:false, 
        lastClientEventThreadCode:"TMR7", 
        bypassCache:true
    Here is the response:
    Code:
    [
        {
            invalidateCache:false, 
            isDSResponse:true, 
            operationType:"remove", 
            queueStatus:0, 
            status:0, 
            data:null
        }
    ]
    and here is the error in the Development Mode tab within eclipse:
    Code:
    ERROR] [xxx] - 13:22:43.066:XRP4:WARN:Log:TypeError: _1 is undefined
    Stack from error.stack:
        ListGrid._getRecordComponents() @ xxx/sc/modules/ISC_Grids.js:790
        ListGrid._remapVisibleEmbeddedComponents() @ xxx/sc/modules/ISC_Grids.js:1754
        ListGrid._remapEmbeddedComponents() @ xxx/sc/modules/ISC_Grids.js:1742
        ListGrid.dataChanged() @ xxx/sc/modules/ISC_Grids.js:896
        anonymous() @ xxx/sc/modules/ISC_Core.js:74
        ResultSet._doneChangingData() @ xxx/sc/modules/ISC_DataBinding.js:1436
        ResultSet.handleUpdate() @ xxx/sc/modules/ISC_DataBinding.js:1434
        ResultSet.dataSourceDataChanged() @ xxx/sc/modules/ISC_DataBinding.js:1431
        anonymous() @ xxx/sc/modules/ISC_Core.js:74
        DataSource.updateCaches() @ xxx/sc/modules/ISC_DataBinding.js:451
        [c]DataSource.handleUpdate() @ xxx/sc/modules/ISC_DataBinding.js:287
        DataSource.fireResponseCallbacks() @ xxx/sc/modules/ISC_DataBinding.js:670
        DataSource._completeResponseProcessing() @ xxx/sc/modules/ISC_DataBinding.js:670
        DataSource._handleSCServerReply() @ xxx/sc/modules/ISC_DataBinding.js:1766
        [c]Class.fireCallback() @ xxx/sc/modules/ISC_Core.js:267
        [c]Class.fireCallback() @ xxx/sc/modules/ISC_Core.js:325
        anonymous() @ xxx/sc/modules/ISC_DataBinding.js:1294
        $wnd.isc.RPCManager.fireReplyCallback() @ :249
        [c]RPCManager.fireReplyCallbacks() @ xxx/sc/modules/ISC_DataBinding.js:1297
        [c]RPCManager.performOperationReply() @ xxx/sc/modules/ISC_DataBinding.js:1294
        RPCManager._performTransactionReply() @ xxx/sc/modules/ISC_DataBinding.js:1283
        [c]RPCManager.performTransactionReply() @ xxx/sc/modules/ISC_DataBinding.js:1246
        anonymous() @ xxx/sc/modules/ISC_Core.js:68
        [c]Class.fireCallback() @ xxx/sc/modules/ISC_Core.js:267
        [c]Comm.performXmlTransactionReply() @ xxx/sc/modules/ISC_Core.js:977
        anonymous() @ xxx/sc/modules/ISC_Core.js:68
        [c]Class.fireCallback() @ xxx/sc/modules/ISC_Core.js:267
        Comm._fireXMLCallback() @ xxx/sc/modules/ISC_Core.js:959
        Comm.sendXmlHttpRequest/_12() @ xxx/sc/modules/ISC_Core.js:964
        unnamed() @
    Any ideas what would be causing this? I looks like it is trying to update the DataSource cache and blows up.

    Thanks!

    #2
    I have some more details that might help with diagnosing this problem. It only happens if a record in the ListGrid changes so that it no longer qualifies for the ListGrid filter (due to value change or record deleted).

    Furthermore, if we change the record component pooling mode to RecordComponentPoolingMode.DATA (setRecordComponentPoolingMode(RecordComponentPoolingMode.DATA)), the problem does not happen.

    Is the problem somehow related to record components being destroyed after leaving the viewport?

    Here is a more detailed capture of the log with ResultSet and ListGrid at DEBUG level.

    ---

    09:35:19.517:XRP5:DEBUG:ResultSet:isc_ResultSet_2 (created by: isc_ListGrid_2):dataSource data changed firing
    09:35:19.517:XRP5:INFO:ResultSet:isc_ResultSet_2 (created by: isc_ListGrid_2):updating cache in place after operationType: update, allMatchingRowsCached true
    09:35:19.519:XRP5:INFO:ResultSet:isc_ResultSet_2 (created by: isc_ListGrid_2):Updating cache: operationType 'update' submitted by 'isc_TaskRunCriteriaFormGenerator_0',1 rows update data:
    [
    {complex: false,
    ...
    taskId: "d19030120a33002f1874aac95cb1b678",
    vertexId: "70",
    ...
    workflowId: "d2608f600a33002f600eb77b416e677c",
    complexAdjective: 0,
    variable: false}
    ]
    09:35:19.541:XRP5:DEBUG:ResultSet:isc_ResultSet_2 (created by: isc_ListGrid_2):row dropped:
    {complex: false,
    ...
    taskId: "d19030120a33002f1874aac95cb1b678",
    vertexId: "70",
    ...
    workflowId: "d2608f600a33002f600eb77b416e677c",
    complexAdjective: 0,
    variable: false}
    didn't match filter: {
    "operator":"or",
    "criteria":[
    {
    "operator":"and",
    "criteria":[
    {
    "fieldName":"workflowId",
    "operator":"equals",
    "value":"d2608f600a33002f600eb77b416e677c"
    },
    {
    "fieldName":"taskId",
    "operator":"equals",
    "value":"d19030120a33002f1874aac95cb1b678"
    },
    {
    "fieldName":"vertexId",
    "operator":"equals",
    "value":"71"
    }
    ]
    },
    {
    "operator":"and",
    "criteria":[
    {
    "fieldName":"workflowId",
    "operator":"equals",
    "value":"d2608f600a33002f600eb77b416e677c"
    },
    {
    "fieldName":"taskId",
    "operator":"equals",
    "value":"d19030120a33002f1874aac95cb1b678"
    },
    {
    "fieldName":"vertexId",
    "operator":"equals",
    "value":"-1"
    }
    ]
    }
    ],
    "_constructor":"AdvancedCriteria"
    }
    09:35:19.541:XRP5:DEBUG:ResultSet:isc_ResultSet_2 (created by: isc_ListGrid_2):updated cache: 0 row(s) added, 0 row(s) updated, 1 row(s) removed.
    09:35:19.541:XRP5:DEBUG:ResultSet:isc_ResultSet_2 (created by: isc_ListGrid_2):full length set to: 4
    09:35:19.543:XRP5:WARN:ResultSet:isc_ResultSet_2 (created by: isc_ListGrid_2):getRange(4, 5): start beyond end of rows, returning empty list
    09:35:19.547:XRP5:WARN:Log:TypeError: _1 is undefined
    Stack from error.stack:
    ListGrid._getRecordComponents() @ opswise/sc/modules/ISC_Grids.js:791
    ListGrid._remapVisibleEmbeddedComponents() @ opswise/sc/modules/ISC_Grids.js:1759
    ListGrid._remapEmbeddedComponents() @ opswise/sc/modules/ISC_Grids.js:1747
    ListGrid.dataChanged() @ opswise/sc/modules/ISC_Grids.js:900
    anonymous() @ opswise/sc/modules/ISC_Core.js:74
    ResultSet._doneChangingData() @ opswise/sc/modules/ISC_DataBinding.js:1436
    ResultSet.handleUpdate() @ opswise/sc/modules/ISC_DataBinding.js:1434
    ResultSet.dataSourceDataChanged() @ opswise/sc/modules/ISC_DataBinding.js:1431
    anonymous() @ opswise/sc/modules/ISC_Core.js:74
    DataSource.updateCaches() @ opswise/sc/modules/ISC_DataBinding.js:451
    [c]DataSource.handleUpdate() @ opswise/sc/modules/ISC_DataBinding.js:287
    DataSource.fireResponseCallbacks() @ opswise/sc/modules/ISC_DataBinding.js:670
    DataSource._completeResponseProcessing() @ opswise/sc/modules/ISC_DataBinding.js:670
    DataSource._handleSCServerReply() @ opswise/sc/modules/ISC_DataBinding.js:1766
    [c]Class.fireCallback() @ opswise/sc/modules/ISC_Core.js:267
    [c]Class.fireCallback() @ opswise/sc/modules/ISC_Core.js:325
    anonymous() @ opswise/sc/modules/ISC_DataBinding.js:1294
    $wnd.isc.RPCManager.fireReplyCallback() @ :249
    [c]RPCManager.fireReplyCallbacks() @ opswise/sc/modules/ISC_DataBinding.js:1297
    [c]RPCManager.performOperationReply() @ opswise/sc/modules/ISC_DataBinding.js:1294
    RPCManager._performTransactionReply() @ opswise/sc/modules/ISC_DataBinding.js:1283
    [c]RPCManager.performTransactionReply() @ opswise/sc/modules/ISC_DataBinding.js:1246
    anonymous() @ opswise/sc/modules/ISC_Core.js:68
    [c]Class.fireCallback() @ opswise/sc/modules/ISC_Core.js:267
    [c]Comm.performXmlTransactionReply() @ opswise/sc/modules/ISC_Core.js:977
    anonymous() @ opswise/sc/modules/ISC_Core.js:68
    [c]Class.fireCallback() @ opswise/sc/modules/ISC_Core.js:267
    Comm._fireXMLCallback() @ opswise/sc/modules/ISC_Core.js:959
    Comm.sendXmlHttpRequest/_12() @ opswise/sc/modules/ISC_Core.js:964
    unnamed() @

    ---

    SNAPSHOT_v9.0d_2013-06-09

    Comment


      #3
      Same error Here!

      Be sure your post includes:

      1.

      SmartClient Version: v9.0d_2013-06-19/PowerEdition Deployment (built 2013-06-19)

      2.

      Firefox 21.0

      3.

      17:39:35.940:XRP4:WARN:ResultSet:isc_ResultSet_2 (created by: isc_AuthorizationGrid_0):getRange(2, 3): start beyond end of rows, returning empty list
      17:39:35.962:XRP4:WARN:Log:TypeError: _1 is undefined
      Stack from error.stack:
      ListGrid._getRecordComponents() @ objectivesds/sc/modules/ISC_Grids.js:789
      ListGrid._remapVisibleEmbeddedComponents() @ objectivesds/sc/modules/ISC_Grids.js:1757
      ListGrid._remapEmbeddedComponents() @ objectivesds/sc/modules/ISC_Grids.js:1745
      ListGrid.dataChanged() @ objectivesds/sc/modules/ISC_Grids.js:898
      anonymous() @ objectivesds/sc/modules/ISC_Core.js:72
      ResultSet._doneChangingData() @ objectivesds/sc/modules/ISC_DataBinding.js:1435
      ResultSet.handleUpdate() @ objectivesds/sc/modules/ISC_DataBinding.js:1433
      ResultSet.dataSourceDataChanged() @ objectivesds/sc/modules/ISC_DataBinding.js:1430
      anonymous() @ objectivesds/sc/modules/ISC_Core.js:72
      DataSource.updateCaches() @ objectivesds/sc/modules/ISC_DataBinding.js:449
      [c]DataSource.handleUpdate() @ objectivesds/sc/modules/ISC_DataBinding.js:285
      DataSource.fireResponseCallbacks() @ objectivesds/sc/modules/ISC_DataBinding.js:668
      DataSource._completeResponseProcessing() @ objectivesds/sc/modules/ISC_DataBinding.js:668
      DataSource._handleSCServerReply() @ objectivesds/sc/modules/ISC_DataBinding.js:1765
      [c]Class.fireCallback() @ objectivesds/sc/modules/ISC_Core.js:265
      [c]Class.fireCallback() @ objectivesds/sc/modules/ISC_Core.js:323
      anonymous() @ objectivesds/sc/modules/ISC_DataBinding.js:1293
      $wnd.isc.RPCManager.fireReplyCallback() @ objectivesds/0413A5C32B911AFB7DCBBB6DA4F39794.cache.html:5185
      [c]RPCManager.fireReplyCallbacks() @ objectivesds/sc/modules/ISC_DataBinding.js:1296
      [c]RPCManager.performOperationReply() @ objectivesds/sc/modules/ISC_DataBinding.js:1293
      RPCManager._performTransactionReply() @ objectivesds/sc/modules/ISC_DataBinding.js:1282
      [c]RPCManager.performTransactionReply() @ objectivesds/sc/modules/ISC_DataBinding.js:1245
      anonymous() @ objectivesds/sc/modules/ISC_Core.js:66
      [c]Class.fireCallback() @ objectivesds/sc/modules/ISC_Core.js:265
      [c]Comm.performXmlTransactionReply() @ objectivesds/sc/modules/ISC_Core.js:975
      anonymous() @ objectivesds/sc/modules/ISC_Core.js:66
      [c]Class.fireCallback() @ objectivesds/sc/modules/ISC_Core.js:265
      Comm._fireXMLCallback() @ objectivesds/sc/modules/ISC_Core.js:957
      Comm.sendXmlHttpRequest/_12() @ objectivesds/sc/modules/ISC_Core.js:962
      unnamed() @

      This erros was not happening on version
      SmartClient Version: SNAPSHOT_v9.0d_2013-05-21/PowerEdition Deployment (built 2013-05-21)

      Thank you

      Comment


        #4
        We're not seeing this issue - but we've made a change that should prevent it happening. Please retry with a nightly build dated June 21 or later - if you still see issues, we'll need to see a test case

        Comment


          #5
          Thank you! I will check and confirm here!

          Comment

          Working...
          X