Results 1 to 2 of 2

Thread: Cannot find cause of error

  1. #1
    Sencha Premium User
    Join Date
    Dec 2010
    Posts
    279
    Answers
    8

    Default Cannot find cause of error

    We have a fairly large ExtJS app and I recently began to log javascript errors. Most of the time I can track down the source of the error but there are a couple of errors that get logged frequently where I cannot determine the source of the error. Not sure if anyone here can help with this since I am not able to share source code but I thought I would give it a shot.

    Here are the errors:

    Code:
    {
       "msg": "Uncaught TypeError: Cannot read property 'style' of null",
       "url": "https://domain.com/app.js?_dc=20191015104141",
       "line": "1",
       "href": "https://domain.com",
       "windowWidth": "1536",
       "windowHeight": "723",
       "extVersion": "6.7.0.212",
       "localDate": "Thu Oct 17 2019 11:42:06 GMT-0700 (Pacific Daylight Time)",
       "browser": "Chrome77",
       "column": "349376",
       "stack": "TypeError: Cannot read property 'style' of null\n    
       at ctor.setStyle (https://domain.com/app.js?_dc=20191015104141:1:349376)\n    
       at ctor.setZIndex (https://domain.com/app.js?_dc=20191015104141:1:351302)\n    
       at ctor.setZIndex (https://domain.com/app.js?_dc=20191015104141:1:550953)\n    
       at ctor.onCollectionSort (https://domain.com/app.js?_dc=20191015104141:1:1034373)\n    
       at ctor.notify (https://domain.com/app.js?_dc=20191015104141:1:654233)\n    
       at ctor.sortItems (https://domain.com/app.js?_dc=20191015104141:1:656000)\n    
       at ctor.onSortChange (https://domain.com/app.js?_dc=20191015104141:1:655673)\n    
       at ctor.onEndUpdateSorters (https://domain.com/app.js?_dc=20191015104141:1:657335)\n    
       at ctor.fire (https://domain.com/app.js?_dc=20191015104141:1:182943)\n    
       at ctor.doFireEvent (https://domain.com/app.js?_dc=20191015104141:1:190453)"
    }
    Code:
    {
       "msg": "Uncaught TypeError: Cannot read property 'parentNode' of null",
       "url": "https://domain.com/app.js?_dc=20191015104141",
       "line": "1",
       "href": "https://domain.com",
       "windowWidth": "1536",
       "windowHeight": "754",
       "extVersion": "6.7.0.212",
       "localDate": "Wed Oct 16 2019 16:29:43 GMT-0700 (Pacific Daylight Time)",
       "browser": "Chrome77",
       "column": "1893421",
       "stack": "TypeError: Cannot read property 'parentNode' of null\n    
       at ctor.activateCell (https://domain.com/app.js?_dc=20191015104141:1:1893421)\n    
       at ctor.activateCell (https://domain.com/app.js?_dc=20191015104141:1:1688686)\n    
       at ctor.setActionableMode (https://domain.com/app.js?_dc=20191015104141:1:1687457)\n    
       at ctor.setActionableMode (https://domain.com/app.js?_dc=20191015104141:1:1618286)\n    
       at ctor.onCellClick (https://domain.com/app.js?_dc=20191015104141:1:1889434)\n    
       at ctor.fire (https://domain.com/app.js?_dc=20191015104141:1:182943)\n    
       at ctor.doFireEvent (https://domain.com/app.js?_dc=20191015104141:1:190453)\n    
       at ctor.doFireEvent (https://domain.com/app.js?_dc=20191015104141:1:589079)\n    
       at ctor.b.doFireEvent (https://domain.com/app.js?_dc=20191015104141:1:521890)\n    
       at ctor.fireEventArgs (https://domain.com/app.js?_dc=20191015104141:1:189355)"
    The column numbers of where the error starts is not our code but the framework. Would that indicate the problem is with the framework and not necessarily our code?

  2. #2
    Sencha User
    Join Date
    Oct 2018
    Location
    Noida
    Posts
    56
    Answers
    10

    Default

    Hi Tomdchi,

    By seeing your error logs, I am guessing that those errors are coming after the grid actions like sorting, cellediting start etc.
    So the problem might be with your grid editor(if you have used any).

    But not sure 100% as there is no live error scenario to debug.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •