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

Cannot delete item in Lessons

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Verified
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 19.0
    • Fix Version/s: 19.0
    • Component/s: Lessons
    • Labels:
    • Test Plan:
      Hide

      Please add a Test Plan here.

      Show
      Please add a Test Plan here.

      Description

      Cannot delete any items created in lessons. The stacktrace is a JPA error. Likely related to the changes in rubrics.

      02-Jul-2018 14:52:25.220 INFO [http-nio-20013-exec-37] org.springframework.aop.framework.CglibAopProxy.doValidateClass Method [java.lang.Object java.util.ArrayList.elementData(int)] is package-visible across different ClassLoaders and cannot get proxied via CGLIB: Declare this method as public or protected if you need to support invocations through the proxy.
      02-Jul-2018 14:52:34.250 WARN [http-nio-20013-exec-27] PonderUtilCore.handle Error invoking action
      Target exception of class java.lang.IllegalArgumentException
      Successive lines until stack trace show causes progressing to exception site:
      Error invoking action
      --> Error invoking method deleteItem in bean at path simplePageBean.deleteItem
      --> Removing a detached instance org.sakaiproject.lessonbuildertool.SimplePageItemImpl#2
      java.lang.IllegalArgumentException: Removing a detached instance org.sakaiproject.lessonbuildertool.SimplePageItemImpl#2
      	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.lessonbuildertool.model.SimplePageToolDaoImpl.deleteItem(SimplePageToolDaoImpl.java:796)
      	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.$Proxy112.deleteItem(Unknown Source)
      	at org.sakaiproject.lessonbuildertool.tool.beans.SimplePageBean.deleteItem(SimplePageBean.java:1984)
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ern Earle R Nietzel
                  Reporter:
                  jonespm Matthew Jones
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code