[Building Sakai] Samigo NPE on group assessment

Paul Lukasewych plukasew at uwo.ca
Tue Jun 3 11:04:18 PDT 2014


Something like this can happen when a group is deleted and therefore the test 
has no valid groups assigned to it. Usually the remedy is to switch the test 
to be released to the whole site, with something like this:

UPDATE sam_publishedaccesscontrol_t SET releaseto = '##site name##' WHERE 
assessmentid = ##publishedassessment_id##

Paul Lukasewych
Applications Development Team
Information Technology Services
Support Services Building
Western University
(519) 661-2111 x80513
plukasew at uwo.ca

On June 3, 2014 13:52:14 Curtis Van-Osch wrote:
> Hi,
> One of our sites' Samigo data appears to have become corrupted somehow.
> The user says this occured after she tried to publish a quiz to a group
> of one student to retake the assessment.
> In the logs I see a NullPointerException whenever the site is accessed
> (stack trace below).  It looks like SAM-2283
> <https://jira.sakaiproject.org/browse/SAM-2283> would fix the issue
> (check PublishedAssessmentSettingsBean.getGroupsAuthorized() for null
> before trying to find it's length for the loop).
> 
> Does anyone know how it could have gotten to this state, and whether I
> could fix it manually in the database?  It looks like there are no
> groups authorized to take the quiz.  I tried adding a line to
> SAM_AUTHZDATA_T with FUNCTIONID = 'TAKE_PUBLISHED_ASSESSMENT' and
> QUALIFIERID = <the quiz id> and AGENTID = <id of a group in the site> to
> no avail.
> 
> Thanks,
> Curtis.



More information about the sakai-dev mailing list