• 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.

Getting error in the EX5250INQ-example (launch a valence pgm from green screen)

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

  • Getting error in the EX5250INQ-example (launch a valence pgm from green screen)

    i'm trying the ex5250inq example in order to test the functionality for launchig a valence app, directly from a green screen.

    however when i try the example :

    - i launch ex5250inq from a cmd-line in green screen
    - the browser is opening, in the customer lookup app;
    - i get error: "no session id was passed to the server : error log ID : 9

    You do not have permission to view this gallery.
    This gallery has 2 photos.

  • #2
    Interesting, it works fine on our end...

    Let's narrow some things down:
    What release of Valence 5.0 are you running? (on the Portal, click the upper left menu selector to open the drawer, then click the user symbol in the upper left, then click "About" in the lower left)
    What browser / version is it launching?
    Do you see any pertinent information in the Errors app?

    EX5250INQ calls VVRMTCALL. It would be interesting to confirm what happens if you run EX5250INQ in debug and step into the openValenceApp procedure (which goes to VVRMTCALL). In the main() procedure, does it succeed in generating a SID at line 112.00, on the call to VVLOGIN?

    Comment


    • #3
      Hi Robert,

      i'm on version 5.0.20170313.0
      launching from google Chrome

      When debugging this program i do get an SID

      (although it seems that the source line you mentioned (112) is different from what i have on my system. (140)
      in the vvrmtcall

      could it be that the crossreference between sid and timestamp is not correct and thus causing this issue?
      so i'm still getting the error: "No session ID (sid) was passed to the server"
      although the portal opens, the example app is opened, and the customer app is opened


      Code:
      136         // good-to-go... attempt to create a session                  
      137         sid='*CUSTOM';      // this tells VVLOGIN to generate a session
      138         lngid=*blanks;      // blank language id here means defer to po
      139         rmtCallId=%subst(%char(%dec(%timestamp())):9:10); // unique tem
      140         vvLogin(sid:usrid:envid:lngid:rmtCallId);                      
      141         if sid='*ERROR'; // something went wrong...                    
      142           remote.errMsg='Valence session not created; see Valence error
      143           return;                                                      
      144         endif;                                                        
      145
      the values is get in the vvlogin are the following
      sid: 22696C24DDADE0F5217121F144E8701740862883B3BDCAFB61 8B1CC8EB63
      84DC'
      usrid: 1001
      envid: 0
      lngid: ' '
      rmtCallId: '0945108010'


      i can also see that the session variables are correctlye written to the vvsessvars PF
      22696C24DDADE0F5217121F144E8701740862883B3BDCAFB61 8B1CC8EB6384DC VVRMTCALL_app 125
      22696C24DDADE0F5217121F144E8701740862883B3BDCAFB61 8B1CC8EB6384DC VVRMTCALL_appParams "launchApp=EXFORM&addlData=1"
      22696C24DDADE0F5217121F144E8701740862883B3BDCAFB61 8B1CC8EB6384DC VVRMTCALL_autoLogout "true"
      22696C24DDADE0F5217121F144E8701740862883B3BDCAFB61 8B1CC8EB6384DC VVRMTCALL_autoStart "false"
      22696C24DDADE0F5217121F144E8701740862883B3BDCAFB61 8B1CC8EB6384DC VVRMTCALL_portal "false"




      this is the ur that is transfered in vvRmtCall1(url) (ps. is changed the name from my system to xxxxx)
      PHP Code:
                                    Evaluate Expression                              

       Previous debug expressions                                                    

            241   
      '                '                                                  
       
      > EVAL sid                                                                    
         SID 
      =                                                                        
                   ...
      .5...10...15...20...25...30...35...40...45...50...55...60      
              1   
      '22696C24DDADE0F5217121F144E8701740862883B3BDCAFB618B1CC8EB63'      
             
      61   '84DC'                                                              
       
      > EVAL url                                                                    
         URL 
      =                                                                        
                   ...
      .5...10...15...20...25...30...35...40...45...50...55...60      
              1   
      'http://xxxxxxx:7050?customSid=vvRmtCall_0945108010          '      
             
      61   '                                                            '      
            
      121   '                                                            '      
            
      181   '                                                            '      
            
      241   '                '                                                  
                                                                              
      EINDE  
       Debug 
      . . .                                                                    

       
      F3=Exit   F9=Retrieve   F12=Cancel   F16=Repeat find   F19=Left   F20=Right    
       F21
      =Command entry       F23=Display output 
      Last edited by ThierryC; 04-04-2017, 10:19 AM.

      Comment


      • #4
        This turned out to be a front-end problem, which has been fixed in the latest Valence 5.0 build (5.0.20170415.0).
        Last edited by robert.swanson; 04-18-2017, 11:59 AM.

        Comment

        Working...
        X