iExecBlockchainComputing/iexec-worker

Unexpected error occurred in scheduled task

Closed this issue · 1 comments

2020-01-17 13:30:16.445 ERROR 6 --- [taskScheduler-2] o.s.s.s.TaskUtils$LoggingErrorHandler : Unexpected error occurred in scheduled task.

java.lang.IllegalArgumentException: No matching constant for [-1]
at org.springframework.http.HttpStatus.valueOf(HttpStatus.java:527)
at com.iexec.worker.feign.BaseFeignClient.is4xxClientError(BaseFeignClient.java:89)
at com.iexec.worker.feign.BaseFeignClient.makeHttpCall(BaseFeignClient.java:55)
at com.iexec.worker.feign.BaseFeignClient.makeHttpCall(BaseFeignClient.java:42)
at com.iexec.worker.feign.CustomCoreFeignClient.getAvailableReplicate(CustomCoreFeignClient.java:105)
at com.iexec.worker.replicate.ReplicateDemandService.askForReplicate(ReplicateDemandService.java:69)
at jdk.internal.reflect.GeneratedMethodAccessor101.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84)
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)

Fixed thank you!