Approval Request stuck at 'In Progress', logs show "Delegated token must be instance of class com.vmware.vcac.authentication.http.spring.oauth2.OAuth2Token: null"
search cancel

Approval Request stuck at 'In Progress', logs show "Delegated token must be instance of class com.vmware.vcac.authentication.http.spring.oauth2.OAuth2Token: null"

book

Article ID: 314814

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

Symptoms:
  1. An approval request is approved on a request that was submitted over 7 days ago.
  2. The approval request remains "stuck" in the state of In Progress after it has been approved.
  3. Within /var/log/vmware/vcac/catalina.out the below error is observed:

2018-11-07 09:58:26,476 vcac: [component="cafe:catalog" priority="ERROR" thread="queue-pool-executer-2" tenant="self-service" context="AiAHUcNn" parent="JLdiVpQN" token="H2WNFwPX"] com.vmware.vcac.catalog.events.RequestLifecycleEventListener.requestApproved:102 - Request [RequestId ="<Request_ID>" TenantName="" SubtenantName=""] : Error processing request approved event for request
java.lang.IllegalArgumentException: Delegated token must be instance of class com.vmware.vcac.authentication.http.spring.oauth2.OAuth2Token: null
com.vmware.vcac.catalog.events.RequestLifecycleEventListener.requestApproved:102 - Request [RequestId ="<Request_ID>" TenantName="" SubtenantName=""] : Error processing request approved event for request java.lang.IllegalArgumentException: Delegated token must be instance of class


Environment

VMware vRealize Automation 7.3.x

Cause

The requestor token expires at 7 days.  After the requestor token expires, it is deleted from the vPostgres database.  

Because the requestor token is no longer within the database, the delegated token returns a null value.

  

Resolution

To extend the validity of the token used to invoke a request after approval, within /etc/vcac/vcac.properties, set the value of persistentTokenManager.staleTokenAgeDays to a value of 14

Workaround: