Uploaded image for project: 'Spring Batch Admin'
  1. Spring Batch Admin
  2. BATCHADM-126

Adding Spring TaskScheduler causes proxy for job service which fails for missing method removeInactiveExecutions

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.2.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      I am trying to use Spring Scheduler to automate execution of some batch jobs. However, when I add <task:annotation-driven/> to my application context I receive a NoSuchMethodException on removeInactiveExecutions. I believe this is because the task scheduler is trying to create a proxy for the jobservice. However, the execution-context.xml file in spring-batch-admin-manager META-INF/spring/batch/bootstrap/manager has a scheduled job entry that is calling removeInactiveExecutions on the job service, which is not in the interface. If I remove the <task:annotation-driven/> and define my scheduled tasks in xml the issue disappears, but excludes the ability to use annotations to schedule tasks. I think the removeInactiveExecutions method needs to be added to the JobService interface.

        Attachments

          Activity

            People

            • Assignee:
              david_syer Dave Syer
              Reporter:
              tschuss Dan Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: