Uploaded image for project: 'JOC - JobScheduler Operations Center'
  1. JOC - JobScheduler Operations Center
  2. JOC-1430

Update of jobs from Job Templates broken

    XMLWordPrintable

Details

    Description

      Current Situation

      • When upgrading to release 2.5.0 then the functionality to update jobs in any workflows from a central Job Template is broken and raises the error:
        2022-11-22T12:58:02,145 ERROR qtp55909012-15146824 c.s.j.c.JOCDefaultResponse                   - java.lang.ClassCastException: class com.sos.inventory.model.instruction.NamedJob cannot be cast to class com.sos.inventory.model.instruction.ConsumeNotices (com.sos.inventory.model.instruction.NamedJob and com.sos.inventory.model.instruction.ConsumeNotices are in unnamed module of loader org.eclipse.jetty.webapp.WebAppClassLoader @6b58b9e9)
        java.lang.ClassCastException: class com.sos.inventory.model.instruction.NamedJob cannot be cast to class com.sos.inventory.model.instruction.ConsumeNotices (com.sos.inventory.model.instruction.NamedJob and com.sos.inventory.model.instruction.ConsumeNotices are in unnamed module of loader org.eclipse.jetty.webapp.WebAppClassLoader @6b58b9e9)
        

      Desired Behavior

      • Updates of jobs from a central Job Template should work.

      Workaround
      This is more the sort of an ugly workaround:

      • export the folder(s) that include workflows with jobs that should be updated
      • remove the respective folder(s)
      • import the folder(s)
      • update jobs from the Job Template

      Patch

      Attachments

        Issue Links

          Activity

            People

              oh Oliver Haufe
              ap Andreas Püschel
              Pramokshi Narawariya Pramokshi Narawariya
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: