SAP Knowledge Base Article - Public

3556986 - Cannot invoke \"com.plateausystems.elms.client.javabean.StudentJB.getCurrentStudentID()\" because \"studentJB\" is null

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

  1. Generate the “learning/oauth-api/rest/v1/token” for an admin >
  2. GET call: https://learning.plateau.com/learning/odatav4/public/user/learningPlan/v1/UserTodoLearningItems?$filter=criteria/targetUserID eq 'USERID' and criteria/includeDeeplink eq true >
  3. "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:

  1. Generate the “learning/oauth-api/rest/v1/token” for a user >
  2. GET call: https://learning.plateau.com/learning/odatav4/public/user/learningPlan/v1/UserTodoLearningItems?$filter=criteria/targetUserID eq 'USERID' and criteria/includeDeeplink eq true >
  3. The error shouldn't occur.

See Also

SAP SuccessFactors Learning OData APIs

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

Product

SAP SuccessFactors Learning all versions