Test Center throws NPE with modified mneme 2.1.18 branch

Description

Select existing assessment (created with mneme 2.1.9), and select question. The following crash is generated with certain assessments.

caused by: java.lang.NullPointerException
at org.etudes.mneme.tool.QuestionEditView.get(QuestionEditView.java:179)
at org.etudes.ambrosia.util.AmbrosiaServlet.doGet(AmbrosiaServlet.java:189)

Activity

Beth Kirschner September 9, 2013 at 9:23 AM

verified by bkirschn

Patrick Haggood August 20, 2013 at 12:19 PM

Changed all Spring-based declarations for using serverConfigurationService to equivalent ComponentManager declarations

Patrick Haggood August 14, 2013 at 11:44 AM

All Spring declarations have been changed to ComponentManager declarations, all references now point to ComponentManager-based getter, all Spring injection definitions have been removed. Have tested on test created in 2.1.9 for true/false, multiple choice and fill-in-the-blank questions; no NPE's thrown while accessing these questions.

Patrick Haggood August 13, 2013 at 10:36 AM

The docs suggest that using ComponentManager over Spring should be avoided: https://confluence.sakaiproject.org/display/BOOT/Using+the+Sakai+ComponentManager+to+access+Sakai+Services

Beth Kirschner August 5, 2013 at 10:17 AM

Changing from using Spring injection to using the ComponentManager to locate the ServerConfigiurationService class fixes this problem. We should update all the UM modified code that injects ServerConfigurationService and test thoroughly.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created July 25, 2013 at 12:33 PM
Updated September 9, 2013 at 9:23 AM
Resolved August 20, 2013 at 12:19 PM