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

Detached instance when trying to delete ExtendedTime entry

    Details

    • 19 status:
      Resolved
    • Test Plan:
      Hide

      Please add a Test Plan here.

      Show
      Please add a Test Plan here.

      Description

      Tested on master only:

      1. Create an assessment with one question and publish it
      2. Edit Settings and add an Exception for a group or user and save it
      3. Re-edit the settings, Edit the exception, don't edit any fields, Save

      04-Dec-2018 10:07:26.129 WARNING [http-nio-9080-exec-3] com.sun.faces.lifecycle.InvokeApplicationPhase.execute Removing a detached instance org.sakaiproject.tool.assessment.data.dao.assessment.ExtendedTime#1                                          [153/1984]
       java.lang.IllegalArgumentException: Removing a detached instance org.sakaiproject.tool.assessment.data.dao.assessment.ExtendedTime#1
              at org.hibernate.jpa.event.internal.core.JpaDeleteEventListener.performDetachedEntityDeletionCheck(JpaDeleteEventListener.java:69)
              at org.hibernate.event.internal.DefaultDeleteEventListener.onDelete(DefaultDeleteEventListener.java:106)
              at org.hibernate.event.internal.DefaultDeleteEventListener.onDelete(DefaultDeleteEventListener.java:73)
              at org.hibernate.internal.SessionImpl.fireDelete(SessionImpl.java:956)
              at org.hibernate.internal.SessionImpl.delete(SessionImpl.java:896)
              at org.springframework.orm.hibernate4.HibernateTemplate$24.doInHibernate(HibernateTemplate.java:794)
              at org.springframework.orm.hibernate4.HibernateTemplate.doExecute(HibernateTemplate.java:341)
              at org.springframework.orm.hibernate4.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:309)
              at org.springframework.orm.hibernate4.HibernateTemplate.delete(HibernateTemplate.java:787)
              at org.springframework.orm.hibernate4.HibernateTemplate.delete(HibernateTemplate.java:782)
              at org.sakaiproject.tool.assessment.facade.ExtendedTimeQueries.deleteEntry(ExtendedTimeQueries.java:135)
              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:282)
              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.$Proxy209.deleteEntry(Unknown Source)
              at org.sakaiproject.tool.assessment.facade.ExtendedTimeFacade.saveExtendedTimeEntriesHelper(ExtendedTimeFacade.java:140)
              at org.sakaiproject.tool.assessment.facade.ExtendedTimeFacade.saveEntriesPub(ExtendedTimeFacade.java:61)
              at org.sakaiproject.tool.assessment.ui.listener.author.SavePublishedSettingsListener.setPublishedSettings(SavePublishedSettingsListener.java:759)
              at org.sakaiproject.tool.assessment.ui.listener.author.SavePublishedSettingsListener.processAction(SavePublishedSettingsListener.java:133)
              at javax.faces.event.ActionEvent.processListener(ActionEvent.java:96)
              at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:839)
              at javax.faces.component.UICommand.broadcast(UICommand.java:315)
              at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:870)
              at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1418)
              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:201)
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:670)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
              at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
              at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:426)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
              at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:728)
              at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:470)
              at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:395)
              at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:316)
              at org.sakaiproject.jsf.util.SamigoJsfTool.dispatch(SamigoJsfTool.java:360)
              at org.sakaiproject.jsf2.util.JsfTool.doPost(JsfTool.java:250)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
              at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:728)
              at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:470)
              at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:356)
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ottenhoff Sam Ottenhoff
                  Reporter:
                  ottenhoff Sam Ottenhoff
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code