Symptom
When running GET calls that contain, for example, the "criteria/includeDeepLink eq true" (it may be a different one), it returns the following error: "Cannot invoke \"com.plateausystems.elms.client.javabean.StudentJB.getCurrentStudentID()\" because \"studentJB\" is null".
Environment
SAP SuccessFactors Learning
Reproducing the Issue
- Generate the “learning/oauth-api/rest/v1/token” for an admin >
- GET call: https://learning.plateau.com/learning/odatav4/public/user/learningPlan/v1/UserTodoLearningItems?$filter=criteria/targetUserID eq 'USERID' and criteria/includeDeeplink eq true >
- "Cannot invoke \"com.plateausystems.elms.client.javabean.StudentJB.getCurrentStudentID()\" because \"studentJB\" is null".
Resolution
Please note that certain criteria may only work with one of the “learning/oauth-api/rest/v1/token” generated ("userType":"admin" | "userType":"user").
Using the "Reproducing the Issue" example, to overcome it:
- Generate the “learning/oauth-api/rest/v1/token” for a user >
- GET call: https://learning.plateau.com/learning/odatav4/public/user/learningPlan/v1/UserTodoLearningItems?$filter=criteria/targetUserID eq 'USERID' and criteria/includeDeeplink eq true >
- The error shouldn't occur.
See Also
Keywords
api, learning, get, call, error, criteria, include, eq, true, run, Cannot invoke \"com.plateausystems.elms.client.javabean.StudentJB.getCurrentStudentID()\" because \"studentJB\" is null, exception , KBA , LOD-SF-LMS-ODA , Web Services OData , LOD-SF-LMS , Learning Management System , Problem