<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Unhandled exception in Scheduling service in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Unhandled-exception-in-Scheduling-service/m-p/798522#M23839</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting error messages in the schedule servIce log, but can not find the job that is causing them. The messages are popping up once per hour telling me the job does not exist:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2022-02-25 03:05:00.105 INFO 6009 --- [ SASSched-4] org.quartz.core.JobRunShell : service [0437c62e08d2f0a4]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Job /jobExecution/jobRequests/b3ddd3c3-54a8-4801-8c26-b487eb901cca/jobs.55ad3b9c-a01f-4d9d-95e2-5e4b5e8446b1 threw a JobExecu&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;tionException:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;org.quartz.JobExecutionException: Scheduling Service job execution resulted in unhandled exception&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at com.sas.scheduling.quartz.JobWrapper.executeInternal(JobWrapper.java:321)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:75)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at org.quartz.core.JobRunShell.run(JobRunShell.java:202)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at org.springframework.cloud.sleuth.instrument.async.TraceRunnable.run(TraceRunnable.java:68)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at java.lang.Thread.run(Thread.java:750)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Caused by: org.springframework.web.client.HttpClientErrorException$NotFound: 404 : [{"errorCode":0,"message":"Job request not&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;found with id: b3ddd3c3-54a8-4801-8c26-b487eb901cca","details":["traceId: 6fed448ee36d6930","path: /jobExecution/jobRequests/b&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;3ddd3c3-54a8-4801-8c26-b487eb901cca/jobs"],"links":[],"version":2,"httpStatusCode":404}]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at org.springframework.web.client.HttpClientErrorException.create(HttpClientErrorException.java:113)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Job is not listed in Schedule service:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;./sas-admin job requests show --id b3ddd3c3-54a8-4801-8c26-b487eb901cca&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The following errors have occurred:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Job request not found with id: b3ddd3c3-54a8-4801-8c26-b487eb901cca&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please give me a clue on where to find and delete this mysterious job?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Mattias&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error message in schedule service:&lt;/P&gt;&lt;P&gt;2022-02-25 03:05:00.105 INFO 6009 --- [ SASSched-4] org.quartz.core.JobRunShell : service [0437c62e08d2f0a4]&lt;BR /&gt;Job /jobExecution/jobRequests/b3ddd3c3-54a8-4801-8c26-b487eb901cca/jobs.55ad3b9c-a01f-4d9d-95e2-5e4b5e8446b1 threw a JobExecu&lt;BR /&gt;tionException:&lt;/P&gt;&lt;P&gt;org.quartz.JobExecutionException: Scheduling Service job execution resulted in unhandled exception&lt;BR /&gt;at com.sas.scheduling.quartz.JobWrapper.executeInternal(JobWrapper.java:321)&lt;BR /&gt;at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:75)&lt;BR /&gt;at org.quartz.core.JobRunShell.run(JobRunShell.java:202)&lt;BR /&gt;at org.springframework.cloud.sleuth.instrument.async.TraceRunnable.run(TraceRunnable.java:68)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:750)&lt;BR /&gt;Caused by: org.springframework.web.client.HttpClientErrorException$NotFound: 404 : [{"errorCode":0,"message":"Job request not&lt;BR /&gt;found with id: b3ddd3c3-54a8-4801-8c26-b487eb901cca","details":["traceId: 6fed448ee36d6930","path: /jobExecution/jobRequests/b&lt;BR /&gt;3ddd3c3-54a8-4801-8c26-b487eb901cca/jobs"],"links":[],"version":2,"httpStatusCode":404}]&lt;BR /&gt;at org.springframework.web.client.HttpClientErrorException.create(HttpClientErrorException.java:113)&lt;BR /&gt;at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:184)&lt;BR /&gt;at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:125)&lt;BR /&gt;at org.springframework.web.client.ResponseErrorHandler.handleError(ResponseErrorHandler.java:63)&lt;BR /&gt;at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:780)&lt;BR /&gt;at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:738)&lt;BR /&gt;at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:672)&lt;BR /&gt;at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:581)&lt;BR /&gt;at com.sas.scheduling.quartz.JobWrapper.lambda$executeInternal$1(JobWrapper.java:293)&lt;BR /&gt;at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)&lt;BR /&gt;at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1596)&lt;BR /&gt;at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)&lt;BR /&gt;at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)&lt;BR /&gt;at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)&lt;BR /&gt;at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Feb 2022 08:55:54 GMT</pubDate>
    <dc:creator>viswmmo</dc:creator>
    <dc:date>2022-02-25T08:55:54Z</dc:date>
    <item>
      <title>Unhandled exception in Scheduling service</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Unhandled-exception-in-Scheduling-service/m-p/798522#M23839</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting error messages in the schedule servIce log, but can not find the job that is causing them. The messages are popping up once per hour telling me the job does not exist:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2022-02-25 03:05:00.105 INFO 6009 --- [ SASSched-4] org.quartz.core.JobRunShell : service [0437c62e08d2f0a4]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Job /jobExecution/jobRequests/b3ddd3c3-54a8-4801-8c26-b487eb901cca/jobs.55ad3b9c-a01f-4d9d-95e2-5e4b5e8446b1 threw a JobExecu&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;tionException:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;org.quartz.JobExecutionException: Scheduling Service job execution resulted in unhandled exception&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at com.sas.scheduling.quartz.JobWrapper.executeInternal(JobWrapper.java:321)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:75)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at org.quartz.core.JobRunShell.run(JobRunShell.java:202)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at org.springframework.cloud.sleuth.instrument.async.TraceRunnable.run(TraceRunnable.java:68)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at java.lang.Thread.run(Thread.java:750)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Caused by: org.springframework.web.client.HttpClientErrorException$NotFound: 404 : [{"errorCode":0,"message":"Job request not&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;found with id: b3ddd3c3-54a8-4801-8c26-b487eb901cca","details":["traceId: 6fed448ee36d6930","path: /jobExecution/jobRequests/b&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;3ddd3c3-54a8-4801-8c26-b487eb901cca/jobs"],"links":[],"version":2,"httpStatusCode":404}]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at org.springframework.web.client.HttpClientErrorException.create(HttpClientErrorException.java:113)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Job is not listed in Schedule service:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;./sas-admin job requests show --id b3ddd3c3-54a8-4801-8c26-b487eb901cca&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The following errors have occurred:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Job request not found with id: b3ddd3c3-54a8-4801-8c26-b487eb901cca&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please give me a clue on where to find and delete this mysterious job?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Mattias&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error message in schedule service:&lt;/P&gt;&lt;P&gt;2022-02-25 03:05:00.105 INFO 6009 --- [ SASSched-4] org.quartz.core.JobRunShell : service [0437c62e08d2f0a4]&lt;BR /&gt;Job /jobExecution/jobRequests/b3ddd3c3-54a8-4801-8c26-b487eb901cca/jobs.55ad3b9c-a01f-4d9d-95e2-5e4b5e8446b1 threw a JobExecu&lt;BR /&gt;tionException:&lt;/P&gt;&lt;P&gt;org.quartz.JobExecutionException: Scheduling Service job execution resulted in unhandled exception&lt;BR /&gt;at com.sas.scheduling.quartz.JobWrapper.executeInternal(JobWrapper.java:321)&lt;BR /&gt;at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:75)&lt;BR /&gt;at org.quartz.core.JobRunShell.run(JobRunShell.java:202)&lt;BR /&gt;at org.springframework.cloud.sleuth.instrument.async.TraceRunnable.run(TraceRunnable.java:68)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:750)&lt;BR /&gt;Caused by: org.springframework.web.client.HttpClientErrorException$NotFound: 404 : [{"errorCode":0,"message":"Job request not&lt;BR /&gt;found with id: b3ddd3c3-54a8-4801-8c26-b487eb901cca","details":["traceId: 6fed448ee36d6930","path: /jobExecution/jobRequests/b&lt;BR /&gt;3ddd3c3-54a8-4801-8c26-b487eb901cca/jobs"],"links":[],"version":2,"httpStatusCode":404}]&lt;BR /&gt;at org.springframework.web.client.HttpClientErrorException.create(HttpClientErrorException.java:113)&lt;BR /&gt;at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:184)&lt;BR /&gt;at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:125)&lt;BR /&gt;at org.springframework.web.client.ResponseErrorHandler.handleError(ResponseErrorHandler.java:63)&lt;BR /&gt;at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:780)&lt;BR /&gt;at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:738)&lt;BR /&gt;at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:672)&lt;BR /&gt;at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:581)&lt;BR /&gt;at com.sas.scheduling.quartz.JobWrapper.lambda$executeInternal$1(JobWrapper.java:293)&lt;BR /&gt;at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)&lt;BR /&gt;at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1596)&lt;BR /&gt;at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)&lt;BR /&gt;at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)&lt;BR /&gt;at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)&lt;BR /&gt;at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 08:55:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Unhandled-exception-in-Scheduling-service/m-p/798522#M23839</guid>
      <dc:creator>viswmmo</dc:creator>
      <dc:date>2022-02-25T08:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unhandled exception in Scheduling service</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Unhandled-exception-in-Scheduling-service/m-p/799127#M23852</link>
      <description>&lt;P&gt;It looks like you have a job scheduled that no longer exists, so when you do the sas-admin job requests show command it, like scheduler, can't find the job.&lt;BR /&gt;You would instead need to query scheduler, i.e. http(s)://webhost:port/scheduler/jobs to find the schedule job with that associated jobRequest. We can use a filter to narrow it down, for example:&lt;/P&gt;
&lt;P&gt;http(s)://webhost:port/scheduler/jobs?filter=contains(request.uri,"jobRequests/b3ddd3c3-54a8-4801-8c26-b487eb901cca")&lt;/P&gt;
&lt;P&gt;This should return any scheduler jobs that have that associated request. The response should also contain a "DELETE" link you can use to the delete the schedule. You could use curl and jq to call and read these.&lt;/P&gt;
&lt;PRE&gt;# Define which profile you are using for sas-admin
profile=viya
# Login with it
sas-admin --profile $profile auth login
# Pull the token into a variable
token=$(jq ."${profile}" ~/.sas/credentials.json | jq -r '."access-token"')
# Pull the base URL into a variable
baseurl=$(jq .${profile} ~/.sas/config.json | jq -r '."sas-endpoint"')
# Call the /scheduler/jobs URI to find the problem job, returning the name(s)
curl -s "${baseurl}/scheduler/jobs?filter=contains(request.uri,'jobRequests/b3ddd3c3-54a8-4801-8c26-b487eb901cca')" -H "Authorization: Bearer $token" | jq -r '.items[].name'
# Get the URIs to delete it/them:
curl -s "${baseurl}/scheduler/jobs?filter=contains(request.uri,'jobRequests/b3ddd3c3-54a8-4801-8c26-b487eb901cca')" -H "Authorization: Bearer $token" | jq -r '.items[].links[] | select( .rel == "delete")|.href'
&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;You could then use a curl -X DELETE ${baseurl}/{{ URI }} -H "Authorization: Bearer $token" to delete the schedule(s).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 14:28:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Unhandled-exception-in-Scheduling-service/m-p/799127#M23852</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2022-02-28T14:28:17Z</dc:date>
    </item>
  </channel>
</rss>

