• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Migrate app from 3.2 to 4.1 - Security violation: no session ID

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Migrate app from 3.2 to 4.1 - Security violation: no session ID

    I am trying to migrate an old 3.2 app (non MVC) to 4.1 and when I run it I'm getting a 569 Session Exception in the console.

    The Valence Error in the portal admin is:
    Security violation: no session ID

    The Help Text is:
    User attempted to perform server action without passing a session id (sid). IP address of device is 172.21.16.9. Posted data is as follows: sort=YAALPH&dir=ASC&pgm=pyrempdir&name=&cost=&titl e=&supervisor=&limit=25&start=0

    Here's the code that is loading the store for the grid:
    Code:
        
    var dsEmployees = new Ext.data.JsonStore({        
         autoLoad: true,
         url: '/valence/vvcall.pgm',
         remoteSort: true,
         root: "grid1",
         sortInfo: {
             field: 'YAALPH',
             direction: 'ASC'
         },
         totalProperty: "totalCount",
         fields: ['YAALPH', 'CC', 'SHIFT', 'ABALPH', 'JMDL01', 'MCDL01'],
         listeners: {
              beforeload: function() {
                  this.baseParams = {
                      pgm: 'pyrempdir',
                      name: Ext.getCmp('name').getValue(),
                      cost: Ext.getCmp('cost').getValue(),                    
                      title: Ext.getCmp('title').getValue(),                    
                      supervisor: Ext.getCmp('supervisor').getValue(),                    
                      limit: 25,
                      start: 0
                  };
                },
                load: function() {
                    Ext.getCmp('name').focus();
                }
            }
        });


    I'm not sure how to troubleshoot this. Any suggestions?

    Thanks,
    Eva

  • #2
    Can you verify that you are loading the "valence.js" file in your application? After your application loads...try typing in "Valence.Ajax" from the console. Is it defined?

    Comment


    • #3
      Yes to both. "valence.js" is loading and "Valence.Ajax" is defined.

      (Not sure if this makes a difference... this app is done in Ext JS 3.4. I'm not planning on converting it to any higher release of Ext JS.)
      Last edited by EvaY; 05-07-2015, 08:41 AM.

      Comment

      Working...
      X