Identity Management (MOSC)

MOSC Banner

NullPointerException when exchanging code for oAuth access token

edited Jul 11, 2017 10:46PM in Identity Management (MOSC) 1 commentAnswered ✓

I have a new install of OAM 11.1.2.3 and are following the guide at http://www.ateam-oracle.com/implementing-oauth-2-with-oracle-access-manager-oauth-services-part-iv/ to test the 3-leg oAuth flow.

I am able to obtain the auth code, however when attempting to exchange this for the oAuth access token, I get the following error, any ideas as to what this means?

java.lang.NullPointerException

at oracle.security.idaas.oauth.token.TokenRequest.isRequiredClientAuthentication(TokenRequest.java:688)

at oracle.security.idaas.oauth.token.TokenRequest.validateAndSetClientInfo(TokenRequest.java:607)

at oracle.security.idaas.oauth.token.TokenRequest.<init>(TokenRequest.java:502)

at oracle.security.idaas.oauth.token.impl.OAuthTokenRequestHandler.processRequestInternalNew(OAuthTokenRequestHandler.java:430)

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center