Identity Management (MOSC)

MOSC Banner

OAM OAuth service throws "java.lang.ClassCastException: " while requesting for access token!

edited Jun 20, 2017 5:01AM in Identity Management (MOSC) 3 commentsAnswered

OAM OAuth service throws "java.lang.ClassCastException: " while requesting for access token!

============================================================================================================

We are trying to integrate OAM with Google Home. We use Googles's oauth playground to validate the Oauth configuration.

While testing

Step 1: OAuth client calls OAM Oauth authorize end point with required parameters. After authentication OAM returns the Authorization code.

Step 2: When OAuth client tries to retrieve Refresh token by passing Authorization code, OAM is returning Json response

{

  "error_description": "java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long",

  "error": "server_error"

}

Error message seen in oam-server1.out log

java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long

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