This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Client (via OAuth2RestTemplate) attempts to invoke resource server and is unable to do so.

Stack trace below occurs when a javascript client calls the servlet that is responsible for returning an access token so that the javascript can talk to the resource server. The servlet just invokes OAuth2RestTemplate.getAccessToken. Typically this works fine. I assume when the refresh token is expired the OAuth2RestTemplate should obtain a new one (just like it did originally.) As you can see from the stack trace, the authorization server is returning an InvalidGrantException indicating that the refresh token is expired. Thoughts?