Gradebook: NPE for GradingServiceImpl.convertGradeRecordToGradeDefinition

Description

When gradebook items from a Sakai 21 database is converted/upgraded to Sakai 23 or 24 (as of Nov. 14, 2022), NullPointerExceptions of the following signature are thrown when accessing a Sakai site that had gradebook data.

The Gradebook tool also does not load, where the root cause is the same NPE indicated above.

I do not (yet) know if this issue will reproduce if starting with an instance of Sakai 22.

Activity

Automation for Jira March 20, 2023 at 11:00 PM

A pull request has been created, "SAK-48060 Gradebook: NPE for convertGradeRecordToGradeDefinition", you can see it at https://github.com/sakaiproject/sakai/pull/11355

Sean Horner November 15, 2022 at 8:10 PM

To garner insights into what code changes (fixes/features) may have introduced the NPE I’ve reported in , I’ve empirically tested a build based on commit 60c7bc59e069fac54c909b34ddc66886ae99b0f9 (associated with ), which is just one commit in the master branch prior to commit c16dc006aaafbfa3136df55fbf959b88e3e2a5c9 where was merged into master.

The NPE is not expressed with that build of Sakai. However, when building with the c16dc00 commit, the NPE is expressed when accessing the Gradebook tool, per the Test Plan in .

Sean Horner November 15, 2022 at 12:24 AM

The following is an example error message logged to catalina.out right before displaying the NPE stack trace:

The ID '2' at the end of this error message corresponds to a GB_GRADABLE_OBJECT_T.ID (or gradebook item) that originates from the Assignments tool.

Fixed

Details

Priority

Affects versions

23 Status

Merged

Components

Assignee

Reporter

Created November 14, 2022 at 11:24 PM
Updated April 13, 2023 at 9:13 PM
Resolved March 21, 2023 at 2:36 PM