com.exalate.basic.domain.hubobject.v1.BasicHubOption cannot be cast to com.exalate.api.domain.hubobject.v1_2.IHubCustomField

Originally asked by Roman on 28 April 2020 (original question)


We have received a following error. Status.groovy however is up to date. What need to be done ot resolve this error?

com.exalate.api.exception.script.CreateProcessorException: Script error details: Failed to create issue: com.exalate.basic.domain.hubobject.v1.BasicHubOption cannot be cast to com.exalate.api.domain.hubobject.v1_2.IHubCustomField. Please review the script or contact Exalate Support. 
Error line: Status.groovy:651
at com.exalate.error.services.ScriptExceptionCategoryService$.wrapAsCreateProcessorException(ScriptExceptionCategoryService.scala:54)
at com.exalate.processor.jira.JiraCreateIssueProcessor.createIssue(JiraCreateIssueProcessor.java:162)
at com.exalate.replication.request.CreateIssueSyncRequestState.transition(CreateIssueSyncRequestState.java:73)
at com.exalate.replication.request.CreateIssueSyncRequestState.transition(CreateIssueSyncRequestState.java:24)
at com.exalate.replication.in.RequestProcessorService.processSyncRequest(RequestProcessorService.java:326)
at com.exalate.replication.in.RequestProcessorService.processSyncRequestsForIssue(RequestProcessorService.java:200)
at com.exalate.replication.in.RequestProcessorService.processSyncRequests(RequestProcessorService.java:147)
at com.exalate.replication.in.RequestWorker$1.run(RequestWorker.java:88)
at com.exalate.node.util.concurrent.ClusteredSensitiveExecutorService$1.run(ClusteredSensitiveExecutorService.java:32)
at com.exalate.node.util.concurrent.ClusteredSensitiveExecutorService$1.run(ClusteredSensitiveExecutorService.java:28)
at com.exalate.node.util.concurrent.ClusteredSensitiveExecutorService.executeHandlingLocks(ClusteredSensitiveExecutorService.java:54)
at com.exalate.node.util.concurrent.ClusteredSensitiveExecutorService.executeHandlingLocks(ClusteredSensitiveExecutorService.java:28)
at com.exalate.replication.in.RequestWorker.run(RequestWorker.java:78)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

Answer by Juan Grases on 28 April 2020

That means that somewhere in your incoming script you are doing something like:

issue.customFields."CF Name" = replica.customFields."CF Name".value 

When it should be:

issue.customFields."CF Name".value = replica.customFields."CF Name".value 

That should fix it.


This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.