[Building Sakai] Gradebook (the original) problem
Glenn R. Golden
ggolden22 at mac.com
Wed Oct 14 19:51:19 PDT 2009
Does anyone find this at all familiar, from the good old gradebook,
circa 2.3?
We have a site with a few GB assignments with some scores. From the
instructor's view, it looks odd because the Course Grade has 0 average
and 0 points, and everyone has 0 and an "F". Folks have actual point
values and averages and grades for most of the assignments. Any
student trying to see the gradebook gets an internal error, here:
org.sakaiproject.tool.api.ToolException:
org.apache.jasper.JasperException
at
org
.sakaiproject.portal.charon.CharonPortal.forwardTool(CharonPortal.java:
1602)
caused by: javax.servlet.ServletException:
org.apache.jasper.JasperException
at
org
.apache
.catalina
.core
.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
252)
caused by: javax.faces.FacesException: org.apache.jasper.JasperException
at
org
.apache
.myfaces
.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:
234)
caused by: org.apache.jasper.JasperException
at
org
.apache
.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
caused by: java.lang.NullPointerException
at
org
.sakaiproject
.tool.gradebook.ui.StudentViewBean.init(StudentViewBean.java:216)
The code in StudentViewBean is:
// Display course grade if we've been instructed to.
if (gradebook.isCourseGradeDisplayed()) {
CourseGradeRecord gradeRecord =
getGradebookManager().getStudentCourseGradeRecord(gradebook,
getUserUid());
if (gradeRecord != null) {
courseGrade = gradeRecord.getDisplayGrade();
216>>> percent = gradeRecord.getSortGrade().doubleValue();
}
}
The NPE is from what must be a null return from
"gradeRecord.getSortGrade()".
I did note from the database view of the GB_GRADABLE_OBJECT_T table
that there is one assignment that has a "1" value for "REMOVED".
Does this sound familiar to anyone? I'm wondering what about the data
is messed up, and how to fix it.
(Ray, Josh, are you still out there?)
Thanks!
- Glenn
Glenn R. Golden
Chief Architect, Etudes, Inc.
ggolden at etudes.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20091014/13d0ddd0/attachment.html
More information about the sakai-dev
mailing list