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

SchedulerMigration removing a detached instance

    XMLWordPrintable

    Details

    • 19 status:
      Resolved
    • Test Plan:
      Hide

      Using a Sakai 19 instance that was upgraded from Sakai 11:

      1. log in as an admin user
      2. go to Administration Workspace
      3. go to Job Scheduler
      4. run the SchedulerMigration job
      Show
      Using a Sakai 19 instance that was upgraded from Sakai 11: log in as an admin user go to Administration Workspace go to Job Scheduler run the SchedulerMigration job

      Description

      Bring up a converted Sakai 19 instance (from Sakai 11) and then run the SchedulerMigration job in Job Scheduler

       

      11-May-2019 07:09:35.863 ERROR [QuartzScheduler_Worker-3] org.quartz.core.ErrorLogger.schedulerError Job (DEFAULT.SchedulerMigration threw an exception.
      org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.IllegalArgumentException: Removing a detached instance org.sakaiproject.scheduler.events.hibernate.DelayedInvocation#01702f76-36dc-44d0-b2dd-c33f92e216a8]
      at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
      Caused by: java.lang.IllegalArgumentException: Removing a detached instance org.sakaiproject.scheduler.events.hibernate.DelayedInvocation#01702f76-36dc-44d0-b2dd-c33f92e216a8
      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.sakaiproject.component.app.scheduler.DelayedInvocationDAO.remove(DelayedInvocationDAO.java:46)
      at org.sakaiproject.component.app.scheduler.DelayedInvocationDAO$$FastClassBySpringCGLIB$$472c6c81.invoke(<generated>)
      at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
      at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:736)
      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.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:671)
      at org.sakaiproject.component.app.scheduler.DelayedInvocationDAO$$EnhancerBySpringCGLIB$$8483e0f.remove(<generated>)
      at org.sakaiproject.component.app.scheduler.jobs.SchedulerMigrationJob.execute(SchedulerMigrationJob.java:71)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      ... 1 more

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code