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

Error on log when adding exceptions. UI is wrong

    XMLWordPrintable

    Details

    • 19 status:
      Resolved
    • 12 status:
      Please Merge
    • Test Plan:
      Hide
      1. Go to assessment tool
      2. Click add
      3. Fill Assessment Title
      4. Click Create
      5. Add Question
      6. Select "Multiple choice"
      7. Fill Question Text and Answers
      8. Click Save
      9. Click Settings
      10. Click Availability and Submissions
      11. Assessment released to: Selected Group(s). Select a group "Discussion 1 SMLP101"
      12. Only 1 submissions allowed
      13. It is due: 45 minutes after due date (for example)
      14. has time limit - 5 minutes
      15. Click Save
      16. Click Settings
      17. Click Exceptions to Time Limit and Delivery Date
      18. Exception for Group: Select a group "Discussion 1 SMLP101"
      19. Click Add an Exception
      20. Exception for Group: Select a group "Discussion 1 SMLP101" (DON'T click Add an Excecption)
      21. Click Save Settings and Publish
      22. Click Publish
      23. Enter as a student and send the assessment
      26-Sep-2019 12:47:57.534 ERROR [http-nio-20113-exec-21] org.sakaiproject.tool.assessment.facade.ExtendedTimeQueries.getPubAndX Failed to get extended time for pub: 21 and user/group: 18d09478-513e-49e2-82ec-6b6d4e3e57ea26-Sep-2019 12:47:57.534 ERROR [http-nio-20113-exec-21] org.sakaiproject.tool.assessment.facade.ExtendedTimeQueries.getPubAndX Failed to get extended time for pub: 21 and user/group: 18d09478-513e-49e2-82ec-6b6d4e3e57eaorg.springframework.dao.IncorrectResultSizeDataAccessException: query did not return a unique result: 2; nested exception is org.hibernate.NonUniqueResultException: query did not return a unique result: 2 at org.springframework.orm.hibernate4.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:178) at org.springframework.orm.hibernate4.HibernateTemplate.doExecute(HibernateTemplate.java:344) at org.springframework.orm.hibernate4.HibernateTemplate.execute(HibernateTemplate.java:296) at org.sakaiproject.tool.assessment.facade.ExtendedTimeQueries.getPubAndX(ExtendedTimeQueries.java:153) at org.sakaiproject.tool.assessment.facade.ExtendedTimeQueries.getEntryForPubAndGroup(ExtendedTimeQueries.java:103) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:283) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213) at com.sun.proxy.$Proxy156.getEntryForPubAndGroup(Unknown Source) at org.sakaiproject.tool.assessment.facade.ExtendedTimeFacade.getEntryForPubAndGroup(ExtendedTimeFacade.java:57) at org.sakaiproject.tool.assessment.util.ExtendedTimeDeliveryService.<init>(ExtendedTimeDeliveryService.java:89) at org.sakaiproject.tool.assessment.util.ExtendedTimeDeliveryService.<init>(ExtendedTimeDeliveryService.java:57) 

       

      Show
      Go to assessment tool Click add Fill Assessment Title Click Create Add Question Select "Multiple choice" Fill Question Text and Answers Click Save Click Settings Click Availability and Submissions Assessment released to: Selected Group(s). Select a group "Discussion 1 SMLP101" Only 1 submissions allowed It is due: 45 minutes after due date (for example) has time limit - 5 minutes Click Save Click Settings Click Exceptions to Time Limit and Delivery Date Exception for Group: Select a group "Discussion 1 SMLP101" Click Add an Exception Exception for Group: Select a group "Discussion 1 SMLP101" (DON'T click Add an Excecption) Click Save Settings and Publish Click Publish Enter as a student and send the assessment 26-Sep-2019 12:47:57.534 ERROR [http-nio-20113-exec-21] org.sakaiproject.tool.assessment.facade.ExtendedTimeQueries.getPubAndX Failed to get extended time for pub: 21 and user/group: 18d09478-513e-49e2-82ec-6b6d4e3e57ea26-Sep-2019 12:47:57.534 ERROR [http-nio-20113-exec-21] org.sakaiproject.tool.assessment.facade.ExtendedTimeQueries.getPubAndX Failed to get extended time for pub: 21 and user/group: 18d09478-513e-49e2-82ec-6b6d4e3e57eaorg.springframework.dao.IncorrectResultSizeDataAccessException: query did not return a unique result: 2; nested exception is org.hibernate.NonUniqueResultException: query did not return a unique result: 2 at org.springframework.orm.hibernate4.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:178) at org.springframework.orm.hibernate4.HibernateTemplate.doExecute(HibernateTemplate.java:344) at org.springframework.orm.hibernate4.HibernateTemplate.execute(HibernateTemplate.java:296) at org.sakaiproject.tool.assessment.facade.ExtendedTimeQueries.getPubAndX(ExtendedTimeQueries.java:153) at org.sakaiproject.tool.assessment.facade.ExtendedTimeQueries.getEntryForPubAndGroup(ExtendedTimeQueries.java:103) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:283) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213) at com.sun.proxy.$Proxy156.getEntryForPubAndGroup(Unknown Source) at org.sakaiproject.tool.assessment.facade.ExtendedTimeFacade.getEntryForPubAndGroup(ExtendedTimeFacade.java:57) at org.sakaiproject.tool.assessment.util.ExtendedTimeDeliveryService.<init>(ExtendedTimeDeliveryService.java:89) at org.sakaiproject.tool.assessment.util.ExtendedTimeDeliveryService.<init>(ExtendedTimeDeliveryService.java:57)  

      Description

      Wrong configuration on published assessment.

      Error on log

      See testing plan

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  jesusmmp Jesus Maria Mendez
                  Reporter:
                  jesusmmp Jesus Maria Mendez
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration