VERIFIED SOLUTION i
X

Resolve unable to run an exposed job as a scheduled task with Spectrum

Issue

When running an exposed job as a scheduled task it fails with the following errors in the wrapper.log:
 
INFO | jvm 1 | 2014/07/03 15:50:00 | ERROR [JobRunner] Error running job. 
INFO | jvm 1 | 2014/07/03 15:50:00 | com.pb.spectrum.platform.server.config.api.task.TaskConfigurationException: ValidationResults [errors=[Invalid file protocol specified for stage 'Read from File'.]] 
INFO | jvm 1 | 2014/07/03 15:50:00 | at com.pb.spectrum.platform.server.runtime.core.task.job.JobRunner.validateJobOptions(JobRunner.java:79) ~[spectrum-server-runtime-core-9.0.jar:9.0] 
INFO | jvm 1 | 2014/07/03 15:50:00 | at com.pb.spectrum.platform.server.runtime.core.task.job.JobRunner.runTask(JobRunner.java:64) ~[spectrum-server-runtime-core-9.0.jar:9.0] 
INFO | jvm 1 | 2014/07/03 15:50:00 | at com.pb.spectrum.platform.server.runtime.core.task.impl.GeneralTaskRunner.run(GeneralTaskRunner.java:40) [spectrum-server-runtime-core-9.0.jar:9.0] 
INFO | jvm 1 | 2014/07/03 15:50:00 | at com.pb.spectrum.platform.server.runtime.core.scheduling.quartz.impl.QuartzJob.execute_aroundBody0(QuartzJob.java:55) [spectrum-server-runtime-core-9.0.jar:9.0] 
INFO | jvm 1 | 2014/07/03 15:50:00 | at com.pb.spectrum.platform.server.runtime.core.scheduling.quartz.impl.QuartzJob.execute_aroundBody1$advice(QuartzJob.java:35) [spectrum-server-runtime-core-9.0.jar:9.0] 
INFO | jvm 1 | 2014/07/03 15:50:00 | at com.pb.spectrum.platform.server.runtime.core.scheduling.quartz.impl.QuartzJob.execute(QuartzJob.java:1) [spectrum-server-runtime-core-9.0.jar:9.0] 
INFO | jvm 1 | 2014/07/03 15:50:00 | at org.quartz.core.JobRunShell.run(JobRunShell.java:213) [quartz-2.1.6.jar:na] 
INFO | jvm 1 | 2014/07/03 15:50:00 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_17] 
INFO | jvm 1 | 2014/07/03 15:50:00 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_17] 
INFO | jvm 1 | 2014/07/03 15:50:00 | at java.lang.Thread.run(Thread.java:722) [na:1.7.0_17]

Cause

The wrong protocol has been used when scheduling the task, this can be identified by the entry in the wrapper.log:

INFO | jvm 1 | 2014/07/07 14:56:00 | com.pb.spectrum.platform.server.config.api.task.TaskConfigurationException: ValidationResults [errors=[Invalid file protocol specified for stage 'Read from File'.]]
 
There are two protocols used when scheduling a task:
  • file - used when the job input data is located on your server
  • esclient - when the job input data is located on a client/ftp site

Resolution

UPDATED: September 13, 2017


To resolve check to see the correct protocol is being used:
  1. Open the Management Console
  2. Go to Modules > Execution > Scheduling
  3. Open the scheduled task then click Options
  4. Under Options there should be a Stage File locations section, highlight the Read from File stage and click Modify
  5. Under Location scroll all the way to the left to see "<protocol>:<file_path>" if the input is located on the server ensure the protocol is "file" or if the input is located on a client/ftp ensure your protocol is "esclient"

Environment Details

Product Affected: Spectrum™

Downloads

  • No Downloads