Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-5355

The scripts triggered with {{scheduler::schedule}} command fail to execute

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.0.M1
    • Component/s: karaf
    • Labels:
      None

      Description

      See the following exception

      2017-09-08 07:46:49,818 | WARN  | null_Worker-1    | ScriptJob                        | 35 - org.apache.karaf.scheduler.core - 4.2.0.SNAPSHOT | Error executing script
      java.lang.IllegalStateException: A job is already in foreground
      	at org.apache.felix.gogo.runtime.CommandSessionImpl$JobImpl.foreground(CommandSessionImpl.java:643) [28:org.apache.karaf.shell.core:4.2.0.SNAPSHOT]
      	at org.apache.felix.gogo.runtime.CommandSessionImpl$JobImpl.start(CommandSessionImpl.java:760) [28:org.apache.karaf.shell.core:4.2.0.SNAPSHOT]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:295) [28:org.apache.karaf.shell.core:4.2.0.SNAPSHOT]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:168) [28:org.apache.karaf.shell.core:4.2.0.SNAPSHOT]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:148) [28:org.apache.karaf.shell.core:4.2.0.SNAPSHOT]
      	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand$VersatileFunction.execute(SecuredCommand.java:107) [28:org.apache.karaf.shell.core:4.2.0.SNAPSHOT]
      	at org.apache.karaf.scheduler.command.support.ScriptJob.execute(ScriptJob.java:43) [35:org.apache.karaf.scheduler.core:4.2.0.SNAPSHOT]
      	at org.apache.karaf.scheduler.core.QuartzJobExecutor.execute(QuartzJobExecutor.java:52) [35:org.apache.karaf.scheduler.core:4.2.0.SNAPSHOT]
      	at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [35:org.apache.karaf.scheduler.core:4.2.0.SNAPSHOT]
      	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [35:org.apache.karaf.scheduler.core:4.2.0.SNAPSHOT
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gnt Guillaume Nodet
                Reporter:
                gnt Guillaume Nodet
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: