Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-36482

Unexpected Error with Partial Credit with Multiple Choice

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Verified
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.9.0
    • Fix Version/s: 2.9.0
    • Labels:
      None
    • Environment:
      TRUNK - Sakai 2.9.0-rc01 (Kernel 1.3.0-rc01)- Server qa29 - qa29.longsight.com ; Mac OS X , 10.8.2; Firefox 15.0.1
    • Previous Issue Keys:
      SAK-22705, SAM-1828

      Description

      To reproduce:

      1) Add a multiple choice question
      2) Set to partial credit
      3) Set one answer to correct, which should show as 100% to the right of the answer.
      4) Enter a percentage, let's say 5 percent, against another answer as the partial credit value.
      5) Click Save.

      Here is the Stake trace I get:

      org.sakaiproject.portal.api.PortalHandlerException: org.sakaiproject.tool.api.ToolException: org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error getting property 'answerKey' from bean of type org.sakaiproject.tool.assessment.data.dao.assessment.ItemData: java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key correct
      at org.sakaiproject.portal.charon.handlers.ToolHandler.doPost(ToolHandler.java:73)
      caused by: org.sakaiproject.tool.api.ToolException: org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error getting property 'answerKey' from bean of type org.sakaiproject.tool.assessment.data.dao.assessment.ItemData: java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key correct
      at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1470)
      caused by: org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error getting property 'answerKey' from bean of type org.sakaiproject.tool.assessment.data.dao.assessment.ItemData: java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key correct
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)
      caused by: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error getting property 'answerKey' from bean of type org.sakaiproject.tool.assessment.data.dao.assessment.ItemData: java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key correct
      at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:840)
      caused by: javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error getting property 'answerKey' from bean of type org.sakaiproject.tool.assessment.data.dao.assessment.ItemData: java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key correct
      at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
      caused by: javax.faces.el.EvaluationException: Error getting property 'answerKey' from bean of type org.sakaiproject.tool.assessment.data.dao.assessment.ItemData: java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key correct
      at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:187)
      caused by: java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key correct
      at java.util.ResourceBundle.getObject(ResourceBundle.java:374)
      at java.util.ResourceBundle.getString(ResourceBundle.java:334)
      at org.sakaiproject.tool.assessment.data.dao.assessment.ItemData.getAnswerKey(ItemData.java:692)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sun.faces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:99)
      at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:187)
      at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:171)
      at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
      at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
      at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
      at javax.faces.component.UIOutput.getValue(UIOutput.java:167)
      at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:102)
      at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:221)
      at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:199)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:740)
      at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:473)
      at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:150)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721)
      at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:465)
      at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:150)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721)
      at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:465)
      at com.sun.faces.renderkit.html_basic.TableRenderer.encodeChildren(TableRenderer.java:277)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721)
      at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:465)
      at com.sun.faces.renderkit.html_basic.TableRenderer.encodeChildren(TableRenderer.java:277)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721)
      at javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:629)
      at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:566)
      at com.sun.faces.taglib.html_basic.DataTableTag.doEndTag(DataTableTag.java:491)
      at org.apache.jsp.jsf.author.editAssessment_jsp._jspx_meth_h_005fdataTable_005f0(editAssessment_jsp.java:3838)
      at org.apache.jsp.jsf.author.editAssessment_jsp._jspx_meth_h_005fform_005f0(editAssessment_jsp.java:1180)
      at org.apache.jsp.jsf.author.editAssessment_jsp._jspService(editAssessment_jsp.java:949)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:634)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
      at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
      at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
      at org.sakaiproject.jsf.app.SakaiViewHandler.renderView(SakaiViewHandler.java:159)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:634)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
      at org.sakaiproject.jsf.util.SamigoJsfTool.dispatch(SamigoJsfTool.java:301)
      at org.sakaiproject.jsf.util.JsfTool.doPost(JsfTool.java:256)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:369)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
      at org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:511)
      at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1470)
      at org.sakaiproject.portal.charon.handlers.ToolHandler.doTool(ToolHandler.java:213)
      at org.sakaiproject.portal.charon.handlers.ToolHandler.doGet(ToolHandler.java:96)
      at org.sakaiproject.portal.charon.handlers.ToolHandler.doPost(ToolHandler.java:73)
      at org.sakaiproject.portal.charon.SkinnableCharonPortal.doPost(SkinnableCharonPortal.java:1260)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:695)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:680)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
      at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:1770)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)

      user: e14f2b7d-9eb0-44d2-af78-8811eb85d914

      usage-session: 9613f285-71b6-490e-9122-412a4f9668b1

      time: Oct 1, 2012 10:32:35

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  Unassigned Unassigned
                  Reporter:
                  ncaidin Neal Caidin
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration