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

Importing Syllabus content from another site is not working

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 19.0, 20.0 [Tentative]
    • Fix Version/s: 19.0, 20.0 [Tentative]
    • Component/s: Syllabus
    • Labels:
      None
    • 19 status:
      Resolved
    • Test Plan:
      1. Add some Syllabus content on a site.
      2. Import that content to another site.
      3. Check the Syllabus tool on the destination site.

      Description

       

      The process of copying the Syllabus content from one site to another is not working at the moment. This is the related stack trace:

       

      org.sakaiproject.component.app.syllabus.SyllabusServiceImpl.transferCopyEntitiesRefMigrator id to load is required for loading
      java.lang.IllegalArgumentException: id to load is required for loading
      	at org.hibernate.event.spi.LoadEvent.<init>(LoadEvent.java:109)
      	at org.hibernate.event.spi.LoadEvent.<init>(LoadEvent.java:79)
      	at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.load(SessionImpl.java:2584)
      	at org.hibernate.internal.SessionImpl.get(SessionImpl.java:991)
      	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.orm.hibernate4.HibernateTemplate$CloseSuppressingInvocationHandler.invoke(HibernateTemplate.java:1244)
      	at com.sun.proxy.$Proxy101.get(Unknown Source)
      	at org.sakaiproject.component.app.syllabus.SyllabusManagerImpl.lambda$addSyllabusToSyllabusItem$7(SyllabusManagerImpl.java:386)
      	at org.springframework.orm.hibernate4.HibernateTemplate.doExecute(HibernateTemplate.java:341)
      	at org.springframework.orm.hibernate4.HibernateTemplate.execute(HibernateTemplate.java:296)
      	at org.sakaiproject.component.app.syllabus.SyllabusManagerImpl.addSyllabusToSyllabusItem(SyllabusManagerImpl.java:393)
      	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.$Proxy149.addSyllabusToSyllabusItem(Unknown Source)
      	at org.sakaiproject.component.app.syllabus.SyllabusServiceImpl.transferCopyEntitiesRefMigrator(SyllabusServiceImpl.java:1224)
      	at org.sakaiproject.component.app.syllabus.SyllabusServiceImpl.transferCopyEntitiesRefMigrator(SyllabusServiceImpl.java:1384)
      	at org.sakaiproject.sitemanage.impl.SiteManageServiceImpl$1.doInTransactionWithoutResult(SiteManageServiceImpl.java:436)
      	at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:34)
      	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
      	at org.sakaiproject.sitemanage.impl.SiteManageServiceImpl.transferCopyEntities(SiteManageServiceImpl.java:431)
      	at org.sakaiproject.sitemanage.impl.SiteManageServiceImpl.importToolsIntoSite(SiteManageServiceImpl.java:378)
      	at org.sakaiproject.sitemanage.impl.SiteManageServiceImpl.lambda$importToolsIntoSiteThread$0(SiteManageServiceImpl.java:131)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      25-Oct-2018 03:06:54.830 ERROR [pool-5-thread-1] org.sakaiproject.sitemanage.impl.SiteManageServiceImpl.transferCopyEntities Error encountered while asking EntityTransfer to transferCopyEntities from: mercury to: 00b289d4-ca79-4bc4-aed2-2913f5fb237d, Transaction rolled back because it has been marked as rollback-only
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bergarvi Bernardo Garcia Vila
                Reporter:
                bergarvi Bernardo Garcia Vila
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code