[Building Sakai] issue with externalAssessmentService

Steve Swinsburg steve.swinsburg at gmail.com
Tue Sep 10 04:23:17 PDT 2013


Here is the Jira. This is a regression in 2.10, as this bit of code was
moved post 2.9, specifically r118469.
https://jira.sakaiproject.org/browse/SAK-23908


On Tue, Sep 10, 2013 at 9:16 PM, Steve Swinsburg
<steve.swinsburg at gmail.com>wrote:

> Looking through old versions of this, this code was originally in
> GradebookServiceHibernateImpl.java, but its been moved to
> BaseHibernateManager.java. It hasnt been wired up correctly and the setters
> arent even used. There is something very wrong with this bit of code...
>
>
> On Tue, Sep 10, 2013 at 8:44 PM, Steve Swinsburg <
> steve.swinsburg at gmail.com> wrote:
>
>> Updating this, the startup error was an old one and is a red herring. The
>> NPE remains though. Does anyone who worked on the external assignments work
>> know why this might be null when run from a quartz job? It just looks like
>> a normal bean injection.
>>
>> Thanks,
>> Steve
>>
>>
>> On Tue, Sep 10, 2013 at 7:42 AM, Steve Swinsburg <
>> steve.swinsburg at gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> I'm am having an issue with the gradebook service specifically to do
>>> with the externalAssessmentService. In the
>>> Gradebook getVisibleExternalAssignments.getVisibleExternalAssignments
>>> method, there is a call to
>>> the externalAssessmentService.getVisibleExternalAssignments method. The
>>> issue is, that from within the context of a quartz job, this is null, so
>>> throws a NPE.
>>>
>>> So does anyone that worked on this area know what the reason for this is?
>>>
>>> Here is the main part of the stacktrace:
>>>
>>> Caused by: java.lang.NullPointerException
>>> at
>>> org.sakaiproject.component.gradebook.BaseHibernateManager.getVisibleExternalAssignments(BaseHibernateManager.java:1421)
>>>  at
>>> org.sakaiproject.component.gradebook.BaseHibernateManager$34.doInHibernate(BaseHibernateManager.java:1474)
>>> at
>>> org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:406)
>>>  at
>>> org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:339)
>>> at
>>> org.sakaiproject.component.gradebook.BaseHibernateManager.finalizeNullGradeRecords(BaseHibernateManager.java:1469)
>>>  at
>>> org.sakaiproject.component.gradebook.GradebookServiceHibernateImpl.finalizeGrades(GradebookServiceHibernateImpl.java:2671)
>>>
>>> I note that in current trunk, on startup, I receive this bean error:
>>> Offending resource: file
>>> [/Users/steve/dev/sakai/tomcat/apache-tomcat-7.0.37-trunk/components/sakai-assignment-pack/WEB-INF/components.xml]
>>> Bean 'org.sakaiproject.assignment.impl.AssignmentGradeInfoProvider';
>>> nested exception is java.lang.NoClassDefFoundError:
>>> org/sakaiproject/service/gradebook/shared/ExternalAssignmentProviderCompat
>>>
>>> Is this a known error? Could it be the cause?
>>>
>>> thanks,
>>> Steve
>>>
>>>
>>>
>>>
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130910/7416dd53/attachment.html 


More information about the sakai-dev mailing list