Textbook causes null pointer in course sites under some circumstances

Description

We've seen a few of these in the production testing this morning. Does anyone have an idea of what might be causing this?

2010-08-31 05:16:56,865 [TP-Processor15] WARN org.sakaiproject.assignment.impl.BaseAssignmentService - org.sakaiproject.assignment.impl.BaseAssignmentService$BaseAssignment$1@64cacf75:getContentHandler:DefaultEntityHandler Long data parse problem nullnull
2010-08-31 05:16:57,581 [TP-Processor62] WARN org.sakaiproject.site.impl.BaseSiteService - Error encountered while notifying ContextObserver of Site Change
java.lang.NullPointerException
at org.sakaiproject.tbook.context.TextbookContext.contextUpdated(TextbookContext.java:157)
at org.sakaiproject.site.impl.BaseSiteService.enableRelated(BaseSiteService.java:1875)
at org.sakaiproject.site.impl.BaseSiteService.doSave(BaseSiteService.java:890)
at org.sakaiproject.site.impl.BaseSiteService.save(BaseSiteService.java:807)
at org.sakaiproject.site.cover.SiteService.save(SiteService.java:165)
at org.sakaiproject.site.tool.SiteAction.commitSite(SiteAction.java:8902)
at org.sakaiproject.site.tool.SiteAction.saveFeatures(SiteAction.java:8605)
at org.sakaiproject.site.tool.SiteAction.doFinish(SiteAction.java:4917)
at org.sakaiproject.site.tool.SiteAction.doAdd_site_option(SiteAction.java:10245)

Activity

Show:

Jim Eng September 3, 2010 at 8:17 AM

Assigning to Dave for verification of the fix.

Jim Eng September 3, 2010 at 8:16 AM

It appears as if this could occur when the textbook tool is added to a course site and the provider id has not been specified yet. The fix can be verified by creating a course site without specifying a provider id and then observing whether that results in this error. If a null pointer is logged, this is not fixed.

Jim Eng September 3, 2010 at 8:03 AM

Fixed in 0.9.x branch in rev 70100.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created September 2, 2010 at 6:45 AM
Updated January 9, 2013 at 3:44 PM
Resolved September 3, 2010 at 8:03 AM

Flag notifications