An error occurred while generating access token from refresh token in RSA Governance & Lifecycle
Originally Published: 2016-06-13
Article Number
Applies To
RSA Version/Condition: 7.x and above
Issue
01/09/2019 12:26:24.170 ERROR (pool-5735-thread-1) [com.aveksa.server.core.oauth2.OAuth2ServiceProvider] Error occured com.aveksa.server.core.oauth2.OAuth2Exception: Error occured while generating access token from refresh token : Error occured while generating access token from refresh token : Not Found
at com.aveksa.server.core.oauth2.OAuth2Handler.getTokenFromRefreshToken(OAuth2Handler.java:195)
at com.aveksa.server.core.oauth2.OAuth2ServiceProvider.getAccessTokenUsingRefreshToken(OAuth2ServiceProvider.java:156)
at com.aveksa.gui.util.oauth2.TokenExpiryHandler.run(TokenExpiryHandler.java:50)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
01/09/2019 12:26:24.174 ERROR (pool-5735-thread-1) [com.aveksa.gui.util.oauth2.TokenExpiryHandler] Error occured while generating access token from refresh token java.lang.Exception: com.aveksa.server.core.oauth2.OAuth2Exception: Error occured while generating access token from refresh token : Error occured while generating access token from refresh token : Not Found at com.aveksa.server.core.oauth2.OAuth2ServiceProvider.getAccessTokenUsingRefreshToken(OAuth2ServiceProvider.java:163)
at com.aveksa.gui.util.oauth2.TokenExpiryHandler.run(TokenExpiryHandler.java:50)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.aveksa.server.core.oauth2.OAuth2Exception: Error occured while generating access token from refresh token : Error occured while generating access token from refresh token : Not Found
at com.aveksa.server.core.oauth2.OAuth2Handler.getTokenFromRefreshToken(OAuth2Handler.java:195)
at com.aveksa.server.core.oauth2.OAuth2ServiceProvider.getAccessTokenUsingRefreshToken(OAuth2ServiceProvider.java:156)
... 4 more
at com.aveksa.server.core.oauth2.OAuth2Handler.getTokenFromRefreshToken(OAuth2Handler.java:195)
at com.aveksa.server.core.oauth2.OAuth2ServiceProvider.getAccessTokenUsingRefreshToken(OAuth2ServiceProvider.java:156)
at com.aveksa.gui.util.oauth2.TokenExpiryHandler.run(TokenExpiryHandler.java:50)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
01/09/2019 12:26:24.174 ERROR (pool-5735-thread-1) [com.aveksa.gui.util.oauth2.TokenExpiryHandler] Error occured while generating access token from refresh token java.lang.Exception: com.aveksa.server.core.oauth2.OAuth2Exception: Error occured while generating access token from refresh token : Error occured while generating access token from refresh token : Not Found at com.aveksa.server.core.oauth2.OAuth2ServiceProvider.getAccessTokenUsingRefreshToken(OAuth2ServiceProvider.java:163)
at com.aveksa.gui.util.oauth2.TokenExpiryHandler.run(TokenExpiryHandler.java:50)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.aveksa.server.core.oauth2.OAuth2Exception: Error occured while generating access token from refresh token : Error occured while generating access token from refresh token : Not Found
at com.aveksa.server.core.oauth2.OAuth2Handler.getTokenFromRefreshToken(OAuth2Handler.java:195)
at com.aveksa.server.core.oauth2.OAuth2ServiceProvider.getAccessTokenUsingRefreshToken(OAuth2ServiceProvider.java:156)
... 4 more
Cause
AFX connectors with RESTful Web Service template can take advantage of OAuth authorization protocol. OAuth allows "client applications" to get limited access to the "endpoints/servers" using authorization token rather than authentication using credentials. Authorization tokens have limited lifetime and will expire. Clients need to retrieve a new token before authorization token expires using refresh token mechanism. AFX does this automatically in the background but can fail if connection details are not valid and up-to-date. Every time AFX fails to retrieve a new access token, it logs an error in the aveksaServer.log.
Resolution
- Make sure you can retrieve the OAuth 2.0 access token manually. To do so, click AFX > Connectors > [Connector Name] > Edit > Settings.
- Click Proceed for authorization and acquire an access token. A new authentication window will open. If you cannot complete this step, make sure all the connection details are valid and up-to-date. You may need to reach out to your AFX endpoint administrator to validate the connection details.
Notes
Related Articles
Salesforce AFX Connector provisioning fails with 'Error occured while generating access token from refresh token' and INV… 285Number of Views Generic REST Collector fails with 'Access token has expired' error in RSA Identity Governance & Lifecycle 294Number of Views Token seed import fails with 'Import Token failure' error for RSA Authentication Manager 611Number of Views Workflow editor pop-up "An error occurred communicating with the server" in RSA Identity Governance and Lifecycle 174Number of Views 'ORA-31011: XML parsing failed and ORA-19202: Error occurred in XML processing' errors running Collections after upgrading… 137Number of Views
Trending Articles
RSA Authentication Manager 8.9 Release Notes (January 2026) RSA announces the availability of the RSA SecurID Hardware Appliance 230 based on the Dell PowerEdge R240 Server How to troubleshoot Oracle database ORA-04030 errors in RSA Identity Governance & Lifecycle RSA Authentication Manager Upgrade Process Microsoft SQL Server Collectors can no longer connect to the SQL Server database after upgrade to Microsoft SQL Server 201…
Don't see what you're looking for?