After upgrading from a previous version to TIBCO Spotfire Server 10.10.0 or higher, you may encounter issues related to Scheduled Updates and Automation Services jobs.
Examples of issues:
- Attempting to reload a rule in the Scheduling & Routing > Overview tab, the reload fails with an "Internal Server Error"
- Looking at past jobs in the Scheduling and Routing > Activity tab, you don't see any jobs from before the upgrade and may also get an "Internal Server Error"
In the server logs, you'll see errors like the following:
ERROR 2020-11-27T11:04:52,641+0100 [spot@tibco.com, #C-1096, #342924] spotfire.rs.RestExceptionHandler: Intercepted exception in request to /rest/jobs/listAllInstancesDetail
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.result.ResultMapException: Error attempting to get column 'STATUS' from result set. Cause: java.lang.IllegalArgumentException: Cannot convert 7 to JobTaskStatus by ordinal value.
[...]This issue can occur if, before the old Spotfire servers were shut down for the upgrade, there were Scheduled Updates or Automation Services jobs still in the job queue that had not yet been executed. It's the existence of these items in the Spotfire database (to be exact, entries in the JOB_TASKS table where the JobTaskStatus is 7) that causes the issue.