[Building Sakai] T&Q -- multiple choice question always scores zero?

Karen Tsao ktsao at stanford.edu
Tue Jan 26 10:53:24 PST 2010


Hi Will,

Can you send me the XML? Are you saying you cannot import the assessment
because of the NullPointerException?

Also, can you show me the result of following queries:

Get the item_id of this multiple choice question of the core assessment:
SELECT * FROM sam_item_t WHERE itemid = :item_id
SELECT * FROM sam_itemtext_t WHERE itemid = :item_id
SELECT * FROM sam_answer_t WHERE itemid = :item_id

Get the published_item_id of this multiple choice question of the published
assessment:
SELECT * FROM sam_publisheditem_t WHERE itemid = :published_item_id
SELECT * FROM sam_publisheditemtext_t WHERE itemid = :published_item_id
SELECT * FROM sam_publishedanswer_t WHERE itemid = :published_item_id

Please let me know if you have problem of above queries.

Thanks,
Karen

On Tue, Jan 26, 2010 at 9:28 AM, will at serensoft.com <will at serensoft.com>wrote:

> Short version:
>
> One multiple-choice question on a quiz always scores zero. Even with
> the right answer chosen. :(
>
> We have a quiz on 2.6.x that's multiple-choice on each question, where
> each question gets X points. On one question, the correct answer is
> "C" (out of A, B, C, D, E) and it's always scored ZERO (0.0) whether
> option C is chosen by the student or not. So nobody is scoring 100% on
> this quiz even if they should.
>
> Ideas?
>
>
>
> Long version:
>
> I could send screen-snaps if that'd be helpful. What would cause this,
> and how to find it / fix it?
>
>
>
> Addendum:
>
> As a diagnostic aid, we tried to export/import this quiz but ran into
> trouble here as well. This is *not* the main issue, but here goes:
>
> - export as QTI v1.2 (in firefox)
>  - tried save-as, got html-wrapper with the XML inside
>  - tried view-source then save-as, same problem
>  - did view-source, select all, copy and paste into wordpad
>
> - upon import, we see an error box in the web page:
>  There was an error importing this assessment. Ensure that the file
> is correctly formatted IMS QTI. Error
> details:org.sakaiproject.tool.assessment.services.qti.QTIServiceException:
> java.lang.NullPointerException
>
> This may be due to cut-and-paste vs. utf-8 encoding.
>
> Snippets from the log -- are these pertinent?
> 2010-01-26 11:47:34,773  WARN http-80-Processor23
> com.sun.faces.renderkit.html_basic.HtmlBasicRenderer - Unable to find
> component with ID 'name' in view.
> 2010-01-26 11:47:34,773  WARN http-80-Processor23
> com.sun.faces.renderkit.html_basic.HtmlBasicRenderer - Unable to find
> component with ID 'description' in view.
> 2010-01-26 11:48:15,039  WARN http-80-Processor63
> org.sakaiproject.util.ResourceLoader - bundle
> 'org.sakaiproject.tool.assessment.bundle.SamLite'  missing key:
> 'correct'  from:
> org.sakaiproject.util.ResourceLoader.get(ResourceLoader.java:132)
> 2010-01-26 11:48:15,039  WARN http-80-Processor63
> org.sakaiproject.util.ResourceLoader - bundle
> 'org.sakaiproject.tool.assessment.bundle.SamLite'  missing key:
> 'correct'  from:
> org.sakaiproject.util.ResourceLoader.get(ResourceLoader.java:132)
> 2010-01-26 11:48:15,039  WARN http-80-Processor63
> org.sakaiproject.util.ResourceLoader - bundle
> 'org.sakaiproject.tool.assessment.bundle.SamLite'  missing key:
> 'not_correct'  from:
> org.sakaiproject.util.ResourceLoader.get(ResourceLoader.java:132)
> 2010-01-26 11:48:15,039  WARN http-80-Processor63
> org.sakaiproject.util.ResourceLoader - bundle
> 'org.sakaiproject.tool.assessment.bundle.SamLite'  missing key:
> 'not_correct'  from:
> org.sakaiproject.util.ResourceLoader.get(ResourceLoader.java:132)
> 2010-01-26 11:48:15,039  WARN http-80-Processor63
> org.sakaiproject.util.ResourceLoader - bundle
> 'org.sakaiproject.tool.assessment.bundle.SamLite'  missing key:
> 'not_correct'  from:
> org.sakaiproject.util.ResourceLoader.get(ResourceLoader.java:132)
> 2010-01-26 11:48:15,039  WARN http-80-Processor63
> org.sakaiproject.util.ResourceLoader - bundle
> 'org.sakaiproject.tool.assessment.bundle.SamLite'  missing key:
> 'not_correct'  from:
> org.sakaiproject.util.ResourceLoader.get(ResourceLoader.java:132)
> 2010-01-26 11:48:15,039  WARN http-80-Processor63
> org.sakaiproject.util.ResourceLoader - bundle
> 'org.sakaiproject.tool.assessment.bundle.SamLite'  missing key:
> 'not_correct'  from:
> org.sakaiproject.util.ResourceLoader.get(ResourceLoader.java:132)
> 2010-01-26 11:48:15,039  WARN http-80-Processor63
> org.sakaiproject.util.ResourceLoader - bundle
> 'org.sakaiproject.tool.assessment.bundle.SamLite'  missing key:
> 'not_correct'  from:
> org.sakaiproject.util.ResourceLoader.get(ResourceLoader.java:132)
> 2010-01-26 11:48:21,960  WARN http-80-Processor63
> com.sun.faces.renderkit.html_basic.HtmlBasicRenderer - Unable to find
> component with ID 'name' in view.
> 2010-01-26 11:48:21,960  WARN http-80-Processor63
> com.sun.faces.renderkit.html_basic.HtmlBasicRenderer - Unable to find
> component with ID 'description' in view.
> 2010-01-26 11:50:15,507  INFO http-80-Processor10
> org.sakaiproject.site.util.SiteSetupQuestionFileParser - exists():
> cannot find resource
>
> /group/setupQuestionsAdmin/config/questions.xmlorg.sakaiproject.exception.IdUnusedException
> id=/group/setupQuestionsAdmin/config/questions.xml
> 2010-01-26 12:01:20,210  INFO http-80-Processor10
>
> org.sakaiproject.tool.assessment.ui.listener.author.ExportAssessmentListener
> - ExportAssessmentListener assessmentId=96
> 2010-01-26 12:01:38,664  INFO http-80-Processor23
>
> org.sakaiproject.tool.assessment.ui.listener.author.ExportAssessmentListener
> - ExportAssessmentListener assessmentId=96
> 2010-01-26 12:01:39,617  INFO http-80-Processor23
> org.sakaiproject.tool.assessment.qti.util.XmlStringBuffer - UPDATING
> MORE THAN ONE ELEMENT
> 2010-01-26 12:01:39,679  INFO http-80-Processor23
> org.sakaiproject.tool.assessment.qti.util.XmlStringBuffer - UPDATING
> MORE THAN ONE ELEMENT
> 2010-01-26 12:01:39,726  INFO http-80-Processor23
> org.sakaiproject.tool.assessment.qti.util.XmlStringBuffer - UPDATING
> MORE THAN ONE ELEMENT
> 2010-01-26 12:01:39,789  INFO http-80-Processor23
> org.sakaiproject.tool.assessment.qti.util.XmlStringBuffer - UPDATING
> MORE THAN ONE ELEMENT
> 2010-01-26 12:01:39,835  INFO http-80-Processor23
> org.sakaiproject.tool.assessment.qti.util.XmlStringBuffer - UPDATING
> MORE THAN ONE ELEMENT
> 2010-01-26 12:01:39,882  INFO http-80-Processor23
> org.sakaiproject.tool.assessment.qti.util.XmlStringBuffer - UPDATING
> MORE THAN ONE ELEMENT
> 2010-01-26 12:01:39,929  INFO http-80-Processor23
> org.sakaiproject.tool.assessment.qti.util.XmlStringBuffer - UPDATING
> MORE THAN ONE ELEMENT
> 2010-01-26 12:01:39,992  INFO http-80-Processor23
> org.sakaiproject.tool.assessment.qti.util.XmlStringBuffer - UPDATING
> MORE THAN ONE ELEMENT
> 2010-01-26 12:01:40,039  INFO http-80-Processor23
> org.sakaiproject.tool.assessment.qti.util.XmlStringBuffer - UPDATING
> MORE THAN ONE ELEMENT
> 2010-01-26 12:01:40,148  INFO http-80-Processor23
> org.sakaiproject.tool.assessment.qti.util.XmlStringBuffer - UPDATING
> MORE THAN ONE ELEMENT
> 2010-01-26 12:02:31,585  WARN http-80-Processor36
> org.apache.tomcat.util.http.Parameters - Parameters: Invalid chunk
> ignored.
> 2010-01-26 12:02:32,445  INFO http-80-Processor36
> org.sakaiproject.tool.assessment.qti.util.XmlStringBuffer - UPDATING
> MORE THAN ONE ELEMENT
> 2010-01-26 12:02:32,507  INFO http-80-Processor36
> org.sakaiproject.tool.assessment.qti.util.XmlStringBuffer - UPDATING
> MORE THAN ONE ELEMENT
> 2010-01-26 12:02:32,554  INFO http-80-Processor36
> org.sakaiproject.tool.assessment.qti.util.XmlStringBuffer - UPDATING
> MORE THAN ONE ELEMENT
> 2010-01-26 12:02:32,617  INFO http-80-Processor36
> org.sakaiproject.tool.assessment.qti.util.XmlStringBuffer - UPDATING
> MORE THAN ONE ELEMENT
> 2010-01-26 12:02:32,664  INFO http-80-Processor36
> org.sakaiproject.tool.assessment.qti.util.XmlStringBuffer - UPDATING
> MORE THAN ONE ELEMENT
> 2010-01-26 12:02:32,710  INFO http-80-Processor36
> org.sakaiproject.tool.assessment.qti.util.XmlStringBuffer - UPDATING
> MORE THAN ONE ELEMENT
> 2010-01-26 12:02:32,773  INFO http-80-Processor36
> org.sakaiproject.tool.assessment.qti.util.XmlStringBuffer - UPDATING
> MORE THAN ONE ELEMENT
> 2010-01-26 12:02:32,820  INFO http-80-Processor36
> org.sakaiproject.tool.assessment.qti.util.XmlStringBuffer - UPDATING
> MORE THAN ONE ELEMENT
> 2010-01-26 12:02:32,898  INFO http-80-Processor36
> org.sakaiproject.tool.assessment.qti.util.XmlStringBuffer - UPDATING
> MORE THAN ONE ELEMENT
> 2010-01-26 12:02:32,992  INFO http-80-Processor36
> org.sakaiproject.tool.assessment.qti.util.XmlStringBuffer - UPDATING
> MORE THAN ONE ELEMENT
>
> --
> will trillich
> "The ancestor of every action is a thought" -- Ralph Waldo Emerson
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100126/6cdcabe1/attachment.html 


More information about the sakai-dev mailing list