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

Error when launching EX5250INQ

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

  • Error when launching EX5250INQ

    Hi..
    i have valence4.1.20150505.0

    when trying out the 5250INQ example i get an error when the Valence app is trying to launch..

    i get 'Invalid Session: Invalid Valence Session ID specified
    error Log id : 109

    errorlog:

    Code:
    Program	VVSRVPGM
    Module	VVSECURE
    Procedure	VVSECURE_ISLOGGEDIN
    Message ID	VV00011
    Statement Number	
    Message Text	Security violation: Invalid session ID
    Help Text	User attempted to perform server action with an invalid session id (sid=vvRmtCall_1251073980). The session ID may be improperly formatted, as no reference to it exists in VVUSRLOG. IP address of device is 172.24.29.76. Posted data is as follows: action=getSettings&mode=desktop&customSid=vvRmtCall_1251073980&sid=&app=
    Valence Login ID	*NOSESSION
    IBM i User	QTMHHTP1
    Timestamp	2015-06-04-12.51.10.142000
    Job Number	66857
    Calling Program	VVLOGIN
    Call Stack	VVLOGIN[VVLOGIN]-->VVLOGIN[GETSETTINGS]-->VVSRVPGM{VVSECURE}[VVSECURE_ISLOGGEDIN]

    I've noticed in the errorlog that the error is in conjunction with another error:
    Code:
    Program	VVSRVPGM
    Module	VVUTILITY
    Procedure	VVUTILITY_GETENVVAR
    Message ID	VV00010
    Statement Number	
    Message Text	Environment variable "REMOTE_ADDR" does not exist
    Help Text	Either remove the call to vvUtility_getEnvVar for variable "REMOTE_ADDR" or investigate why the environment variable is not set.
    Valence Login ID	*NOSESSION
    IBM i User	TCO
    Timestamp	2015-06-04-12.51.08.661000
    Job Number	66825
    Calling Program	VVRMTCALL
    Call Stack	-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->QCMD{*N}[*N]-->QUICMENU{*N}[*N]-->QUIMNDRV{*N}[*N]-->STRCOC[_CL_PEP]-->STRCOC[STRCOC]-->QCMDEXC{*N}[*N]-->QUICMENU{*N}[*N]-->QUIMNDRV{*N}[*N]-->EX5250INQ[EX5250INQ]-->EX5250INQ[LAUNCHVALENCE]-->VVRMTCALL[VVRMTCALL]-->VVRMTCALL[MAIN]-->VVRMTCALL[SAVESESSVAR]-->VVSRVPGM{VVUTILITY}[VVUTILITY_SAVESESSVAR]-->VVSRVPGM{VVSECURE}[VVSECURE_ISLOGGEDIN]-->VVSRVPGM{VVUTILITY}[VVUTILITY_GETENVVAR]


    the settings in the portal admin are the following:

    Code:
    Login Method 1: IBM i	
    Login Method 2: Valence	
    Login Method 3: *none
    	
    URL to access Valence login page: cmis001:7042
    Use Kerberos at login:    --
    Use EIM at login: --
    
    LDAP Server Address: ---
    LDAP Server Port: 0
    
    Default user template (Valence login ID): VVADMIN
    Maximum concurrent logins:0
    Allow users to self-reset passwords via email: checked
    Mirror user status changes between Valence and IBM i: checked
    Mirror user status changes between Valence and IBM i: checked
    Last edited by ThierryC; 06-04-2015, 06:07 AM. Reason: combined error in errorlog

  • #2
    Hi Theirry,

    We found the problem - it stems from a small patch made to VVUTILITY on the last build. We'll have this corrected on the next build, but if you would like to fix it yourself in the meantime, it's a one-line fix:

    In QRPGLESRC, VVUTILITY, change line 966.01 from this:
    if not vvSecure_isLoggedIn(id);
    to this:
    if not vvSecure_isLoggedIn(id:*on);

    Then recompile the VVUTILITY module (option 15) and update the VVSRVPGM service program as follows:
    UPDSRVPGM SRVPGM(VALENCE41/VVSRVPGM) MODULE(VVUTILITY)

    Once that's done, recompile VVRMTCALL and then try calling EX5250INQ again. It should work now.

    Thank you for the heads-up, and apologies for the hassle!

    -R

    Comment


    • #3
      Hi Robert,

      i've applied the source change and now it works perfectly..

      thx

      T

      Comment

      Working...
      X