My Oracle Support Banner

Session API Call Is Getting Failed with OAuth Token (Doc ID 2692917.1)

Last updated on APRIL 18, 2023

Applies to:

Oracle Banking Digital Experience - Version 20.1.0.0.0 to 20.1.0.0.0 [Release 20]
Information in this document applies to any platform.

Symptoms

When session API with oAuth token is called from outside of the application, then it gets failed with below error. However, the session gets created when session API is called inside the application.


ERROR
-----------------------
Device is not registered.


[2020-07-02T00:49:42.657+05:00] [OBDXManagedServer1] [ERROR] [] [com.ofss.digx.extxface.user.adapter.impl.UserAdapter] [tid: [ACTIVE].ExecuteThread: '11' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: ] [ecid: 005eMQNoxAND8hO6yjqYMG000Giv00004i,0:1] [APP: obdx.app.rest.idm] [partition-name: DOMAIN] [tenant-name: GLOBAL] [< 1-0228-6722-2396-3600 >] Error while generating response of method read in the class %s. Exception details are: %s. [[
java.lang.NullPointerException
at com.ofss.sms.dbAuthenticator.providers.db.DBUser.(DBUser.java:45)
at com.ofss.sms.dbAuthenticator.providers.db.DBUserSearchResponse.next(DBUserSearchResponse.java:116)
at com.ofss.sms.dbAuthenticator.providers.db.DBIdentityStore.searchUser(DBIdentityStore.java:159)
at com.ofss.digx.extxface.user.adapter.impl.UserAdapter.read(UserAdapter.java:267)
at com.ofss.digx.domain.sms.entity.jwtoken.policy.JWTokenVerifyBusinessPolicy.validatePolicy(JWTokenVerifyBusinessPolicy.java:80)
at com.ofss.fc.framework.domain.policy.AbstractBusinessPolicy.validate(AbstractBusinessPolicy.java:60)
at com.ofss.digx.app.sms.service.jwtoken.JWTokenHelper.validateDevice(JWTokenHelper.java:182)
at com.ofss.digx.core.sms.adapter.impl.jwtoken.JWTokenAdapter.validateDevice(JWTokenAdapter.java:53)


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Through thirdparty tool (like Postman) generate oauth token.
2. Using with oauth token response ,make /session API call externally (Thirdparty Tool i.e POSTMAN)
3. /session API call is failing with error



Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.