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

Exception editing question in a published assessment

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 12.0
    • Fix Version/s: 11.1, 12.0
    • Labels:
      None
    • 11 status:
      Resolved
    • Previous Issue Keys:
      SAM-2984

      Description

      It only affects Sakai Trunk (master) not Sakai 11.x

      1. Enter as instructor
      2. Create an assessment with one question
      3. Publish the assessment
      4. Edit the published assessment
      5. Make some changes in the question and save it.
      6. Check the log for the exception

      21-jul-2016 12:09:01.527 INFO [pool-2-thread-1] org.sakaiproject.authz.impl.DbAuthzGroupService.run RefreshAuthzGroupTask.run() refreshed 5 realms in 0.204 seconds, longest realm was /site/457ed39e-52f2-4d52-9473-dfc69fed2f91 at 0.139 seconds
      21-jul-2016 12:09:04.482 ERROR [http-nio-8080-exec-8] org.sakaiproject.tool.assessment.services.assessment.AssessmentService.getSection No row with the given identifier exists: [org.sakaiproject.tool.assessment.data.dao.assessment.SectionData#58]; nested exception is org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [org.sakaiproject.tool.assessment.data.dao.assessment.SectionData#58]
      org.springframework.orm.hibernate3.HibernateObjectRetrievalFailureException: No row with the given identifier exists: [org.sakaiproject.tool.assessment.data.dao.assessment.SectionData#58]; nested exception is org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [org.sakaiproject.tool.assessment.data.dao.assessment.SectionData#58]
              at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:692)
              at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:414)
              at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:416)
              at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:379)
              at org.springframework.orm.hibernate3.HibernateTemplate.load(HibernateTemplate.java:564)
              at org.springframework.orm.hibernate3.HibernateTemplate.load(HibernateTemplate.java:557)
              at org.sakaiproject.tool.assessment.facade.AssessmentFacadeQueries.getSection(AssessmentFacadeQueries.java:1038)
              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:497)
              at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
              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:281)
              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:207)
              at com.sun.proxy.$Proxy113.getSection(Unknown Source)
              at org.sakaiproject.tool.assessment.services.assessment.AssessmentService.getSection(AssessmentService.java:367)
              at org.sakaiproject.tool.assessment.ui.listener.author.ItemAddListener.saveItem(ItemAddListener.java:918)
              at org.sakaiproject.tool.assessment.ui.listener.author.ItemAddListener.processAction(ItemAddListener.java:303)
              at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
              at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:774)
              at javax.faces.component.UICommand.broadcast(UICommand.java:372)
              at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
              at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
              at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
              at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
      

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  raulsv Raúl Sánchez Vegas
                  Reporter:
                  alexgj Alejandro González Jiménez
                  Votes:
                  1 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration