Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-4056 in a recent build.
  1. #1
    Sencha Premium Member
    Join Date
    Oct 2012
    Location
    Brisbane, QLD, Australia
    Posts
    45
    Vote Rating
    3
    ampro is on a distinguished road

      0  

    Default Direct proxy throws "Uncaught TypeError: Cannot call method 'getMessage' of null"

    Direct proxy throws "Uncaught TypeError: Cannot call method 'getMessage' of null"


    Ext.data.proxy.Direct throws "Uncaught TypeError: Cannot call method 'getMessage' of null" when server returns an exception event.




    Ext version tested:
    Description:
    Test Case:


    Sample server response message:
    Code:
    {
      "type": "exception",
      "message": "You stuffed up exceptionally buddy.",
      "where": "",
      "tid": 6,
      "action": "Auth",
      "method": "Login"
    }



    HELPFUL INFORMATION


    Debugging already done:
    • Siesta unit tests that reproduce the fault.

    Possible fix:
    • See discussion posting above.
    Last edited by ampro; 26 Feb 2013 at 3:51 PM. Reason: updated ST version

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,004
    Vote Rating
    847
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha Premium Member
    Join Date
    Oct 2012
    Location
    Brisbane, QLD, Australia
    Posts
    45
    Vote Rating
    3
    ampro is on a distinguished road

      0  

    Default


    As a workaround for other devs I've attached a "fixed" version of Direct proxy in which I've altered the class name and alias. In this workaround, I've cloned most of the Server.js class code for processResponse() but this is probably not the best long term solution for code maintenance (see a recommended fix in linked discussion post above).
    Attached Files