[Building Sakai] Samigo NPE on group assessment

Curtis Van-Osch curtis.van-osch at hec.ca
Tue Jun 3 12:04:28 PDT 2014


It worked!  Thanks so much!

Although I tried deleting a group that had an assessment published to it 
and didn't have the same issue.  Must be a little more to it than that.  
Anyway, we'll be testing that patch and probably deploying it this week 
to avoid this in the future, regardless of whatever the cause was.

<http://www.hec.ca>
	
Curtis Van Osch
Analyste-Programmeur
Service de développement de systèmes d'information
hec.ca <http://www.hec.ca>
Agréments 	
3000, chemin de la Côte-Sainte-Catherine, Montréal (Québec) H3T 2A7
Téléphone : 514 340-6000, poste 2029

	
recyclez 		
Pensons à l'environnement
avant d'imprimer

-------- Message original --------
Sujet: Re: [Building Sakai] Samigo NPE on group assessment
De : Paul Lukasewych <plukasew at uwo.ca>
Pour : sakai-dev at collab.sakaiproject.org
Copie à : Curtis Van-Osch <curtis.van-osch at hec.ca>
Date : 2014-06-03 14:04
> 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.
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140603/c30d378f/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HEC_149px.png
Type: image/png
Size: 2554 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140603/c30d378f/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hecca.png
Type: image/png
Size: 345 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140603/c30d378f/attachment-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3A-2008.png
Type: image/png
Size: 2335 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140603/c30d378f/attachment-0002.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Feuille_25px.jpg
Type: image/jpeg
Size: 20493 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140603/c30d378f/attachment.jpg 


More information about the sakai-dev mailing list