Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-36975 Hibernate bugs in Samigo
  3. SAK-37166

autoSubmitAssessments doesn't run because of ClassCastException

    Details

    • Type: Sub-task
    • Status: Verified
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 12.0
    • Fix Version/s: 12.0, 19.0
    • Labels:
      None
    • 12 status:
      Resolved
    • Test Plan:
      Hide
      1. To enable auto-submit you might need to grab the site id, log in as admin, go to the site , click Assessment Types. Click Default Assessment Type. Under Submissions accordion turn on Automatic Submissions (click both check boxes under this heading). You need to turn on Auto submit before creating the exam as instructor.
      2. Create assessment in Tests & Quizzes with one question, unlimited submissions, auto-submit enabled. 
      3.  Take assessment as student0011 once
      4. Start assessment again as student, and save but don't submit
      5. Retract assessment as the instructor (stop accepting submissions)
      6. Login as admin and run the Auto-Submit job in Job Scheduler
      7. Confirm that no in-progress submissions remain for the relevant assessment
      Show
      To enable auto-submit you might need to grab the site id, log in as admin, go to the site , click Assessment Types. Click Default Assessment Type. Under Submissions accordion turn on Automatic Submissions (click both check boxes under this heading). You need to turn on Auto submit before creating the exam as instructor. Create assessment in Tests & Quizzes with one question, unlimited submissions, auto-submit enabled.   Take assessment as student0011 once Start assessment again as student, and save but don't submit Retract assessment as the instructor (stop accepting submissions) Login as admin and run the Auto-Submit job in Job Scheduler Confirm that no in-progress submissions remain for the relevant assessment

      Description

      07-Sep-2017 11:12:42.205 ERROR [QuartzScheduler_Worker-3] org.sakaiproject.tool.assessment.services.GradingService.autoSubmitAssessments java.lang.Long cannot be cast to java.lang.String java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String at org.sakaiproject.tool.assessment.facade.PublishedAssessmentFacadeQueries.getToGradebookPublishedAssessmentSiteIdMap(PublishedAssessmentFacadeQueries.java:2563) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ncaidin Neal Caidin
                  Reporter:
                  ottenhoff Sam Ottenhoff
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code