java.lang.ClassCastException

hudson.model.ChoiceParameterDefinition.choices expects class java.lang.String but received class java.util.ArrayList


Solutions on the web3706

Solution icon of jenkins
via Jenkins JIRA by Alex Soto, 11 months ago
hudson.model.ChoiceParameterDefinition.choices expects class java.lang.String but received class java.util.ArrayList

Solution icon of jenkins
via Jenkins JIRA by Alex Soto, 1 year ago
hudson.model.ChoiceParameterDefinition.choices expects class java.lang.String but received class java.util.ArrayList

Solution icon of jenkins
via Jenkins JIRA by Antonio Muñiz, 7 months ago
hudson.model.ChoiceParameterDefinition.choices expects class java.lang.String but received class java.util.Arrays$ArrayList

Solution icon of jenkins
via Jenkins JIRA by Antonio Muñiz, 1 year ago
hudson.model.ChoiceParameterDefinition.choices expects class java.lang.String but received class java.util.Arrays$ArrayList

Solution icon of googlegroups
hudson.model.ChoiceParameterDefinition.choices expects class java.lang. but received class java.util.Arrays$ArrayList

Solution icon of googlegroups
hudson.model.ChoiceParameterDefinition.choices expects class java.lang.<span class="code-object" style="color: #910091">String</span> but received class java.util.ArrayList

Solution icon of googlegroups
via Google Groups by ty...@monkeypox.org (JIRA), 10 months ago
hudson.model.ChoiceParameterDefinition.choices expects class java.lang.<span class="code-object" style="color: #910091">String</span> but received class java.util.ArrayList

Solution icon of web
via nabble.com by Unknown author, 3 months ago
hudson.plugins.cobertura.CoberturaPublisher.onlyStable expects boolean but received class java.lang.String

Solution icon of stackoverflow
org.jenkinsci.plugins.workflow.support.steps.build.BuildTriggerStep.parameters expects class hudson.model.ParameterValue but received class java.util.ArrayList


Stack trace

  • java.lang.ClassCastException: hudson.model.ChoiceParameterDefinition.choices expects class java.lang.String but received class java.util.ArrayList at org.jenkinsci.plugins.workflow.structs.DescribableHelper.coerce(DescribableHelper.java:590) at org.jenkinsci.plugins.workflow.structs.DescribableHelper.buildArguments(DescribableHelper.java:524) at org.jenkinsci.plugins.workflow.structs.DescribableHelper.instantiate(DescribableHelper.java:96) at org.jenkinsci.plugins.workflow.structs.DescribableHelper.coerce(DescribableHelper.java:576) at org.jenkinsci.plugins.workflow.structs.DescribableHelper.mapList(DescribableHelper.java:603) at org.jenkinsci.plugins.workflow.structs.DescribableHelper.coerce(DescribableHelper.java:588) at org.jenkinsci.plugins.workflow.structs.DescribableHelper.buildArguments(DescribableHelper.java:524) at org.jenkinsci.plugins.workflow.structs.DescribableHelper.injectSetters(DescribableHelper.java:663) at org.jenkinsci.plugins.workflow.structs.DescribableHelper.instantiate(DescribableHelper.java:98) at org.jenkinsci.plugins.workflow.steps.StepDescriptor.newInstance(StepDescriptor.java:103) at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:133) at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:113) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:15) at WorkflowScript.run(WorkflowScript:1) at ___cps.transform___(Native Method)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 6 months ago